| Problem | 3nplus1 |
|---|---|
| User | Achyuth |
| Submission Time | 2026-11-02 11:52:48 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
3nplus1.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> n;
| ^~~
3nplus1.cpp:6:5: error: ‘cout’ was not declared in this scope
6 | cout << n << ' ';
| ^~~~
3nplus1.cpp:9:28: error: expected primary-expression before ‘,’ token
9 | cout << n/2 << , ' ';
| ^
3nplus1.cpp:10:17: error: expected ‘;’ before ‘}’ token
10 | n/=2
| ^
| ;
11 | } else {
| ~
3nplus1.cpp:12:20: error: expected primary-expression before ‘,’ token
12 | cout <<, 3*n + 1 , ' ';
| ^
3nplus1.cpp:13:23: error: expected ‘;’ before ‘}’ token
13