#131
Să se scrie un program care ordonează elementele unui vector crescător după prima cifră.
| Problema | SortCif2 | Operații I/O |
sortcif2.in/sortcif2.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64162080 | Utilizator | |
| Fișier | sortcif2.cpp | Dimensiune | 523 B |
| Data încărcării | 21 Aprilie 2026, 09:38 | Scor/rezultat | 100 puncte |
sortcif2.cpp: In function ‘int main()’: sortcif2.cpp:16:11: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 16 | while(p1>9) | ^~~~~ sortcif2.cpp:18:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 18 | p2=v[j]; | ^~ sortcif2.cpp:19:11: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 19 | while(p2>9) | ^~~~~ sortcif2.cpp:23:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 23 | if(p1>p2) | ^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Corect ! | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | Corect ! | 60 | 60 | ||
| 3 | 0.001 secunde | Corect ! | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SortCif2 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ă.