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 | #51633776 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 685 B |
Data încărcării | 24 Iulie 2024, 23:04 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:7:15: warning: missing terminating " character [enabled by default] ofstream cout("anagrame1.out); ^ anagrame1.cpp:7:1: error: missing terminating " character ofstream cout("anagrame1.out); ^ anagrame1.cpp:9:7: error: 'p' has not been declared int n,p[20],x[20]; ^ anagrame1.cpp:9:13: error: 'x' has not been declared int n,p[20],x[20]; ^ anagrame1.cpp:9:18: error: expected ')' before ';' token int n,p[20],x[20]; ^ anagrame1.cpp: In function 'void afis()': anagrame1.cpp:13:21: error: 'n' was not declared in this scope for(int i=1; i<=n;++i) ^ anagrame1.cpp:14:19: error: 'x' was not declared in this scope cout<<cuv[x[i]-1]; ^ anagrame1.cpp:15:11: error: invalid operands of types 'std::ofstream(int, int*, int*) {aka std::basic_ofstream<char>(int, int*, int*)}' and '<unresolved overloaded function type>' to binary 'operator<<' cout<<endl; ^ anagrame1.cpp: In function 'void back(int)': anagrame1.cpp:19:20: error: 'n' was not declared in this scope for(int i=1;i<=n;++i) ^ anagrame1.cpp:21:13: error: 'p' was not declared in this scope if(!p[i]) ^ anagrame1.cpp:23:13: error: 'x' was not declared in this scope x[k]=i; ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:37:5: error: 'n' was not declared in this scope n= static_cast<int>(lenght); ^
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ă.