#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58464164 | Utilizator | |
Fișier | ciford.cpp | Dimensiune | 805 B |
Data încărcării | 07 Iunie 2025, 12:41 | Scor / rezultat | Eroare de compilare |
ciford.cpp: In function 'int main()': ciford.cpp:7:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] while (100<=a<=999){ ^ ciford.cpp:11:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (cz>cu>cs){ ^ ciford.cpp:14:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (cz>cu<cs &&cz>cs){ ^ ciford.cpp:17:19: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (cz<cu<cs){ ^ ciford.cpp:20:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (cz<cu>cs && cz>cs){ ^ ciford.cpp:24:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(cz<cu>cs && cz<cs){ ^ ciford.cpp:27:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (cs>cu>cz){ ^ ciford.cpp:30:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (cs>cz>cu) ^ ciford.cpp: At global scope: ciford.cpp:36:13: error: expected declaration before '}' token } ^
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ă.