Problem leftright
User ensonchew
Submission Time 2025-06-06 16:36:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftright.cpp: In function ‘int main()’:
leftright.cpp:21:17: error: no matching function for call to ‘std::__cxx11::list<long long int>::insert(long long int&, long long int&)’
21 | A.insert(i, s);
| ^
In file included from /usr/include/c++/9/list:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:79,
from leftright.cpp:1:
/usr/include/c++/9/bits/list.tcc:101:5: note: candidate: ‘std::__cxx11::list<_Tp, _Alloc>::iterator std::__cxx11::list<_Tp, _Alloc>::insert(std::__cxx11::list<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::__cxx11::list<_Tp, _Alloc>::iterator = std::_List_iterator<long long int>; std::__cxx11::list<_Tp, _Alloc>::const_iterator = std::_List_const_iterator<long long int>; std::__cxx11::list<_Tp, _Alloc>::value_type = long long int]’
101 |