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 | #34729924 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 908 B |
Data încărcării | 11 Februarie 2022, 10:46 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:6:12: error: variable 'std::ifstream in' has initializer but incomplete type ifstream in("anagrame_in") ^ anagrame1.cpp:7:1: error: expected ',' or ';' before 'ofstream' ofstream out("anagrame_out") ^ anagrame1.cpp: In function 'void back(int)': anagrame1.cpp:13:21: error: 'n' was not declared in this scope for(int i=0; i<=n-1; i++) ^ anagrame1.cpp:15:9: error: 'sol' was not declared in this scope sol[k]=i; ^ anagrame1.cpp:16:17: error: 'bun' was not declared in this scope if(bun(k)) ^ anagrame1.cpp:17:25: error: 'solutie' was not declared in this scope if(solutie(k)) ^ anagrame1.cpp:18:20: error: 'tipar' was not declared in this scope tipar(k); ^ anagrame1.cpp:21:5: error: expected ';' before '}' token } ^ anagrame1.cpp:16:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(bun(k)) ^ anagrame1.cpp: In function 'void bun(int)': anagrame1.cpp:26:9: error: 'i' was not declared in this scope for(i=1; i<=k-1; i++) ^ anagrame1.cpp:27:12: error: 'sol' was not declared in this scope if(sol[i]==sol[k]) ^ anagrame1.cpp:28:16: error: return-statement with a value, in function returning 'void' [-fpermissive] return 0; ^ anagrame1.cpp:29:12: error: return-statement with a value, in function returning 'void' [-fpermissive] return 1; ^ anagrame1.cpp: In function 'int solutie(int)': anagrame1.cpp:34:11: error: 'n' was not declared in this scope if(k==n) ^ anagrame1.cpp: In function 'void tipar(int)': anagrame1.cpp:41:9: error: 'i' was not declared in this scope for(i=1; i<=k; i++) ^ anagrame1.cpp:42:9: error: 'out' was not declared in this scope out<<s[sol[i]]; ^ anagrame1.cpp:42:16: error: 'sol' was not declared in this scope out<<s[sol[i]]; ^ anagrame1.cpp:43:5: error: 'out' was not declared in this scope out<<endl; ^ anagrame1.cpp: In function 'void sortare()': anagrame1.cpp:47:21: error: 'n' was not declared in this scope for(int i=0; i<=n-2; i++) ^ anagrame1.cpp:48:13: error: 'j' was not declared in this scope for(j=i+1; j<=n-1; j++) ^ anagrame1.cpp:50:14: warning: unused variable 'aux' [-Wunused-variable] char aux=s[i]; ^ anagrame1.cpp:51:7: error: 'i' was not declared in this scope s[i]=s[j]; ^ anagrame1.cpp:51:12: error: 'j' was not declared in this scope s[i]=s[j]; ^ anagrame1.cpp:52:10: error: 'aux' was not declared in this scope s[j]=aux; ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:58:5: error: 'n' was not declared in this scope n=strlen(s); ^
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ă.