Problem gymbadges
User OSoverspike
Submission Time 2023-02-12 18:51:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gymbadges.cpp: In function ‘int main()’:
gymbadges.cpp:27:33: error: no matching function for call to ‘std::pair<long long int, long long int>::pair(long long int [500005], long long int [500005])’
27 | runner.push_back(ii(l, x));
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from gymbadges.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:436:9: note: candidate: ‘template<class ... _Args1, long unsigned int ..._Indexes1, class ... _Args2, long unsigned int ..._Indexes2> std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, std::_Index_tuple<_Indexes1 ...>, std::_Index_tuple<_Indexes2 ...>)’
436 | pair(tuple<_Args1.