#3667
cifmaximp
Se dau n
numere naturale. Determinaţi câte dintre ele au cifra maximă un număr impar.
Problema | cifmaximp | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57983209 | Utilizator | |
Fișier | cifmaximp.cpp | Dimensiune | 240 B |
Data încărcării | 06 Mai 2025, 17:47 | Scor / rezultat | Eroare de compilare |
cifmaximp.cpp: In function 'int main()': cifmaximp.cpp:8:10: error: 'm' was not declared in this scope cin>>m; ^ cifmaximp.cpp:9:8: error: expected '(' before '{' token for{while(n!=0) ^ cifmaximp.cpp:9:8: error: expected primary-expression before '{' token cifmaximp.cpp:9:8: error: expected ';' before '{' token cifmaximp.cpp:18:1: error: expected primary-expression at end of input } ^ cifmaximp.cpp:18:1: error: expected ';' at end of input cifmaximp.cpp:18:1: error: expected primary-expression at end of input cifmaximp.cpp:18:1: error: expected ')' at end of input cifmaximp.cpp:18:1: error: expected statement at end of input cifmaximp.cpp:18:1: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifmaximp 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ă.