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 | #49248018 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 618 B |
Data încărcării | 22 Februarie 2024, 08:42 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:4:1: error: expected ',' or ';' before 'ofstream' ofstream g("anagrame1.out") ^ anagrame1.cpp: In function 'void BKT(int)': anagrame1.cpp:8:9: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ anagrame1.cpp:8:17: error: 'n' was not declared in this scope for(i=1; i<=n; i++) ^ anagrame1.cpp:10:9: error: 'x' was not declared in this scope x[k]=i; ^ anagrame1.cpp:11:19: error: 'valid' was not declared in this scope if(valid(k)) ^ anagrame1.cpp:14:23: error: 'afis' was not declared in this scope afis(k); ^ anagrame1.cpp: In function 'bool valid(int)': anagrame1.cpp:21:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ anagrame1.cpp:22:12: error: 'x' was not declared in this scope if(x[i]==x[k]) ^ anagrame1.cpp: In function 'void afis(int)': anagrame1.cpp:28:9: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ anagrame1.cpp:28:17: error: 'n' was not declared in this scope for(i=1; i<=n; i++) ^ anagrame1.cpp:29:9: error: 'g' was not declared in this scope g<<s[x[i]-1]; ^ anagrame1.cpp:29:14: error: 'x' was not declared in this scope g<<s[x[i]-1]; ^ anagrame1.cpp:30:4: error: 'g' was not declared in this scope g<<"\n"; ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:35: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ă.