Problem | 3nplus1 |
---|---|
User | kaitlyn09 |
Submission Time | 2023-02-16 17:03:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 |
4 | int main(){
| ~~~
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:14: error: expected ‘;’ before ‘}’ token
8 | cout << n/2
| ^
| ;
9 | } else {
| ~
3nplus1.cpp:10:18: error: expected ‘;’ before ‘}’ token
10 | cout << 3*n + 1
| ^
| ;
11 | }
| ~
3nplus1.cpp:13:10: error: expected ‘;’ before ‘}’ token
13 | return 0
| ^
| ;
14 | }
| ~