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 | #35920967 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 763 B |
Data încărcării | 28 Martie 2022, 12:33 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:5:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("anagrame1.in"); ^ anagrame1.cpp:6:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("anagrame1.out"); ^ anagrame1.cpp: In function 'void afisare()': anagrame1.cpp:13:9: error: reference to 'cout' is ambiguous cout<<s[x[i]]; ^ anagrame1.cpp:6:10: note: candidates are: <typeprefixerror>cout ofstream cout("anagrame1.out"); ^ In file included from anagrame1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ anagrame1.cpp:14:5: error: reference to 'cout' is ambiguous cout<<endl; ^ anagrame1.cpp:6:10: note: candidates are: <typeprefixerror>cout ofstream cout("anagrame1.out"); ^ In file included from anagrame1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:32:5: error: reference to 'cin' is ambiguous cin>>s; ^ anagrame1.cpp:5:10: note: candidates are: <typeprefixerror>cin ifstream cin("anagrame1.in"); ^ In file included from anagrame1.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ anagrame1.cpp:33:15: error: 'strlen' was not declared in this scope n=strlen(s); ^
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ă.