Problem coke
User Pan
Submission Time 2023-09-12 15:51:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coke.cpp: In function ‘int main()’:
coke.cpp:32:9: error: ‘ll’ was not declared in this scope
32 | vector<ll> prev(k+1,-1);
| ^~
coke.cpp:32:11: error: template argument 1 is invalid
32 | vector<ll> prev(k+1,-1);
| ^
coke.cpp:32:11: error: template argument 2 is invalid
coke.cpp:32:24: error: expression list treated as compound expression in initializer [-fpermissive]
32 | vector<ll> prev(k+1,-1);
| ^
coke.cpp:33:8: error: invalid types ‘int[int]’ for array subscript
33 | prev[0] = 0;
| ^
coke.cpp:34:11: error: template argument 2 is invalid
34 | vector<ll> dp(k+1);
| ^
coke.cpp:43:34: error: invalid types ‘int[int]’ for array subscript
43 | if (caffe<=i2 && prev[i2-caffe]!=-1)
| ^
coke.cpp:47:10: error: invalid types ‘int[int]’ for array subscript