| Problem | 3nplus1 |
|---|---|
| User | Dcxz |
| Submission Time | 2026-06-15 12:29:34 |
| 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:6: error: expected ‘(’ before ‘n’
11 | if n%2 == 0 {
| ^
| (
3nplus1.cpp:13:5: error: ‘else’ without a previous ‘if’
13 | } else {
| ^~~~
3nplus1.cpp:14:15: error: expected ‘;’ before ‘}’ token
14 | n = 3*n + 1
| ^
| ;
15 | }
| ~
3nplus1.cpp:16:28: error: expected ‘;’ before ‘}’ token
16 | cout << to_string(int(n))
| ^
| ;
17 | }
| ~