Problem 3nplus1II
User angei
Submission Time 2025-08-01 14:55:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:7:15: error: lvalue required as left operand of assignment
7 | if (n % 2 = 0) {
| ^
3nplus1II.cpp:10:4: error: ‘else’ without a previous ‘if’
10 | else {
| ^~~~
3nplus1II.cpp:16:3: error: expected ‘}’ at end of input
16 | }
| ^
3nplus1II.cpp:6:16: note: to match this ‘{’
6 | while (n > 1) {
| ^
3nplus1II.cpp:16:3: error: expected ‘}’ at end of input
16 | }
| ^
3nplus1II.cpp:3:13: note: to match this ‘{’
3 | int main () {
| ^