Problem | 3nplus1 |
---|---|
User | vince |
Submission Time | 2023-11-08 09:11:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:4:8: error: expected primary-expression before ‘>’ token
4 | cin >>> int n;
| ^
3nplus1.cpp:4:10: error: expected primary-expression before ‘int’
4 | cin >>> int n;
| ^~~
3nplus1.cpp:5:9: error: ‘n’ was not declared in this scope
5 | while (n!=0){
| ^
3nplus1.cpp:10:6: error: unable to find numeric literal operator ‘operator""n’
10 | n=3n+1;
| ^~
3nplus1.cpp:13:11: error: expected primary-expression before ‘<’ token
13 | cout <<< "Error"
| ^
3nplus1.cpp:16:10: error: expected primary-expression before ‘<’ token
16 | cout <<< n
| ^
3nplus1.cpp:18:1: error: expected ‘}’ at end of input
18 | }
| ^
3nplus1.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^