nile.cpp:9:23: warning: left shift count >= width of type [-Wshift-count-overflow]
9 | const int64 inf = -(1 << 40);
| ~~^~~~~
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:5:12: error: 'class std::vector<std::pair<std::pair<long long int, long long int>, std::pair<long long int, long long int> > >' has no member named 'second'
5 | #define se second
| ^~~~~~
nile.cpp:39:28: note: in expansion of macro 'se'
39 | val[i][i&1] = item.se.se;
| ^~
nile.cpp:47:24: error: 'm' was not declared in this scope
47 | for(int i = 0; i < m; i++){
| ^
nile.cpp:58:28: error: no matching function for call to 'max()'
58 | val[v][0] = max();
| ~~~^~
In file included from /usr/include/c++/11/vector:60,
from nile.h:1,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
nile.cpp:58:28: note: candidate expects 2 arguments, 0 provided
58 | val[v][0] = max();
| ~~~^~
In file included from /usr/include/c++/11/vector:60,
from nile.h:1,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
nile.cpp:58:28: note: candidate expects 3 arguments, 0 provided
58 | val[v][0] = max();
| ~~~^~
In file included from /usr/include/c++/11/vector:62,
from nile.h:1,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3461 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
nile.cpp:58:28: note: candidate expects 1 argument, 0 provided
58 | val[v][0] = max();
| ~~~^~
In file included from /usr/include/c++/11/vector:62,
from nile.h:1,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
nile.cpp:58:28: note: candidate expects 2 arguments, 0 provided
58 | val[v][0] = max();
| ~~~^~
nile.cpp:59:28: error: no matching function for call to 'max()'
59 | val[v][1] = max();
| ~~~^~
In file included from /usr/include/c++/11/vector:60,
from nile.h:1,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
nile.cpp:59:28: note: candidate expects 2 arguments, 0 provided
59 | val[v][1] = max();
| ~~~^~
In file included from /usr/include/c++/11/vector:60,
from nile.h:1,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
nile.cpp:59:28: note: candidate expects 3 arguments, 0 provided
59 | val[v][1] = max();
| ~~~^~
In file included from /usr/include/c++/11/vector:62,
from nile.h:1,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3461 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
nile.cpp:59:28: note: candidate expects 1 argument, 0 provided
59 | val[v][1] = max();
| ~~~^~
In file included from /usr/include/c++/11/vector:62,
from nile.h:1,
from nile.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
nile.cpp:59:28: note: candidate expects 2 arguments, 0 provided
59 | val[v][1] = max();
| ~~~^~
nile.cpp:5:12: error: request for member 'second' in 'idx1', which is of non-class type 'int'
5 | #define se second
| ^~~~~~
nile.cpp:67:57: note: in expansion of macro 'se'
67 | mx[u] = max(mx[u], b[q2[idx1].se]-a[q2[idx1.se].se]);
| ^~