#448
Se citește de la tastatură un număr natural de 3 cifre. Să se afișeze cifrele sale în ordine crescătoare.
| Problema | ciford | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64834713 | Utilizator | |
| Fișier | ciford.cpp | Dimensiune | 435 B |
| Data încărcării | 04 Iunie 2026, 17:24 | Scor/rezultat | 0 puncte |
ciford.cpp: In function ‘int main()’: ciford.cpp:9:50: warning: right operand of comma operator has no effect [-Wunused-value] 9 | if(cu<cz && cu<cs && cz<cs && cz>cu) cout<<cu,cz,cs; | ^~ ciford.cpp:9:52: warning: right operand of comma operator has no effect [-Wunused-value] 9 | if(cu<cz && cu<cs && cz<cs && cz>cu) cout<<cu,cz,cs; | ^ ciford.cpp:10:55: warning: right operand of comma operator has no effect [-Wunused-value] 10 | else if(cz<cu && cz<cs && cu<cs && cu>cz) cout<<cz,cu,cs; | ^~ ciford.cpp:10:57: warning: right operand of comma operator has no effect [-Wunused-value] 10 | else if(cz<cu && cz<cs && cu<cs && cu>cz) cout<<cz,cu,cs; | ^ ciford.cpp:11:55: warning: right operand of comma operator has no effect [-Wunused-value] 11 | else if(cu<cs && cu<cz && cs<cz && cs>cu) cout<<cu,cs,cz; | ^~ ciford.cpp:11:57: warning: right operand of comma operator has no effect [-Wunused-value] 11 | else if(cu<cs && cu<cz && cs<cz && cs>cu) cout<<cu,cs,cz; | ^ ciford.cpp:12:55: warning: right operand of comma operator has no effect [-Wunused-value] 12 | else if(cz<cs && cz<cu && cs<cu && cs>cz) cout<<cz,cs,cu; | ^~ ciford.cpp:12:57: warning: right operand of comma operator has no effect [-Wunused-value] 12 | else if(cz<cs && cz<cu && cs<cu && cs>cz) cout<<cz,cs,cu; | ^ ciford.cpp:13:55: warning: right operand of comma operator has no effect [-Wunused-value] 13 | else if(cs<cu && cs<cz && cu<cz && cu>cs) cout<<cs,cu,cz; | ^~ ciford.cpp:13:57: warning: right operand of comma operator has no effect [-Wunused-value] 13 | else if(cs<cu && cs<cz && cu<cz && cu>cs) cout<<cs,cu,cz; | ^ ciford.cpp:14:18: warning: right operand of comma operator has no effect [-Wunused-value] 14 | else cout<<cs,cz,cu; | ^~ ciford.cpp:14:20: warning: right operand of comma operator has no effect [-Wunused-value] 14 | else cout<<cs,cz,cu; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ciford 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ă.