Problem | evenorodd |
---|---|
User | xiaotong |
Submission Time | 2023-11-08 10:52:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:6:13: error: lvalue required as left operand of assignment
6 | if(n % 2 = 1){
| ^
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 | }
| ^