Problem duckbuttons
User Visagan
Submission Time 2026-02-20 18:44:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckbuttons.cpp:1:3: error: invalid preprocessing directive #Read
1 | # Read input
| ^~~~
duckbuttons.cpp:5:3: error: invalid preprocessing directive #Calculate
5 | # Calculate total moves
| ^~~~~~~~~
duckbuttons.cpp:8:25: error: stray ā€˜#’ in program
8 | total += a[i] * i # i = (cell index - 1)
| ^
duckbuttons.cpp:10:3: error: invalid preprocessing directive #Output
10 | # Output result
| ^~~~~~
duckbuttons.cpp:2:1: error: ā€˜n’ does not name a type
2 | n, d = map(int, input().split())
| ^