nile.cpp: In lambda function:
nile.cpp:28:23: error: conflicting declaration 'std::vector<long long int> ans'
28 | vector<long long> ans(q);
| ^~~
nile.cpp:19:19: note: previous declaration as 'long long int ans'
19 | long long ans = 0;
| ^~~
nile.cpp:34:24: error: use of 'op' before deduction of 'auto'
34 | val += op(cur, e[t]);
| ^~
nile.cpp:39:12: error: invalid types 'long long int[int]' for array subscript
39 | ans[t] = mx - val - op(cur, e[t]);
| ^
nile.cpp:39:29: error: use of 'op' before deduction of 'auto'
39 | ans[t] = mx - val - op(cur, e[t]);
| ^~
nile.cpp: In function 'std::vector<long long int> calculate_costs(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
nile.cpp:42:2: error: expected ',' or ';' at end of input
42 | }
| ^
nile.cpp:42:2: error: expected '}' at end of input
nile.cpp:5:95: note: to match this '{'
5 | vector<long long> calculate_costs(vector<int> w, vector<int> a, vector<int> b, vector<int> e) {
| ^
nile.cpp:42:2: warning: no return statement in function returning non-void [-Wreturn-type]
42 | }
| ^