candies.cpp: In function 'std::vector<int> distribute_candies(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
candies.cpp:10:27: error: invalid declarator before 'sum'
10 | vector<long long int> sum(n + 1, 0);
| ^~~
candies.cpp:23:13: error: 'sum' was not declared in this scope
23 | sum[l[i]] += v[i] * 1LL;
| ^~~
candies.cpp:27:36: error: 'sum' was not declared in this scope
27 | for(int i = 1; i < n; i++) sum[i] += sum[i - 1];
| ^~~
candies.cpp:28:59: error: 'sum' was not declared in this scope
28 | for(int i = 0; i < n; i++) c[i] = min(c[i] * 1LL, sum[i]);
| ^~~