#3155
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 consoanele sunt puncte fixe.
| Problema | anagrame4 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64514005 | Utilizator | |
| Fișier | anagrame4.cpp | Dimensiune | 1.92 KB |
| Data încărcării | 12 Mai 2026, 08:50 | Scor/rezultat | 100 puncte |
anagrame4.cpp: In function ‘int main()’: anagrame4.cpp:23:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 23 | for(int i=0;a[i]!='\0';i++) | ^~~ anagrame4.cpp:38:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 38 | while(g>=0) | ^~~~~ anagrame4.cpp:42:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 42 | for(int i=0;i<=25;i++) | ^~~ anagrame4.cpp:52:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 52 | if(g>=n) | ^~ anagrame4.cpp:8:29: warning: variable ‘c’ set but not used [-Wunused-but-set-variable] 8 | char a[12],e[6]="aeiou",c[12],v[12],y[12]; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.003 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 secunde | OK. | 20 | 20 | ||
| 4 | 0.002 secunde | OK. | 20 | 20 | ||
| 5 | 0.001 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame4 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ă.