Problem evenorodd
User xiaotong
Submission Time 2023-11-08 10:53:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:5:9: error: expected primary-expression before ‘int’
5 | cin >> int n;
| ^~~
evenorodd.cpp:6:5: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | if(n % 2 = 1){
| ^
| yn
evenorodd.cpp: At global scope:
evenorodd.cpp:10:2: error: expected unqualified-id before ‘return’
10 | return 0;
| ^~~~~~
evenorodd.cpp:11:1: error: expected declaration before ‘}’ token
11 | }
| ^