Problema | Anagrame1 | Operații I/O |
anagrame1.in /anagrame1.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54025876 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 882 B |
Data încărcării | 18 Noiembrie 2024, 10:38 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:6:1: error: expected initializer before 'int' int i,k,st[100]; ^ anagrame1.cpp: In function 'void init()': anagrame1.cpp:11:5: error: 'st' was not declared in this scope st[k]=0; ^ anagrame1.cpp:11:8: error: 'k' was not declared in this scope st[k]=0; ^ anagrame1.cpp: In function 'int succesor()': anagrame1.cpp:15:8: error: 'st' was not declared in this scope if(st[k]<strlen(s)) ^ anagrame1.cpp:15:11: error: 'k' was not declared in this scope if(st[k]<strlen(s)) ^ anagrame1.cpp:15:21: error: 's' was not declared in this scope if(st[k]<strlen(s)) ^ anagrame1.cpp: In function 'int valid()': anagrame1.cpp:24:9: error: 'i' was not declared in this scope for(i=1;i<k;i++) ^ anagrame1.cpp:24:15: error: 'k' was not declared in this scope for(i=1;i<k;i++) ^ anagrame1.cpp:25:12: error: 'st' was not declared in this scope if(st[k]==st[i])return 0; ^ anagrame1.cpp: In function 'int solutie()': anagrame1.cpp:30:12: error: 'k' was not declared in this scope return k==strlen(s); ^ anagrame1.cpp:30:22: error: 's' was not declared in this scope return k==strlen(s); ^ anagrame1.cpp: In function 'void tipar()': anagrame1.cpp:34:9: error: 'i' was not declared in this scope for(i=1;i<=k;i++) ^ anagrame1.cpp:34:16: error: 'k' was not declared in this scope for(i=1;i<=k;i++) ^ anagrame1.cpp:35:12: error: 's' was not declared in this scope g<<s[st[i]-1]<<" "; ^ anagrame1.cpp:35:14: error: 'st' was not declared in this scope g<<s[st[i]-1]<<" "; ^ anagrame1.cpp: In function 'void back()': anagrame1.cpp:40:12: error: 'k' was not declared in this scope int AS;k=1; ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:56:11: error: 's' was not declared in this scope f.get(s,11); ^ anagrame1.cpp: In function 'int succesor()': anagrame1.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ anagrame1.cpp: In function 'int solutie()': anagrame1.cpp:31:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Anagrame1 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ă.