#8
Să se scrie un program care determină maximul a trei numere întregi citite dintr-un fişier.
| Problema | maxim3 | Operații I/O |
maxim3.in/maxim3.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #60270856 | Utilizator | |
| Fișier | maxim3.cpp | Dimensiune | 318 B |
| Data încărcării | 23 Octombrie 2025, 13:53 | Scor/rezultat | 0 puncte |
maxim3.cpp: In function 'int main()': maxim3.cpp:9:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(a>b>c||a>c>b){ ^ maxim3.cpp:9:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(a>b>c||a>c>b){ ^ maxim3.cpp:12:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if(b>a>c||b>c>a){ ^ maxim3.cpp:12:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if(b>a>c||b>c>a){ ^ maxim3.cpp:15:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if(c>a>b||c>b>a){ ^ maxim3.cpp:15:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if(c>a>b||c>b>a){ ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema maxim3 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ă.