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 | #51495760 | Utilizator | |
Fișier | palindrompropozitie.cpp | Dimensiune | 750 B |
Data încărcării | 28 Iunie 2024, 11:57 | Scor / rezultat | Eroare de compilare |
palindrompropozitie.cpp:1:1: error: 'include' does not name a type include <fstream> ^ palindrompropozitie.cpp:5:1: error: 'ifstream' does not name a type ifstream fin("palindrom.in"); ^ palindrompropozitie.cpp:6:1: error: 'ofstream' does not name a type ofstream fout("palindrom.out"); ^ palindrompropozitie.cpp: In function 'int palindromP(char*)': palindrompropozitie.cpp:19:18: error: expected primary-expression before ')' token if(t[i]==) ^ palindrompropozitie.cpp: In function 'int main()': palindrompropozitie.cpp:32:5: error: 'fin' was not declared in this scope fin >> n;fin.get(); ^ palindrompropozitie.cpp:35:9: error: 'fout' was not declared in this scope fout << palindromP(s) << endl; ^ palindrompropozitie.cpp:35:34: error: 'endl' was not declared in this scope fout << palindromP(s) << endl; ^
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ă.