#3667
Se dau n numere naturale. Determinaţi câte dintre ele au cifra maximă un număr impar.
| Problema | cifmaximp | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #65002473 | Utilizator | |
| Fișier | cifmaximp.cpp | Dimensiune | 311 B |
| Data încărcării | 10 Iulie 2026, 15:13 | Scor/rezultat | Eroare de compilare |
cifmaximp.cpp: In function ‘int main()’: cifmaximp.cpp:13:18: error: expected primary-expression before ‘=’ token 13 | if (cif%2!==0 && cif>maxp) | ^ cifmaximp.cpp:20:15: error: expected primary-expression before ‘=’ token 20 | if (maxp!==0) | ^ cifmaximp.cpp:20:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 20 | if (maxp!==0) | ^~ cifmaximp.cpp:21:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 21 | cout<<maxp; | ^ cifmaximp.cpp:21:20: error: expected ‘}’ at end of input cifmaximp.cpp:5:1: note: to match this ‘{’ 5 | { | ^
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ă.