#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58496024 | Utilizator | |
Fișier | cifmaximp.cpp | Dimensiune | 806 B |
Data încărcării | 11 Iunie 2025, 14:42 | Scor / rezultat | Eroare de compilare |
cifmaximp.cpp:29:5: error: redefinition of 'int nr' int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:5:5: error: 'int nr' previously declared here int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:29:9: error: redefinition of 'int n' int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:5:9: error: 'int n' previously declared here int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:29:12: error: redefinition of 'int cifmax' int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:5:12: error: 'int cifmax' previously declared here int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:29:20: error: redefinition of 'int cifra' int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:5:20: error: 'int cifra' previously declared here int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:29:27: error: redefinition of 'int i' int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:5:27: error: 'int i' previously declared here int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:29:30: error: redefinition of 'int contor' int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp:5:30: error: 'int contor' previously defined here int nr, n, cifmax, cifra, i, contor=0; ^ cifmaximp.cpp: In function 'int main()': cifmaximp.cpp:31:5: error: redefinition of 'int main()' int main() ^ cifmaximp.cpp:7:5: error: 'int main()' previously defined here int main() ^
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ă.