| Problem | 3nplus1 |
|---|---|
| User | vince |
| Submission Time | 2023-11-08 09:21:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:4:9: error: expected primary-expression before ‘int’
4 | cin >> int n;
| ^~~
3nplus1.cpp:5:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | while (n != 0){
| ^
| yn
3nplus1.cpp:10:8: error: unable to find numeric literal operator ‘operator""n’
10 | n = 3n + 1;
| ^~
3nplus1.cpp:16:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
16 | if (n == 0){
| ^
| yn