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 | #61204606 | Utilizator | |
| Fișier | palindrompropozitie.cpp | Dimensiune | 721 B |
| Data încărcării | 21 Noiembrie 2025, 13:10 | Scor/rezultat | Eroare de compilare |
palindrompropozitie.cpp: In function 'int main()': palindrompropozitie.cpp:5:5: error: 'ifstream' was not declared in this scope ifstream fin("palindrom.in"); ^ palindrompropozitie.cpp:5:14: error: expected ';' before 'fin' ifstream fin("palindrom.in"); ^ palindrompropozitie.cpp:6:5: error: 'ofstream' was not declared in this scope ofstream fout("palindrom.out"); ^ palindrompropozitie.cpp:6:14: error: expected ';' before 'fout' ofstream fout("palindrom.out"); ^ palindrompropozitie.cpp:8:5: error: 'string' was not declared in this scope string s; ^ palindrompropozitie.cpp:8:12: error: expected ';' before 's' string s; ^ palindrompropozitie.cpp:9:5: error: 'fin' was not declared in this scope fin >> n; ^ palindrompropozitie.cpp:10:5: error: 'getline' is not a member of 'std' std::getline(fin, s); // e necesar pentru a putea ajunge pe a doua linie cu pointerul in fisier ^ palindrompropozitie.cpp:10:23: error: 's' was not declared in this scope std::getline(fin, s); // e necesar pentru a putea ajunge pe a doua linie cu pointerul in fisier ^ palindrompropozitie.cpp:12:9: error: 'getline' is not a member of 'std' std::getline(fin, s); ^ palindrompropozitie.cpp:26:9: error: 'fout' was not declared in this scope fout << ePalindrom << endl; ^ palindrompropozitie.cpp:26:31: error: 'endl' was not declared in this scope fout << ePalindrom << 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ă.