#3154
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 vocalele sunt puncte fixe.
| Problema | anagrame_pfv | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64278121 | Utilizator | |
| Fișier | anagrame_pfv.cpp | Dimensiune | 961 B |
| Data încărcării | 27 Aprilie 2026, 17:52 | Scor/rezultat | Eroare de compilare |
anagrame_pfv.cpp: In function ‘void scrie()’: anagrame_pfv.cpp:21:13: error: ‘s’ cannot be used as a function 21 | cout<<s(p[i])<<" "; | ~^~~~~~ anagrame_pfv.cpp:20:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 20 | for (int i=0;i<n;i++) | ^~~ anagrame_pfv.cpp:22:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 22 | cout<<"\n"; | ^~~~ anagrame_pfv.cpp: In function ‘int ok(int)’: anagrame_pfv.cpp:27:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 27 | for(int i=1;i<k;i++) | ^~~ anagrame_pfv.cpp:29:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 29 | return 1; | ^~~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame_pfv 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ă.