Problem 3nplus1
User chickennn
Submission Time 2026-03-31 20:23:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:15: error: lvalue required as left operand of assignment
8 | if (n % 2 = 0) {
| ^
3nplus1.cpp:16:22: error: ‘arr’ was not declared in this scope; did you mean ‘array’?
16 | int length = sizeof(arr);
| ^~~
| array
3nplus1.cpp:17:30: error: ‘i’ was not declared in this scope
17 | for (int j = 0; j < length; i++) {
| ^