#8
maxim3
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 | #51382540 | Utilizator | |
Fișier | maxim3.cpp | Dimensiune | 340 B |
Data încărcării | 11 Iunie 2024, 19:33 | Scor / rezultat | Eroare de compilare |
maxim3.cpp: In function 'int main()': maxim3.cpp:8:18: error: 'maxim3' was not declared in this scope ifstream in (maxim3.in) ^ maxim3.cpp:9:5: error: expected ',' or ';' before 'ofstream' ofstream out (maxim3.out) ^ maxim3.cpp:11:9: error: 'a' was not declared in this scope in>>a>>b>>c; ^ maxim3.cpp:11:12: error: 'b' was not declared in this scope in>>a>>b>>c; ^ maxim3.cpp:11:15: error: 'c' was not declared in this scope in>>a>>b>>c; ^ maxim3.cpp:13:9: error: 'eredmeny' was not declared in this scope eredmeny=a; ^ maxim3.cpp:15:9: error: 'eredmeny' was not declared in this scope eredmeny=b; ^ maxim3.cpp:17:9: error: 'eredmeny' was not declared in this scope eredmeny=c; ^ maxim3.cpp:18:5: error: 'out' was not declared in this scope out<<eredmeny; ^ maxim3.cpp:18:10: error: 'eredmeny' was not declared in this scope out<<eredmeny; ^
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ă.