Problem lostones
User nzx
Submission Time 2026-03-30 13:07:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lostones.cpp: In function ‘int main()’:
lostones.cpp:9:24: error: no matching function for call to ‘std::pair<long long int, long long int>::pair(long long int&)’
9 | pair<int,int> vector(n);
| ^
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 lostones.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...>&, tuple<_Args2...>&,
|