Problem | 3nplus1 |
---|---|
User | claireau |
Submission Time | 2024-05-30 18:54:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:10: error: expected primary-expression before ‘int’
8 | if (n/2==int){
| ^~~
3nplus1.cpp:8:10: error: expected ‘)’ before ‘int’
8 | if (n/2==int){
| ~ ^~~
| )
3nplus1.cpp:13:7: error: expected ‘;’ before ‘cin’
13 | n*3+1
| ^
| ;
14 | cin >> n;
| ~~~
3nplus1.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
3nplus1.cpp:5:1: note: to match this ‘{’
5 | {
| ^