Problem 3nplus1
User WANCH5789W
Submission Time 2026-02-23 22:07:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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