#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57641504 | Utilizator | |
Fișier | anagrame4.cpp | Dimensiune | 1.06 KB |
Data încărcării | 08 Aprilie 2025, 18:06 | Scor / rezultat | 0 puncte |
anagrame4.cpp: In function 'int final(int)': anagrame4.cpp:23:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(k==strlen(s))return 1; ^ anagrame4.cpp: In function 'int main()': anagrame4.cpp:43:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s)-1;i++) ^ anagrame4.cpp:44:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=i+1;j<strlen(s);j++) ^ anagrame4.cpp:55:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(st[k]<strlen(s)) ^ anagrame4.cpp:58:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(valid(k))if(final(k))afisare(k); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0.004 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
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ă.