#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 | #5513524 | Utilizator | |
Fișier | minim3.cpp | Dimensiune | 168 B |
Data încărcării | 11 August 2017, 15:15 | Scor / rezultat | Eroare de compilare |
minim3.cpp: In function 'int main()': minim3.cpp:6:6: error: overloaded function with no contextual type information max=a; ^ minim3.cpp:7:10: error: the value of 'b' is not usable in a constant expression if(max<b) max=b; ^ minim3.cpp:3:7: note: 'int b' is not const int a,b,c,maxx; ^ minim3.cpp:7:6: error: parse error in template argument list if(max<b) max=b; ^ minim3.cpp:7:11: error: cannot resolve overloaded function 'max' based on conversion to type 'bool' if(max<b) max=b; ^ minim3.cpp:7:16: error: overloaded function with no contextual type information if(max<b) max=b; ^ minim3.cpp:8:10: error: the value of 'c' is not usable in a constant expression if(max<c) max=c; ^ minim3.cpp:3:9: note: 'int c' is not const int a,b,c,maxx; ^ minim3.cpp:8:6: error: parse error in template argument list if(max<c) max=c; ^ minim3.cpp:8:11: error: cannot resolve overloaded function 'max' based on conversion to type 'bool' if(max<c) max=c; ^ minim3.cpp:8:16: error: overloaded function with no contextual type information if(max<c) max=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ă.