Problem 3nplus1
User fanqie
Submission Time 2024-06-27 08:58:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:14: error: lvalue required as left operand of assignment
6 | if (n % 2 = 0){
| ^
3nplus1.cpp:10:14: error: lvalue required as left operand of assignment
10 | if (n % 2 = 1){
| ^
3nplus1.cpp:11:7: error: unable to find numeric literal operator ‘operator""n’
11 | n = 3n + 1;
| ^~
3nplus1.cpp:12:11: error: unable to find numeric literal operator ‘operator""n’
12 | cout << 3n+1;
| ^~