Problem 3nplus1II
User JonahKoh
Submission Time 2026-02-25 16:07:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp:2:7: error: invalid preprocessing directive #Time
2 | # Time starts at 1 with the initial length
| ^~~~
3nplus1II.cpp:6:7: error: invalid preprocessing directive #Keep
6 | # Keep generating until we reach the target time or the bar ceases to exist
| ^~~~
3nplus1II.cpp:8:11: error: invalid preprocessing directive #Apply
8 | # Apply the transformation rule
| ^~~~~
3nplus1II.cpp:9:38: error: stray ‘#’ in program
9 | if current_length % 2 == 1: # Odd
| ^
3nplus1II.cpp:11:16: error: stray ‘#’ in program
11 | else: # Even
| ^
3nplus1II.cpp:16:11: error: invalid preprocessing directive #If; did you mean #if?
16 | # If we reach length 1 before the target time, the bar ceases to exist
| ^~
| if
3nplus1II.cpp:22:3: error: invalid