#4318
Se dă un șir cu n
elemente, numere naturale. Să se determine câte elemente ale șirului au număr impar de cifre.
Problema | Cifre20 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55546886 | Utilizator | |
Fișier | cifre20.cpp | Dimensiune | 290 B |
Data încărcării | 18 Ianuarie 2025, 08:45 | Scor / rezultat | Eroare de compilare |
cifre20.cpp: In function 'int main()': cifre20.cpp:11:16: error: expected ')' before ';' token (a=a/10; nrcif++;) ^ cifre20.cpp:11:18: error: expected 'while' before 'nrcif' (a=a/10; nrcif++;) ^ cifre20.cpp:11:18: error: expected '(' before 'nrcif' cifre20.cpp:11:25: error: expected ')' before ';' token (a=a/10; nrcif++;) ^ cifre20.cpp:11:26: error: expected primary-expression before ')' token (a=a/10; nrcif++;) ^ cifre20.cpp:11:26: error: expected ';' before ')' token cifre20.cpp:17:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cifre20 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ă.