Să se verifice dacă o propoziție dată este palindromică.
| Problema | PalindromPropozitie | Operații I/O |
palindrom.in/palindrom.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #48154247 | Utilizator | |
| Fișier | palindrompropozitie.cpp | Dimensiune | 540 B |
| Data încărcării | 17 Ianuarie 2024, 09:13 | Scor/rezultat | Eroare de compilare |
palindrompropozitie.cpp:4:1: error: 'ifstream' does not name a type ifstream cin("palindrom.in"); ^ palindrompropozitie.cpp:5:1: error: 'ofstream' does not name a type ofstream cin("palindrom.out"); ^ palindrompropozitie.cpp: In function 'int palindromica(char*)': palindrompropozitie.cpp:11:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s);i++) ^ palindrompropozitie.cpp:12:10: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(s[i]==" ") ^ palindrompropozitie.cpp:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] palindrompropozitie.cpp:18:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s)/256;i++) ^ palindrompropozitie.cpp: In function 'int main()': palindrompropozitie.cpp:26:1: error: 'in' was not declared in this scope in>>n; ^ palindrompropozitie.cpp:31:5: error: 'out' was not declared in this scope out<<palindromica(s)<<endl; ^ palindrompropozitie.cpp:32:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PalindromPropozitie 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ă.