#2205
permrep
Se consideră un cuvânt C
format din litere mici, nu neapărat distincte. Să se afișeze în ordine lexicografică toate cuvintele distincte formate cu exact aceleași caractere ca și C
.
Problema | permrep | Operații I/O |
permrep.in /permrep.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #11043474 | Utilizator | |
Fișier | permrep.cpp | Dimensiune | 678 B |
Data încărcării | 16 Octombrie 2018, 11:09 | Scor / rezultat | Eroare de compilare |
permrep.cpp:3:1: error: 'ifstream' does not name a type ifstream f("permrep.in.c"); ^ permrep.cpp:4:1: error: 'ofstream' does not name a type ofstream f("permrep.out"); ^ permrep.cpp:6:5: error: expected unqualified-id before '[' token int [20],n; ^ permrep.cpp: In function 'void citire()': permrep.cpp:11:5: error: 'fin' was not declared in this scope fin.getline (t,20); ^ permrep.cpp:12:18: error: 'strcpy' was not declared in this scope strcpy (s," "); ^ permrep.cpp:13:16: error: 'strcat' was not declared in this scope strcat (s,t); n=strlen (t); ^ permrep.cpp:13:19: error: 'n' was not declared in this scope strcat (s,t); n=strlen (t); ^ permrep.cpp:13:30: error: 'strlen' was not declared in this scope strcat (s,t); n=strlen (t); ^ permrep.cpp: In function 'void scrie()': permrep.cpp:18:21: error: 'n' was not declared in this scope for (int i=1;i<=n;i++) ^ permrep.cpp:19:9: error: 'fout' was not declared in this scope fout<<a[x[i]]; ^ permrep.cpp:19:15: error: 'a' was not declared in this scope fout<<a[x[i]]; ^ permrep.cpp:19:17: error: 'x' was not declared in this scope fout<<a[x[i]]; ^ permrep.cpp:20:5: error: 'fout' was not declared in this scope fout<<endl; ^ permrep.cpp: In function 'int verif(int)': permrep.cpp:26:12: error: 'x' was not declared in this scope if(x[i]==x[k]) ^ permrep.cpp: In function 'void back(int)': permrep.cpp:33:11: error: 'n' was not declared in this scope if(k==n+1) scrie(); ^ permrep.cpp:35:14: error: 'x' was not declared in this scope for (x[k]=1;x[k]<=n;x[k]++) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema permrep 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ă.