nile.cpp: In lambda function:
nile.cpp:25:17: error: 'w' is not captured
25 | return w[x] < w[y];
| ^
nile.cpp:24:21: note: the lambda has no capture-default
24 | sort(all(id) , [](int x , int y){
| ^
nile.cpp:20:47: note: 'std::vector<int> w' declared here
20 | vector<long long> calculate_costs(vector<int> w , vector<int> a , vector<int> b , vector<int> e){
| ~~~~~~~~~~~~^
nile.cpp:25:24: error: 'w' is not captured
25 | return w[x] < w[y];
| ^
nile.cpp:24:21: note: the lambda has no capture-default
24 | sort(all(id) , [](int x , int y){
| ^
nile.cpp:20:47: note: 'std::vector<int> w' declared here
20 | vector<long long> calculate_costs(vector<int> w , vector<int> a , vector<int> b , vector<int> e){
| ~~~~~~~~~~~~^