Problem evenorodd_ex
User mynas111
Submission Time 2026-02-02 16:53:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd_ex.cpp: In function ‘int main()’:
evenorodd_ex.cpp:8:9: error: expected primary-expression before ‘int’
8 | cin >> int list[];
| ^~~
evenorodd_ex.cpp:9:6: error: ‘list’ was not declared in this scope
9 | if (list[0] / 2 * 2 != list[0]) {
| ^~~~
evenorodd_ex.cpp:2:1: note: ‘std::list’ is defined in header ‘<list>’; did you forget to ‘#include <list>’?
1 | #include <iostream>
+++ |+#include <list>
2 | using namespace std;
evenorodd_ex.cpp:12:6: error: ‘list’ was not declared in this scope
12 | if (list[1] / 2 * 2 != list[1]) {
| ^~~~
evenorodd_ex.cpp:12:6: note: ‘std::list’ is defined in header ‘<list>’; did you forget to ‘#include <list>’?
evenorodd_ex.cpp:15:6: error: ‘list’ was not declared in this scope
15 | if (list[2] / 2 * 2 != list[2]) {
| ^~~~
evenorodd_ex.cpp:15:6: note: ‘std::list’ is defined in hea