Problem | 3nplus1 |
---|---|
User | RendezvousAnonymous |
Submission Time | 2023-11-08 10:17:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:11: error: expected ‘;’ before ‘cout’
10 | n = n/2
| ^
| ;
11 | cout << n << endl;
| ~~~~
3nplus1.cpp:14:21: error: expected ‘;’ before ‘cout’
14 | n = ( 3 * n ) + 1
| ^
| ;
15 | cout << n << endl;
| ~~~~