#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 | #28361053 | Utilizator | |
Fișier | permrep.cpp | Dimensiune | 1.45 KB |
Data încărcării | 03 Martie 2021, 11:36 | Scor / rezultat | Eroare de compilare |
permrep.cpp:1:10: error: #include expects "FILENAME" or <FILENAME> #include <bits/stdc++.h> ^ permrep.cpp:50:1: error: stray '\' in program fout << "\n"; ^ permrep.cpp:9:1: error: 'ifstream' does not name a type ifstream fin("permrep.in"); ^ permrep.cpp:9:20: error: 'permrep' does not name a type ifstream fin("permrep.in"); ^ permrep.cpp:9:36: error: expected unqualified-id before ')' token ifstream fin("permrep.in"); ^ permrep.cpp:10:1: error: 'ofstream' does not name a type ofstream fout("permrep.out"); ^ permrep.cpp:10:21: error: 'permrep' does not name a type ofstream fout("permrep.out"); ^ permrep.cpp:10:38: error: expected unqualified-id before ')' token ofstream fout("permrep.out"); ^ permrep.cpp: In function 'void CitireMemorare()': permrep.cpp:15:1: error: 'fin' was not declared in this scope fin >> cuv; ^ permrep.cpp:15:6: error: 'gt' was not declared in this scope fin >> cuv; ^ permrep.cpp:15:17: warning: statement has no effect [-Wunused-value] fin >> cuv; ^ permrep.cpp:16:15: error: 'strlen' was not declared in this scope N = strlen(cuv);// // LUNGIMEA VECTORULUI INITIAL ^ permrep.cpp:21:16: error: 'lt' was not declared in this scope for (j = 1; j <= n && cuv[i] != lit[j]; j++) ^ permrep.cpp:21:19: error: expected primary-expression before '=' token for (j = 1; j <= n && cuv[i] != lit[j]; j++) ^ permrep.cpp:21:24: error: 'amp' was not declared in this scope for (j = 1; j <= n && cuv[i] != lit[j]; j++) ^ permrep.cpp:21:27: error: expected ')' before ';' token for (j = 1; j <= n && cuv[i] != lit[j]; j++) ^ permrep.cpp:21:29: error: 'amp' was not declared in this scope for (j = 1; j <= n && cuv[i] != lit[j]; j++) ^ permrep.cpp:21:41: warning: statement has no effect [-Wunused-value] for (j = 1; j <= n && cuv[i] != lit[j]; j++) ^ permrep.cpp:21:55: error: expected ';' before ')' token for (j = 1; j <= n && cuv[i] != lit[j]; j++) ^ permrep.cpp:23:10: error: expected ')' before ';' token if (j > n) /// cuv[i] nu apare in lit[] ^ permrep.cpp:23:13: error: expected ';' before ')' token if (j > n) /// cuv[i] nu apare in lit[] ^ permrep.cpp:28:1: warning: statement has no effect [-Wunused-value] } ^ permrep.cpp:29:1: error: 'else' without a previous 'if' else nr[j]++; ^ permrep.cpp:32:16: error: 'lt' was not declared in this scope for (i = 1; i < n; i++) ^ permrep.cpp:32:20: warning: for increment expression has no effect [-Wunused-value] for (i = 1; i < n; i++) ^ permrep.cpp:32:21: error: expected ')' before ';' token for (i = 1; i < n; i++) ^ permrep.cpp:32:26: error: expected ';' before ')' token for (i = 1; i < n; i++) ^ permrep.cpp:33:20: error: 'lt' was not declared in this scope for (j = i + 1; j <= n; j++) ^ permrep.cpp:33:23: error: expected primary-expression before '=' token for (j = i + 1; j <= n; j++) ^ permrep.cpp:33:31: error: expected ';' before ')' token for (j = i + 1; j <= n; j++) ^ permrep.cpp:34:23: error: expected ';' before ')' token if (lit[i] > lit[j]) ^ permrep.cpp:34:22: warning: statement has no effect [-Wunused-value] if (lit[i] > lit[j]) ^ permrep.cpp: In function 'void Afisare()': permrep.cpp:48:20: error: 'lt' was not declared in this scope for (int i = 1; i <= N; i++) ^ permrep.cpp:48:23: error: expected primary-expression before '=' token for (int i = 1; i <= N; i++) ^ permrep.cpp:48:26: error: expected ')' before ';' token for (int i = 1; i <= N; i++) ^ permrep.cpp:48:28: error: 'i' was not declared in this scope for (int i = 1; i <= N; i++) ^ permrep.cpp:48:31: error: expected ';' before ')' token for (int i = 1; i <= N; i++) ^ permrep.cpp:49:11: error: 'lt' was not declared in this scope fout << lit[st[i]]; ^ permrep.cpp:50:1: error: 'fout' was not declared in this scope fout << "\n"; ^ permrep.cpp:50:16: error: 'quot' was not declared in this scope fout << "\n"; ^ permrep.cpp: In function 'void Back(int)': permrep.cpp:56:25: error: 'lt' was not declared in this scope else for (int i = 1; i <= n; i++) ^ permrep.cpp:56:28: error: expected primary-expression before '=' token else for (int i = 1; i <= n; i++) ^ permrep.cpp:56:31: error: expected ')' before ';' token else for (int i = 1; i <= n; i++) ^ permrep.cpp:56:33: error: 'i' was not declared in this scope else for (int i = 1; i <= n; i++) ^ permrep.cpp:56:36: error: expected ';' before ')' token else for (int i = 1; i <= n; i++) ^ permrep.cpp:59:17: error: expected ';' before ')' token if (nr[i] > 0) ^ permrep.cpp:65:1: warning: statement has no effect [-Wunused-value] } ^
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ă.