| Problem | 3nplus1 |
|---|---|
| User | Dcxz |
| Submission Time | 2026-06-15 12:31:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:18: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
6 | char sequence = "";
| ^~
| |
| const char*
3nplus1.cpp:11:8: error: invalid operands of types ‘float’ and ‘int’ to binary ‘operator%’
11 | if (n%2 == 0) {
| ~^~
| | |
| | int
| float
3nplus1.cpp:14:15: error: expected ‘;’ before ‘}’ token
14 | n = 3*n + 1
| ^
| ;
15 | }
| ~
3nplus1.cpp:16:34: error: expected ‘;’ before ‘}’ token
16 | cout << to_string(int(n)) + " "
| ^
| ;
17 | }
| ~