#88
Palindrom
Să se verifice dacă un cuvânt dat este palindrom.
Problema | Palindrom | Operații I/O |
palindrom.in /palindrom.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53082403 | Utilizator | |
Fișier | palindrom.cpp | Dimensiune | 612 B |
Data încărcării | 17 Octombrie 2024, 09:58 | Scor / rezultat | Eroare de compilare |
palindrom.cpp: In function 'int main()': palindrom.cpp:17:15: error: 'strrev' was not declared in this scope strrev(aux); ^ palindrom.cpp:18:26: warning: NULL used in arithmetic [-Wpointer-arith] if(strcmp(s[i],aux)==NULL) ^ palindrom.cpp:8:22: warning: unused variable 'p' [-Wunused-variable] { char s[50][256],*p,litere[]="aeiou",cons[]="bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ",aux[256]; ^ palindrom.cpp:8:24: warning: unused variable 'litere' [-Wunused-variable] { char s[50][256],*p,litere[]="aeiou",cons[]="bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ",aux[256]; ^ palindrom.cpp:8:41: warning: unused variable 'cons' [-Wunused-variable] { char s[50][256],*p,litere[]="aeiou",cons[]="bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ",aux[256]; ^ palindrom.cpp:9:9: warning: unused variable 'nr' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:9:16: warning: unused variable 'nr1' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:9:22: warning: unused variable 'f' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:9:32: warning: unused variable 'max' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:9:38: warning: unused variable 'val' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:9:46: warning: unused variable 'ct' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:9:51: warning: unused variable 'iv' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:9:54: warning: unused variable 'ic' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:9:57: warning: unused variable 'j' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic,j; ^ palindrom.cpp:10:10: warning: unused variable 'ok' [-Wunused-variable] bool ok=false,ok1=false; ^ palindrom.cpp:10:19: warning: unused variable 'ok1' [-Wunused-variable] bool ok=false,ok1=false; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Palindrom 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ă.