#4574
Oglindite_IX
Să se scrie un program care citește de la tastatură două numere naturale a
și b
și îl afișează pe ecran pe cel care are oglinditul mai mare. Dacă cele două numere au oglinditele egale, atunci se afișează numărul mai mic.
Problema | Oglindite_IX | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55061198 | Utilizator | |
Fișier | oglindite_ix.cpp | Dimensiune | 468 B |
Data încărcării | 19 Decembrie 2024, 14:49 | Scor / rezultat | Eroare de compilare |
oglindite_ix.cpp:4:1: error: 'uusing' does not name a type uusing naespace std; ^ oglindite_ix.cpp: In function 'int main()': oglindite_ix.cpp:8:5: error: 'cin' was not declared in this scope cin>>a>>b; ^ oglindite_ix.cpp:8:5: note: suggested alternative: In file included from oglindite_ix.cpp:3:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ oglindite_ix.cpp:16:9: error: expected ';' before 'og1' og1=og1*10+c; ^ oglindite_ix.cpp:21:13: warning: division by zero [-Wdiv-by-zero] d=b%0; ^ oglindite_ix.cpp:25:17: error: 'cout' was not declared in this scope if(og1>og2) cout<<e; ^ oglindite_ix.cpp:25:17: note: suggested alternative: In file included from oglindite_ix.cpp:3:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ oglindite_ix.cpp:26:17: error: 'cout' was not declared in this scope if(og2>og1) cout<<f; ^ oglindite_ix.cpp:26:17: note: suggested alternative: In file included from oglindite_ix.cpp:3:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ oglindite_ix.cpp:27:25: error: 'cout' was not declared in this scope if(og1==og2 && e<f) cout<<e; ^ oglindite_ix.cpp:27:25: note: suggested alternative: In file included from oglindite_ix.cpp:3:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ oglindite_ix.cpp:28:25: error: 'cout' was not declared in this scope if(og1==og2 && e>f) cout<<f; ^ oglindite_ix.cpp:28:25: note: suggested alternative: In file included from oglindite_ix.cpp:3:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Oglindite_IX 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ă.