#97
Să se scrie un program care verifică dacă două cuvinte date sunt anagrame.
| Problema | Anagrame | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #16189612 | Utilizator | |
| Fișier | anagrame.cpp | Dimensiune | 603 B |
| Data încărcării | 12 Iunie 2019, 19:19 | Scor/rezultat | 100 puncte |
anagrame.cpp: In function 'int main()': anagrame.cpp:9:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<strlen(c1);i++) ^ anagrame.cpp:11:17: warning: array subscript has type 'char' [-Wchar-subscripts] fr[c1[i]]=fr[c1[i]]+1; ^ anagrame.cpp:11:27: warning: array subscript has type 'char' [-Wchar-subscripts] fr[c1[i]]=fr[c1[i]]+1; ^ anagrame.cpp:13:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<strlen(c2);i++) ^ anagrame.cpp:15:18: warning: array subscript has type 'char' [-Wchar-subscripts] fr1[c2[i]]=fr1[c2[i]]+1; ^ anagrame.cpp:15:29: warning: array subscript has type 'char' [-Wchar-subscripts] fr1[c2[i]]=fr1[c2[i]]+1; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0 secunde | OK. | 10 | 10 | ||
| 3 | 0 secunde | OK. | 20 | 20 | ||
| 4 | 0 secunde | OK. | 20 | 20 | ||
| 5 | 0 secunde | OK. | 20 | 20 | ||
| 6 | 0 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Anagrame 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ă.