Problem doll_noi
User storzak
Submission Time 2025-02-19 21:31:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doll_noi.cpp:2:24: error: stray ‘#’ in program
2 | dp = [0] * 500001 # Since max size of dolls can be 500000
| ^
doll_noi.cpp:10:35: error: stray ‘#’ in program
10 | dp[size] = max_stack + 1 # Adding the current doll
| ^
doll_noi.cpp:12:11: error: invalid preprocessing directive #Maximum
12 | # Maximum stack size for this day
| ^~~~~~~
doll_noi.cpp:17:3: error: invalid preprocessing directive #Input
17 | # Input reading
| ^~~~~
doll_noi.cpp:21:3: error: invalid preprocessing directive #Compute
21 | # Compute and print results
| ^~~~~~~
doll_noi.cpp:1:1: error: ‘def’ does not name a type
1 | def max_doll_stack(n, sizes):
| ^~~