Problem | 3nplus1 |
---|---|
User | MagicHenry |
Submission Time | 2023-07-29 15:45:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:9: error: overloaded function with no contextual type information
6 | next = a;
| ^
3nplus1.cpp:7:14: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’
7 | while (next != 1) {
| ~~~~~^~~~
3nplus1.cpp:8:11: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator%’
8 | if (next%2 == 1) {
| ~~~~^~
3nplus1.cpp:9:12: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
9 | next = 3*next + 1;
| ~^~~~~
3nplus1.cpp:12:15: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator/’
12 | next = next/2;
| ~~~~^~