Problem | 3nplus1 |
---|---|
User | NoobMugger420 |
Submission Time | 2024-10-29 12:49:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:9: error: expected ‘(’ before ‘true’
8 | while true{
| ^~~~
| (
3nplus1.cpp:8:13: error: expected ‘)’ before ‘{’ token
8 | while true{
| ~~~~^
| )
3nplus1.cpp:10:18: error: expected ‘;’ before ‘cout’
10 | x = (3*n)+1
| ^
| ;
11 | cout << x << " ";
| ~~~~
3nplus1.cpp:14:14: error: expected ‘;’ before ‘cout’
14 | x = n/2
| ^
| ;
15 | cout << x << " ";
| ~~~~