#4339
pare_impare
Se dau 3
numere naturale a
, b
și c
.
Stabiliți dacă dintre cele trei numere citite sunt mai multe numere pare sau mai multe impare.
Problema | pare_impare | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53838446 | Utilizator | |
Fișier | pare_impare.cpp | Dimensiune | 465 B |
Data încărcării | 12 Noiembrie 2024, 21:20 | Scor / rezultat | Eroare de compilare |
pare_impare.cpp:1:10: error: #include expects "FILENAME" or <FILENAME> #include ;iostream: ^ pare_impare.cpp: In function 'int main()': pare_impare.cpp:6:5: error: 'cin' was not declared in this scope cin>>a>>b>>c; ^ pare_impare.cpp:9:9: error: 'nrpare' was not declared in this scope nrpare==nrpare+1; ^ pare_impare.cpp:11:9: error: 'nrimpare' was not declared in this scope nrimpare==nrimpare+1; ^ pare_impare.cpp:13:9: error: 'nrpare' was not declared in this scope nrpare==nrpare+1; ^ pare_impare.cpp:15:9: error: 'nrimpare' was not declared in this scope nrimpare==nrimpare+1; ^ pare_impare.cpp:17:9: error: 'nrpare' was not declared in this scope nrpare==nrpare+1; ^ pare_impare.cpp:19:9: error: 'nrimpare' was not declared in this scope nrimpare==nrimpare+1; ^ pare_impare.cpp:20:9: error: 'nrpare' was not declared in this scope if(nrpare>nrimpare) ^ pare_impare.cpp:20:16: error: 'nrimpare' was not declared in this scope if(nrpare>nrimpare) ^ pare_impare.cpp:21:9: error: 'cout' was not declared in this scope cout<<"pare"; ^ pare_impare.cpp:23:9: error: 'cout' was not declared in this scope cout<<"impare"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema pare_impare 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ă.