nile.cpp: In function 'std::vector<int> calculate_costs(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
nile.cpp:47:25: error: 'N' was not declared in this scope
47 | for (int i = 0; i < N; ++i)
| ^
nile.cpp:48:17: error: 'class std::vector<std::tuple<int, int, int> >' has no member named 'eb'
48 | queries.eb(W[i], A[i], B[i]);
| ^~
nile.cpp:50:10: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
50 | sort(all(queries));
| ^~~
| std::filesystem::perms::all
In file included from /usr/include/c++/10/filesystem:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from nile.cpp:1:
/usr/include/c++/10/bits/fs_fwd.h:148:7: note: 'std::filesystem::perms::all' declared here
148 | all = 0777,
| ^~~
nile.cpp:52:25: error: 'N' was not declared in this scope
52 | for (int i = 0; i < N; ++i) {
| ^
nile.cpp:58:26: error: 'Q' was not declared in this scope
58 | for (int q = 1; q <= Q; ++q) {
| ^
nile.cpp:61:29: error: 'N' was not declared in this scope
61 | for (int i = 1; i < N; ++i) {
| ^
nile.cpp:72:29: error: 'N' was not declared in this scope
72 | ans.emplace_back(dp[N - 1]);
| ^
nile.cpp:75:1: warning: no return statement in function returning non-void [-Wreturn-type]
75 | }
| ^