#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 | #55137753 | Utilizator | |
Fișier | pare_impare.cpp | Dimensiune | 410 B |
Data încărcării | 29 Decembrie 2024, 15:27 | Scor / rezultat | Eroare de compilare |
pare_impare.cpp:9:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] cout << ''par'' << endl ^ pare_impare.cpp:9:17: error: empty character constant pare_impare.cpp:9:22: error: empty character constant cout << ''par'' << endl ^ pare_impare.cpp:11:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] cout << ''impar'' << endl ^ pare_impare.cpp:11:17: error: empty character constant pare_impare.cpp:11:24: error: empty character constant cout << ''impar'' << endl ^ pare_impare.cpp:13:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] cout << ''par'' << endl ^ pare_impare.cpp:13:17: error: empty character constant pare_impare.cpp:13:22: error: empty character constant cout << ''par'' << endl ^ pare_impare.cpp:15:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] cout << ''impar'' << endl ^ pare_impare.cpp:15:17: error: empty character constant pare_impare.cpp:15:24: error: empty character constant cout << ''impar'' << endl ^ pare_impare.cpp:17:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] cout << ''par'' << endl ^ pare_impare.cpp:17:17: error: empty character constant pare_impare.cpp:17:22: error: empty character constant cout << ''par'' << endl ^ pare_impare.cpp:19:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] cout << ''impar'' << endl ^ pare_impare.cpp:19:17: error: empty character constant pare_impare.cpp:19:24: error: empty character constant cout << ''impar'' << endl ^ pare_impare.cpp: In function 'int main()': pare_impare.cpp:9:19: error: expected ';' before 'par' cout << ''par'' << endl ^
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ă.