#3665
cmmcp
Se dă un număr natural n
. Determinaţi cea mai mare cifră pară a sa. Dacă numărul nu are cifre pare se va afişa numărul 10
.
Problema | cmmcp | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53622757 | Utilizator | |
Fișier | cmmcp.cpp | Dimensiune | 335 B |
Data încărcării | 06 Noiembrie 2024, 18:20 | Scor / rezultat | Eroare de compilare |
cmmcp.cpp:2:1: error: 'usig' does not name a type usig namespace std; ^ cmmcp.cpp: In function 'int main()': cmmcp.cpp:7:5: error: 'cin' was not declared in this scope cin>>n; ^ cmmcp.cpp:7:5: note: suggested alternative: In file included from cmmcp.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ cmmcp.cpp:9:9: error: 'cout' was not declared in this scope cout<<0; ^ cmmcp.cpp:9:9: note: suggested alternative: In file included from cmmcp.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ cmmcp.cpp:18:17: error: 'cout' was not declared in this scope if(maxi==-1)cout<<10; ^ cmmcp.cpp:18:17: note: suggested alternative: In file included from cmmcp.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ cmmcp.cpp:19:10: error: 'cout' was not declared in this scope else cout<<maxi; ^ cmmcp.cpp:19:10: note: suggested alternative: In file included from cmmcp.cpp:1: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 cmmcp 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ă.