#447
cifmid
Se citește de la tastatură un număr natural de 3
cifre, distincte. Să se afișeze pe ecran cifra din mijloc, ca valoare.
Problema | cifmid | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #26209459 | Utilizator | |
Fișier | cifmid.cpp | Dimensiune | 220 B |
Data încărcării | 26 Noiembrie 2020, 21:00 | Scor / rezultat | Eroare de compilare |
cifmid.cpp: In function 'int main()': cifmid.cpp:11:7: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if ((x<y<z) || (z<y<x) cout<<y; ^ cifmid.cpp:11:18: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if ((x<y<z) || (z<y<x) cout<<y; ^ cifmid.cpp:11:24: error: expected ')' before 'cout' if ((x<y<z) || (z<y<x) cout<<y; ^ cifmid.cpp:12:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if ((y<x<z) || (z<x<y) cout<<x; ^ cifmid.cpp:12:23: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] else if ((y<x<z) || (z<x<y) cout<<x; ^ cifmid.cpp:12:29: error: expected ')' before 'cout' else if ((y<x<z) || (z<x<y) cout<<x; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifmid 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ă.