Problem 3nplus1
User whaleshark
Submission Time 2024-01-29 16:07:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:4:15: error: expected initializer before ‘>>’ token
4 | int n, cin>>n
| ^~
3nplus1.cpp:6:8: error: lvalue required as left operand of assignment
6 | if(n%2=0);
| ^
3nplus1.cpp:7:5: error: ‘then’ was not declared in this scope
7 | then cout<<n/2;
| ^~~~
3nplus1.cpp:8:1: error: ‘else’ without a previous ‘if’
8 | else;
| ^~~~