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 | #45627992 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 826 B |
Data încărcării | 17 Octombrie 2023, 18:16 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp: In function 'int main()': anagrame1.cpp:45:24: error: 'strlen' was not declared in this scope for(i=0;i<=strlen(s)-2;i++) ^ anagrame1.cpp:47:15: warning: array subscript has type 'char' [-Wchar-subscripts] if(s[i]>s[j]) ^ anagrame1.cpp:47:20: warning: array subscript has type 'char' [-Wchar-subscripts] if(s[i]>s[j]) ^ anagrame1.cpp:48:17: warning: array subscript has type 'char' [-Wchar-subscripts] swap(s[i],s[j]); ^ anagrame1.cpp:48:22: warning: array subscript has type 'char' [-Wchar-subscripts] swap(s[i],s[j]); ^ anagrame1.cpp:49:15: error: 'strlen' was not declared in this scope n=strlen(s)-1; ^
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ă.