#452
cifimp
Se citește de la tastatură un număr natural de 3
cifre. Să se determine câte cifre impare conține.
Problema | cifimp | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #37364920 | Utilizator | |
Fișier | cifimp.cpp | Dimensiune | 451 B |
Data încărcării | 16 August 2022, 01:40 | Scor / rezultat | Eroare de compilare |
cifimp.cpp: In function 'int main()': cifimp.cpp:12:23: error: expected identifier before ')' token if (a%2 == 1 (&&) b%2 == 1 (&&) c%2 == 1) ^ cifimp.cpp:12:23: error: expression cannot be used as a function cifimp.cpp:12:25: error: expected ')' before 'b' if (a%2 == 1 (&&) b%2 == 1 (&&) c%2 == 1) ^ cifimp.cpp:14:28: error: expected identifier before ')' token else if (a%2 == 1 (&&) b%2 == 1 (||) a%2 == 1 (&&) c%2 == 1 (||) b%2 == 1 (&&) c%2 == 1) ^ cifimp.cpp:14:28: error: expression cannot be used as a function cifimp.cpp:14:30: error: expected ')' before 'b' else if (a%2 == 1 (&&) b%2 == 1 (||) a%2 == 1 (&&) c%2 == 1 (||) b%2 == 1 (&&) c%2 == 1) ^ cifimp.cpp:16:26: error: expected primary-expression before '||' token else if (a%2 == 1 (||) b%2 == 1 (||) c%2 == 1) ^ cifimp.cpp:16:28: error: expected primary-expression before ')' token else if (a%2 == 1 (||) b%2 == 1 (||) c%2 == 1) ^ cifimp.cpp:16:28: error: expression cannot be used as a function cifimp.cpp:16:30: error: expected ')' before 'b' else if (a%2 == 1 (||) b%2 == 1 (||) c%2 == 1) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifimp 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ă.