| Problem | 3nplus1 |
|---|---|
| User | fanqie |
| Submission Time | 2024-06-27 09:00:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int32_t main()’:
3nplus1.cpp:7:14: error: lvalue required as left operand of assignment
7 | if (n % 2 = 0){
| ^
3nplus1.cpp:11:14: error: lvalue required as left operand of assignment
11 | if (n % 2 = 1){
| ^
3nplus1.cpp:12:7: error: unable to find numeric literal operator ‘operator""n’
12 | n = 3n + 1;
| ^~
3nplus1.cpp:13:11: error: unable to find numeric literal operator ‘operator""n’
13 | cout << 3n+1;
| ^~