#3915
Se citește de la tastatură un cuvânt s format din cel mult 11 litere mici distincte. Să se genereze în ordine alfabetică și să se afișeze toate anagramele cuvântului s în care nu există două vocale alăturate și nici două consoane alăturate.
| Problema | anagrame_cv | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64072269 | Utilizator | |
| Fișier | anagrame_cv.cpp | Dimensiune | 1.02 KB |
| Data încărcării | 15 Aprilie 2026, 15:46 | Scor/rezultat | Eroare de compilare |
anagrame_cv.cpp: In function ‘void back(int)’: anagrame_cv.cpp:19:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 19 | for(int j=0;j<k;j++) | ^~~ anagrame_cv.cpp:22:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 22 | if(ok&& k > 0){ | ^~ anagrame_cv.cpp: In function ‘int main()’: anagrame_cv.cpp:39:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 39 | for(int i=0;i<n;i++) | ^~~ anagrame_cv.cpp:42:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 42 | if(abs(v-c)>1{ | ^~ anagrame_cv.cpp:42:12: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 42 | if(abs(v-c)>1{ | ^~~ anagrame_cv.cpp:42:22: error: expected ‘;’ before ‘{’ token 42 | if(abs(v-c)>1{ | ^ | ; anagrame_cv.cpp:42:20: warning: statement has no effect [-Wunused-value] 42 | if(abs(v-c)>1{ | ~~~~~~~~^~ anagrame_cv.cpp:46:19: error: expected ‘)’ before ‘;’ token 46 | back(0); | ^ | ) anagrame_cv.cpp:42:11: note: to match this ‘(’ 42 | if(abs(v-c)>1{ | ^ anagrame_cv.cpp:46:16: error: could not convert ‘back(0)’ from ‘void’ to ‘bool’ 46 | back(0); | ~~~~^~~ | | | void anagrame_cv.cpp:42:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 42 | if(abs(v-c)>1{ | ^~ anagrame_cv.cpp:47:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 47 | if(!gasit) | ^~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame_cv 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ă.