0_0_21925050_30780.cpp:5:1: error: 'll' does not name a type
ll pre[100005];
^
0_0_21925050_30780.cpp: In function 'void work(int*, int, int)':
0_0_21925050_30780.cpp:13:3: error: 'll' was not declared in this scope
ll sum = pre[dp[i] - 1] - (i ? pre[i - 1] : 0);
^
0_0_21925050_30780.cpp:14:23: error: 'sum' was not declared in this scope
while (dp[i] < n && sum + arr[dp[i]] <= w)
^
0_0_21925050_30780.cpp: In function 'int main()':
0_0_21925050_30780.cpp:34:4: error: 'pre' was not declared in this scope
pre[i] = (i ? pre[i - 1] : 0) + arr[i];
^
|