#101
SortareCuvinte
Să se scrie un program care citește o propoziţie şi afişează cuvintele din propoziţie ordonate alfabetic.
Problema | SortareCuvinte | Operații I/O |
sortcuv.in /sortcuv.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50568032 | Utilizator | |
Fișier | sortarecuvinte.cpp | Dimensiune | 569 B |
Data încărcării | 15 Aprilie 2024, 15:49 | Scor / rezultat | 100 puncte |
sortarecuvinte.cpp: In function 'int main()': sortarecuvinte.cpp:24:20: warning: array subscript has type 'char' [-Wchar-subscripts] if(strcmp(a[i],a[j])>0) ^ sortarecuvinte.cpp:24:25: warning: array subscript has type 'char' [-Wchar-subscripts] if(strcmp(a[i],a[j])>0) ^ sortarecuvinte.cpp:26:23: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(aux,a[i]); ^ sortarecuvinte.cpp:27:19: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(a[i],a[j]); ^ sortarecuvinte.cpp:27:24: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(a[i],a[j]); ^ sortarecuvinte.cpp:28:19: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(a[j],aux); ^ sortarecuvinte.cpp:34:14: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<a[i]<<endl; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 40 | 40 | ||
3 | 0 secunde | OK. | 50 | 50 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SortareCuvinte 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ă.