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 | #9293978 | Utilizator | |
Fișier | palindrompropozitie.cpp | Dimensiune | 967 B |
Data încărcării | 23 Aprilie 2018, 15:52 | Scor / rezultat | 30 puncte |
palindrompropozitie.cpp: In function 'int main()': palindrompropozitie.cpp:19:9: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] gets(s+1); ^ palindrompropozitie.cpp:19:17: warning: 'char* gets(char*)' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations] gets(s+1); ^ palindrompropozitie.cpp:13:15: warning: unused variable 'j' [-Wunused-variable] int n,m,i,j; ^ palindrompropozitie.cpp:10:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("palindrom.in","r",stdin); ^ palindrompropozitie.cpp:11:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("palindrom.out","w",stdout); ^ palindrompropozitie.cpp:15:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&m); ^ palindrompropozitie.cpp:19:18: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ /tmp/ccoI8SBe.o: In function \`main': palindrompropozitie.cpp:(.text.startup+0x7b): warning: the \`gets' function is dangerous and should not be used.
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 70 | 0 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 30 |
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ă.