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 | #45598839 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 712 B |
Data încărcării | 17 Octombrie 2023, 08:37 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:5:10: error: expected '}' before ']' token char s{10]; ^ anagrame1.cpp:5:10: error: expected ',' or ';' before ']' token anagrame1.cpp:6:7: error: expected initializer before ']' token int st]10],n; ^ anagrame1.cpp: In function 'void afis(int)': anagrame1.cpp:10:12: error: 'st' was not declared in this scope g<<st[i]-1; ^ anagrame1.cpp: In function 'int valid(int, int)': anagrame1.cpp:16:15: error: 'i' was not declared in this scope if(j==i); ^ anagrame1.cpp: In function 'void back(int)': anagrame1.cpp:22:8: error: 'n' was not declared in this scope if(k>n) ^ anagrame1.cpp:29:11: error: 'st' was not declared in this scope st[k]=j; ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:38:8: error: 'n' was not declared in this scope f>>n; ^ anagrame1.cpp:39:15: error: invalid conversion from 'char' to 'const char*' [-fpermissive] n=strlen(s); ^ In file included from /usr/include/c++/4.8/cstring:42:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48, from anagrame1.cpp:1: /usr/include/string.h:399:15: error: initializing argument 1 of 'size_t strlen(const char*)' [-fpermissive] extern size_t strlen (const char *__s) ^ anagrame1.cpp:42:16: error: 'st' was not declared in this scope if(st-s[i]<0) ^ anagrame1.cpp:42:22: error: invalid types 'char[int]' for array subscript if(st-s[i]<0) ^ anagrame1.cpp:43:21: error: invalid types 'char[int]' for array subscript swap(s[i],s[i]+1); ^ anagrame1.cpp:43:26: error: invalid types 'char[int]' for array subscript swap(s[i],s[i]+1); ^
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ă.