Problem duckbuttons
User Tweoka
Submission Time 2026-06-24 08:51:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckbuttons.cpp: In function ‘int main()’:
duckbuttons.cpp:10:5: error: ‘int64’ was not declared in this scope; did you mean ‘int64_t’?
10 | int64 d;
| ^~~~~
| int64_t
duckbuttons.cpp:11:17: error: ‘d’ was not declared in this scope
11 | cin >> n >> d;
| ^
duckbuttons.cpp:13:17: error: template argument 2 is invalid
13 | vector<int64> a(n+1);
| ^
duckbuttons.cpp:15:19: error: invalid types ‘int[long long int]’ for array subscript
15 | cin >> a[i];
| ^
duckbuttons.cpp:18:5: error: ‘need’ was not declared in this scope
18 | need[n] = a[n];
| ^~~~
duckbuttons.cpp:18:18: error: invalid types ‘int[long long int]’ for array subscript
18 | need[n] = a[n];
| ^
duckbuttons.cpp:20:26: error: invalid types ‘int[long long int]’ for array subscript