#106
minim3
Să se scrie un program care determină minimul a trei numere întregi.
Problema | minim3 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53928569 | Utilizator | |
Fișier | minim3.cpp | Dimensiune | 145 B |
Data încărcării | 14 Noiembrie 2024, 23:28 | Scor / rezultat | Eroare de compilare |
minim3.cpp:2:1: error: expected unqualified-id before '-' token -char ^ minim3.cpp: In function 'int main()': minim3.cpp:9:5: error: 'cin' was not declared in this scope cin>>a,b,c; ^ minim3.cpp:9:5: note: suggested alternative: In file included from minim3.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ minim3.cpp:10:5: error: 'cout' was not declared in this scope cout<<min(a,min(b,c)); ^ minim3.cpp:10:5: note: suggested alternative: In file included from minim3.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ minim3.cpp:10:24: error: 'min' was not declared in this scope cout<<min(a,min(b,c)); ^ minim3.cpp:10:24: note: suggested alternative: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from minim3.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: 'std::min' min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ minim3.cpp:10:25: error: 'min' was not declared in this scope cout<<min(a,min(b,c)); ^ minim3.cpp:10:25: note: suggested alternative: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from minim3.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: 'std::min' min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ minim3.cpp:10:25: error: redeclaration of '<typeprefixerror>min' cout<<min(a,min(b,c)); ^ minim3.cpp:10:24: note: previous declaration '<typeprefixerror>min' cout<<min(a,min(b,c)); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema minim3 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ă.