training.cpp: In function 'int main()':
training.cpp:41:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::array<long long int, 3> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(long long i = 0; i < e.size(); ++i){
| ~~^~~~~~~~~~
training.cpp:49:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::array<long long int, 3> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(long long i = 0; i < e.size(); ++i){
| ~~^~~~~~~~~~
training.cpp:64:88: error: class template argument deduction failed:
64 | long long next_idx = lower_bound(e2.begin(), e2.end(), array{e2[i][1] + 1, 0, 0}) - e2.begin();
| ^
training.cpp:64:88: error: no matching function for call to 'array(std::array<long long int, 3>::value_type, int, int)'
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from training.cpp:1:
/usr/include/c++/9/array:244:5: note: candidate: 'template<class _Tp, class ... _Up> std::array(_Tp, _Up ...)-> std::array<typename std::enable_if<(is_same_v<_Tp, _Up> && ...), _Tp>::type, (1 + sizeof... (_Up))>'
244 | array(_Tp, _Up...)
| ^~~~~
/usr/include/c++/9/array:244:5: note: template argument deduction/substitution failed:
/usr/include/c++/9/array: In substitution of 'template<class _Tp, class ... _Up> std::array(_Tp, _Up ...)-> std::array<typename std::enable_if<(is_same_v<_Tp, _Up> && ...), _Tp>::type, (1 + sizeof... (_Up))> [with _Tp = long long int; _Up = {int, int}]':
training.cpp:64:88: required from here
/usr/include/c++/9/array:244:5: error: no type named 'type' in 'struct std::enable_if<false, long long int>'
training.cpp:70:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::array<long long int, 3> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for(long long i = 0; i < e2.size(); ++i)
| ~~^~~~~~~~~~~