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 | #27453590 | Utilizator | |
Fișier | palindrompropozitie.cpp | Dimensiune | 729 B |
Data încărcării | 22 Ianuarie 2021, 12:35 | Scor / rezultat | Eroare de compilare |
palindrompropozitie.cpp: In function 'int main()': palindrompropozitie.cpp:26:12: error: invalid array assignment aux=s; ^ palindrompropozitie.cpp:27:15: warning: the address of 'aux' will always evaluate as 'true' [-Waddress] while(aux) ^ palindrompropozitie.cpp:29:21: error: invalid operands of types 'char [201]' and 'int' to binary 'operator*' inv=inv*10+aux%10; ^ palindrompropozitie.cpp:29:28: error: invalid operands of types 'char [201]' and 'int' to binary 'operator%' inv=inv*10+aux%10; ^ palindrompropozitie.cpp:30:16: error: invalid operands of types 'char [201]' and 'int' to binary 'operator/' aux/=10; ^ palindrompropozitie.cpp:30:16: error: in evaluation of 'operator/=(char [201], int)'
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ă.