Problem 3nplus1
User ky
Submission Time 2023-08-10 00:20:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:11:9: error: lvalue required as left operand of assignment
11 | if(x%2=0){
| ^
3nplus1.cpp:12:7: error: ‘even’ was not declared in this scope
12 | x = even(x);
| ^~~~
3nplus1.cpp:14:7: error: ‘odd’ was not declared in this scope
14 | x = odd(x);
| ^~~
3nplus1.cpp: In function ‘long long int odd()’:
3nplus1.cpp:28:6: error: unable to find numeric literal operator ‘operator""x’
28 | x = 3x+1;
| ^~