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 | #49247878 | Utilizator | |
Fișier | anagrame1.cpp | Dimensiune | 418 B |
Data încărcării | 22 Februarie 2024, 08:31 | Scor / rezultat | Eroare de compilare |
anagrame1.cpp:2:2: error: invalid preprocessing directive #incude #incude<fstream> ^ anagrame1.cpp:4:11: error: variable 'std::ifstream f' has initializer but incomplete type ifstream f("anagrame.in") ^ anagrame1.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream g("anagrame.out") ^ anagrame1.cpp: In function 'void BKT(int)': anagrame1.cpp:8:6: error: 'i' was not declared in this scope {for(i=1;i<=n;i++) ^ anagrame1.cpp:8:13: error: 'n' was not declared in this scope {for(i=1;i<=n;i++) ^ anagrame1.cpp:10:5: error: 'x' was not declared in this scope x[k]=i; ^ anagrame1.cpp:11:15: error: 'valid' was not declared in this scope if(valid(k)) ^ anagrame1.cpp:12:15: error: 'afis' was not declared in this scope afis(k); ^ anagrame1.cpp: In function 'void afis(int)': anagrame1.cpp:18:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ anagrame1.cpp:18:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ anagrame1.cpp:19:15: error: 's' was not declared in this scope cout<<s[x[i]-1]; ^ anagrame1.cpp:19:17: error: 'x' was not declared in this scope cout<<s[x[i]-1]; ^ anagrame1.cpp: In function 'int main()': anagrame1.cpp:23:7: error: 's' was not declared in this scope {cin>>s; ^ anagrame1.cpp:24:1: error: 'n' was not declared in this scope n=strlen(s); ^ anagrame1.cpp:24:11: error: 'strlen' was not declared in this scope n=strlen(s); ^ anagrame1.cpp:25:11: error: 'sort' was not declared in this scope sort(s,s+n); ^
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ă.