Problem | 3nplus1 |
---|---|
User | somethingfunny |
Submission Time | 2024-04-05 13:42:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp:12:3: error: invalid preprocessing directive #Sample
12 | # Sample Input 1
| ^~~~~~
3nplus1.cpp:13:29: error: stray ‘#’ in program
13 | print(generate_sequence(5)) # Output: [5, 16, 8, 4, 2, 1]
| ^
3nplus1.cpp:15:3: error: invalid preprocessing directive #Sample
15 | # Sample Input 2
| ^~~~~~
3nplus1.cpp:16:29: error: stray ‘#’ in program
16 | print(generate_sequence(7)) # Output: [7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1]
| ^
3nplus1.cpp:1:1: error: ‘def’ does not name a type
1 | def generate_sequence(n):
| ^~~