Problem | 3nplus1 |
---|---|
User | TheBlueCharizard |
Submission Time | 2023-06-01 11:53:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:8: error: ‘N’ was not declared in this scope
7 | while(N != 1){
| ^
3nplus1.cpp:8:13: error: lvalue required as left operand of assignment
8 | if (n%2 = 0){
| ^
3nplus1.cpp:12:12: error: unable to find numeric literal operator ‘operator""n’
12 | cout << 3n+1);
| ^~
3nplus1.cpp: At global scope:
3nplus1.cpp:16:1: error: ‘cout’ does not name a type
16 | cout << 1;
| ^~~~