#446
Se citește de la tastatură un număr natural de 3 cifre. Să se afișeze pe ecran cea mai mare cifră a sa.
| Problema | cifmax3 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64278141 | Utilizator | |
| Fișier | cifmax3.cpp | Dimensiune | 360 B |
| Data încărcării | 27 Aprilie 2026, 17:53 | Scor/rezultat | Eroare de compilare |
cifmax3.cpp:1:2: error: invalid preprocessing directive #inlude; did you mean #include? 1 | #inlude <iostream> | ^~~~~~ | include cifmax3.cpp: In function ‘int main()’: cifmax3.cpp:5:5: error: ‘cin’ was not declared in this scope 5 | cin<<n; | ^~~ cifmax3.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | #inlude <iostream> cifmax3.cpp:7:21: error: ‘cout’ was not declared in this scope 7 | if (a>b && b>c) cout<<a; | ^~~~ cifmax3.cpp:7:21: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? cifmax3.cpp:8:26: error: ‘cout’ was not declared in this scope 8 | else if (a>c && c>b) cout<<a; | ^~~~ cifmax3.cpp:8:26: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? cifmax3.cpp:9:30: error: ‘cout’ was not declared in this scope 9 | else if (b>a && a>c) cout<<b; | ^~~~ cifmax3.cpp:9:30: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? cifmax3.cpp:10:30: error: ‘cout’ was not declared in this scope 10 | else if (b>c && c>a) cout<<b; | ^~~~ cifmax3.cpp:10:30: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? cifmax3.cpp:11:32: error: ‘cout’ was not declared in this scope 11 | else if (c>a && a>b) cout<<c; | ^~~~ cifmax3.cpp:11:32: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? cifmax3.cpp:12:32: error: ‘cout’ was not declared in this scope 12 | else if (c>b && b>c) cout<<c; | ^~~~ cifmax3.cpp:12:32: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifmax3 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ă.