Problem 3nplus1
User Jessyn
Submission Time 2024-11-16 23:13:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:9: error: ‘i’ was not declared in this scope
7 | while (i!=1){
| ^
3nplus1.cpp:8:13: error: lvalue required as left operand of assignment
8 | if (n %2 =0)
| ^
3nplus1.cpp:11:3: error: ‘else’ without a previous ‘if’
11 | else
| ^~~~