#194
Să se genereze toate anagramele unui cuvânt citit.
| Problema | Anagrame1 | Operații I/O |
anagrame1.in/anagrame1.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64938243 | Utilizator | |
| Fișier | anagrame1.cpp | Dimensiune | 989 B |
| Data încărcării | 17 Iunie 2026, 17:37 | Scor/rezultat | Eroare de compilare |
anagrame1.cpp:4:10: error: expected unqualified-id before string constant 4 | ifstream("anagrame1.in"); | ^~~~~~~~~~~~~~ anagrame1.cpp:4:10: error: expected ‘)’ before string constant 4 | ifstream("anagrame1.in"); | ~^~~~~~~~~~~~~~ | ) anagrame1.cpp:5:10: error: expected unqualified-id before string constant 5 | ofstream("anagrame1.out"); | ^~~~~~~~~~~~~~~ anagrame1.cpp:5:10: error: expected ‘)’ before string constant 5 | ofstream("anagrame1.out"); | ~^~~~~~~~~~~~~~~ | ) anagrame1.cpp: In function ‘void bt(char*, int*, bool*, int, int)’: anagrame1.cpp:11:13: error: ‘fout’ was not declared in this scope 11 | fout << c[v[i]]; | ^~~~ anagrame1.cpp:12:9: error: ‘fout’ was not declared in this scope 12 | fout << endl; | ^~~~ anagrame1.cpp: In function ‘int main()’: anagrame1.cpp:31:5: error: ‘fin’ was not declared in this scope 31 | fin >> c; | ^~~ anagrame1.cpp:32:24: error: ‘strlen’ was not declared in this scope 32 | for(int i = 0; i < strlen(c); i++) | ^~~~~~ anagrame1.cpp:3:1: note: ‘strlen’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 2 | #include <fstream> +++ |+#include <cstring> 3 | using namespace std; anagrame1.cpp:45:20: error: ‘strlen’ was not declared in this scope 45 | bt(c, v, f, 0, strlen(c)); | ^~~~~~ anagrame1.cpp:45:20: note: ‘strlen’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Anagrame1 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.