candies.cpp: In function 'std::vector<int> distribute_candies(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
candies.cpp:9:12: error: 'll' was not declared in this scope; did you mean 'l'?
9 | vector<ll> s(n+1);
| ^~
| l
candies.cpp:9:14: error: template argument 1 is invalid
9 | vector<ll> s(n+1);
| ^
candies.cpp:9:14: error: template argument 2 is invalid
candies.cpp:12:14: error: 'j' was not declared in this scope
12 | if(v[j] < 0) subtask2 = false;
| ^
candies.cpp:16:21: error: 'q' was not declared in this scope
16 | if(n <= 2000 && q <= 2000) { // Subtask 1
| ^
candies.cpp:18:32: error: expected ';' before '<=' token
18 | for(int j = l[i], j <= r[i], j++) {
| ^~~
| ;
candies.cpp:18:33: error: expected primary-expression before '<=' token
18 | for(int j = l[i], j <= r[i], j++) {
| ^~
candies.cpp:18:45: error: expected ';' before ')' token
18 | for(int j = l[i], j <= r[i], j++) {
| ^
| ;
candies.cpp:19:18: error: invalid types 'int[int]' for array subscript
19 | s[j] += v[j];
| ^
candies.cpp:20:18: error: invalid types 'int[int]' for array subscript
20 | s[j] = max(s[j], 0);
| ^
candies.cpp:20:29: error: invalid types 'int[int]' for array subscript
20 | s[j] = max(s[j], 0);
| ^
candies.cpp:21:18: error: invalid types 'int[int]' for array subscript
21 | s[j] = min(s[j], c[j]);
| ^
candies.cpp:21:29: error: invalid types 'int[int]' for array subscript
21 | s[j] = min(s[j], c[j]);
| ^
candies.cpp:27:14: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
27 | s[l[i]] += v[i];
| ^
candies.cpp:28:14: error: invalid types 'int[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
28 | s[r[i]+1] -= v[i];
| ^
candies.cpp:31:14: error: invalid types 'int[int]' for array subscript
31 | s[i] += s[i-1];
| ^
candies.cpp:31:22: error: invalid types 'int[int]' for array subscript
31 | s[i] += s[i-1];
| ^
candies.cpp:34:14: error: invalid types 'int[int]' for array subscript
34 | s[i] = min(s[i], c[i]);
| ^
candies.cpp:34:25: error: invalid types 'int[int]' for array subscript
34 | s[i] = min(s[i], c[i]);
| ^
candies.cpp:47:43: error: invalid types 'int[int]' for array subscript
47 | for(int i = 0; i < n; i++) sInt[i] = s[i];
| ^