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 | #54096717 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 744 B |
Data încărcării | 19 Noiembrie 2024, 17:52 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:4:13: error: conflicting declaration 'std::ofstream fin' ofstream fin("anagrame1.out"); ^ anagrame1.cpp:3:10: error: 'fin' has a previous declaration as 'std::ifstream fin' ifstream fin("anagrame1.in"); ^ anagrame1.cpp: In function 'void afisare()': anagrame1.cpp:16:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=strlen(s);i++) ^ anagrame1.cpp:6:14: error: 'fout' was not declared in this scope #define cout fout ^ anagrame1.cpp:17:9: note: in expansion of macro 'cout' cout<<s[st[i]]; ^ anagrame1.cpp:6:14: error: 'fout' was not declared in this scope #define cout fout ^ anagrame1.cpp:18:5: note: in expansion of macro 'cout' cout<<endl; ^ anagrame1.cpp: In function 'void BKT(int)': anagrame1.cpp:22:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<=strlen(s)-1;i++){ ^ anagrame1.cpp:25:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(k==strlen(s)) afisare(); ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:32:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<=strlen(s)-1;i++) ^ anagrame1.cpp:33:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=i+1;j<strlen(s)-1;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ă.