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 | #45628144 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 817 B |
Data încărcării | 17 Octombrie 2023, 18:18 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:3:1: error: 'ifstream' does not name a type ifstream fin("anagrame1.in"); ^ anagrame1.cpp:4:1: error: 'ofstream' does not name a type ofstream fout("anagrame1.out"); ^ anagrame1.cpp: In function 'void afis()': anagrame1.cpp:21:9: error: 'fout' was not declared in this scope fout<<s[st[i]]; ^ anagrame1.cpp:22:5: error: 'fout' was not declared in this scope fout<<'\n'; ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:44:5: error: 'fin' was not declared in this scope fin.getline(s,sizeof(s)); ^ anagrame1.cpp:48:15: warning: array subscript has type 'char' [-Wchar-subscripts] if(s[i]>s[j]) ^ anagrame1.cpp:48:20: warning: array subscript has type 'char' [-Wchar-subscripts] if(s[i]>s[j]) ^ anagrame1.cpp:49:17: warning: array subscript has type 'char' [-Wchar-subscripts] swap(s[i],s[j]); ^ anagrame1.cpp:49:22: warning: array subscript has type 'char' [-Wchar-subscripts] swap(s[i],s[j]); ^
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ă.