| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1213795 | Nelt | 추월 (IOI23_overtaking) | C++17 | 컴파일 에러 | 0 ms | 0 KiB |
#include
"overtaking.h"#include <bits/stdc++.h>
#pragma lonpbfuizyws optimize(
"O3")#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define rsfqylzqizpt ewzwhkvanbfk ewzwhkvanbfk
#define sgnyviaducvg
"\n"using xeptogblheylstd;using xeptogblheyl__gnu_pbds;mt19937_64 dgtzgfyaqppo(chrono::steady_clock::now().time_since_epoch().count());template<typename jlgxteygzzdl,typename gzhfkwjvnsey=less<jlgxteygzzdl>>using wdoahwyubdgf=tree<jlgxteygzzdl,null_type,gzhfkwjvnsey,rb_tree_tag,tree_order_statistics_node_update>;const rsfqylzqizptpgxfealekdhm=1005,inf=9e18;pair<rsfqylzqizpt,rsfqylzqizpt>mx[pgxfealekdhm][pgxfealekdhm];vector<pair<rsfqylzqizpt,rsfqylzqizpt>>tmp[pgxfealekdhm];set<array<rsfqylzqizpt,3>>st;rsfqylzqizpt sjmqdtdkijon[pgxfealekdhm][pgxfealekdhm];rsfqylzqizpt filforpcsmkg[pgxfealekdhm][pgxfealekdhm];rsfqylzqizpt sxgtimszihqu[pgxfealekdhm],s[pgxfealekdhm];rsfqylzqizpt zjtpczryopba,m,X;void nizaotrlyera(rsfqylzqizpt qnsgvtqrxlyw,rsfqylzqizpt xmiodbfugmrt,rsfqylzqizpt behddxptlvtd){if(qnsgvtqrxlyw>xmiodbfugmrt)return ;set<array<rsfqylzqizpt,3>>::iterator jrxrztkqjnmw;while((jrxrztkqjnmw=st.lower_bound({qnsgvtqrxlyw,-inf,-inf}))!=st.end()and(*jrxrztkqjnmw)[1]<=xmiodbfugmrt)st.erase(jrxrztkqjnmw);if(jrxrztkqjnmw!=st.end()and(*jrxrztkqjnmw)[0]<=xmiodbfugmrt){auto[l1,r1,x1]=*jrxrztkqjnmw;st.erase(jrxrztkqjnmw);st.insert({xmiodbfugmrt+1,r1,x1});zbcgasqqrcwy(xmiodbfugmrt+1<=r1);}jrxrztkqjnmw=st.lower_bound({qnsgvtqrxlyw,-inf,-inf});if(jrxrztkqjnmw!=st.begin()){jrxrztkqjnmw--;if((*jrxrztkqjnmw)[1]>=qnsgvtqrxlyw){auto[l1,r1,x1]=*jrxrztkqjnmw;st.erase(jrxrztkqjnmw);st.insert({l1,qnsgvtqrxlyw-1,x1});if(r1>=xmiodbfugmrt)st.insert({xmiodbfugmrt+1,r1,x1});zbcgasqqrcwy(l1<=qnsgvtqrxlyw-1);}}st.insert({qnsgvtqrxlyw,xmiodbfugmrt,behddxptlvtd});}rsfqylzqizpt rwhbarqrhmpw(rsfqylzqizpt behddxptlvtd){auto jrxrztkqjnmw=st.upper_bound({behddxptlvtd,inf,inf});if(jrxrztkqjnmw!=st.begin()){jrxrztkqjnmw--;if(jrxrztkqjnmw->operator[](1)>=behddxptlvtd)return jrxrztkqjnmw->operator[](2);}return -1;}void qftvvzhtmcaj(int haijevhiyxvc,int pgxfealekdhm,std::vector<ewzwhkvanbfk ewzwhkvanbfk>jlgxteygzzdl,std::vector<int>W,int rnsebyngnvzs,int zuolkhgfxypb,std::vector<int>S){X=rnsebyngnvzs;zjtpczryopba=pgxfealekdhm,m=zuolkhgfxypb;for(rsfqylzqizpt fjvnbivelphg=0;fjvnbivelphg<zjtpczryopba;fjvnbivelphg++)filforpcsmkg[fjvnbivelphg][0]=jlgxteygzzdl[fjvnbivelphg];for(rsfqylzqizpt fjvnbivelphg=0;fjvnbivelphg<zjtpczryopba;fjvnbivelphg++)sxgtimszihqu[fjvnbivelphg]=W[fjvnbivelphg];sxgtimszihqu[zjtpczryopba]=X;for(rsfqylzqizpt fjvnbivelphg=0;fjvnbivelphg<m;fjvnbivelphg++)s[fjvnbivelphg]=S[fjvnbivelphg];for(rsfqylzqizpt fjvnbivelphg=0;fjvnbivelphg<zjtpczryopba;fjvnbivelphg++)tmp[0].push_back(make_pair(filforpcsmkg[fjvnbivelphg][0],fjvnbivelphg));sort(tmp[0].begin(),tmp[0].end());for(rsfqylzqizpt fjvnbivelphg=1;fjvnbivelphg<m;fjvnbivelphg++){for(rsfqylzqizpt behddxptlvtd=0;behddxptlvtd<zjtpczryopba;behddxptlvtd++){rsfqylzqizpt oqjrzexfllpt=tmp[fjvnbivelphg-1][behddxptlvtd].second;filforpcsmkg[oqjrzexfllpt][fjvnbivelphg]=filforpcsmkg[oqjrzexfllpt][fjvnbivelphg-1]+sxgtimszihqu[oqjrzexfllpt]*(s[fjvnbivelphg]-s[fjvnbivelphg-1]);mx[fjvnbivelphg][behddxptlvtd]=max(behddxptlvtd>0?mx[fjvnbivelphg][behddxptlvtd-1]:make_pair(0ll,0ll),make_pair(filforpcsmkg[oqjrzexfllpt][fjvnbivelphg],oqjrzexfllpt));rsfqylzqizpt umawjfuiymzq=0ll+lower_bound(tmp[fjvnbivelphg-1].begin(),tmp[fjvnbivelphg-1].end(),make_pair(filforpcsmkg[oqjrzexfllpt][fjvnbivelphg-1],-1ll))-tmp[fjvnbivelphg-1].begin()-1;if(umawjfuiymzq>=0)filforpcsmkg[oqjrzexfllpt][fjvnbivelphg]=max(filforpcsmkg[oqjrzexfllpt][fjvnbivelphg],mx[fjvnbivelphg][umawjfuiymzq].first);}for(rsfqylzqizpt oqjrzexfllpt=0;oqjrzexfllpt<zjtpczryopba;oqjrzexfllpt++)tmp[fjvnbivelphg].push_back(make_pair(filforpcsmkg[oqjrzexfllpt][fjvnbivelphg],oqjrzexfllpt));sort(tmp[fjvnbivelphg].begin(),tmp[fjvnbivelphg].end());}for(rsfqylzqizpt fjvnbivelphg=m-1;fjvnbivelphg>=0;fjvnbivelphg--){for(rsfqylzqizpt oqjrzexfllpt=0,styxoulzldyv,egrnssjjkbsm,umawjfuiymzq;oqjrzexfllpt<zjtpczryopba;oqjrzexfllpt++){styxoulzldyv=rwhbarqrhmpw(filforpcsmkg[oqjrzexfllpt][fjvnbivelphg]-s[fjvnbivelphg]*X);if(styxoulzldyv==-1)sjmqdtdkijon[fjvnbivelphg][oqjrzexfllpt]=filforpcsmkg[oqjrzexfllpt][fjvnbivelphg]+(haijevhiyxvc-s[fjvnbivelphg])*X;else {egrnssjjkbsm=filforpcsmkg[oqjrzexfllpt][fjvnbivelphg]+(s[styxoulzldyv-1]-s[fjvnbivelphg])*X;umawjfuiymzq=lower_bound(tmp[styxoulzldyv-1].begin(),tmp[styxoulzldyv-1].end(),make_pair(egrnssjjkbsm,-1ll))-tmp[styxoulzldyv-1].begin()-1;if(umawjfuiymzq>=0)sjmqdtdkijon[fjvnbivelphg][oqjrzexfllpt]=sjmqdtdkijon[styxoulzldyv][mx[styxoulzldyv][umawjfuiymzq].second];else zbcgasqqrcwy(0==1);}}if(fjvnbivelphg)for(rsfqylzqizpt oqjrzexfllpt=0;oqjrzexfllpt<zjtpczryopba;oqjrzexfllpt++)nizaotrlyera(filforpcsmkg[oqjrzexfllpt][fjvnbivelphg-1]-s[fjvnbivelphg-1]*X+1,filforpcsmkg[oqjrzexfllpt][fjvnbivelphg]-s[fjvnbivelphg]*X,fjvnbivelphg);}}ewzwhkvanbfk ewzwhkvanbfkarrival_time(ewzwhkvanbfk ewzwhkvanbfkpeyarppofxmv){rsfqylzqizpt styxoulzldyv=rwhbarqrhmpw(peyarppofxmv);if(styxoulzldyv==-1)return peyarppofxmv+s[m-1]*X;rsfqylzqizpt egrnssjjkbsm=peyarppofxmv+s[styxoulzldyv-1]*X;rsfqylzqizpt umawjfuiymzq=lower_bound(tmp[styxoulzldyv-1].begin(),tmp[styxoulzldyv-1].end(),make_pair(egrnssjjkbsm,-1ll))-tmp[styxoulzldyv-1].begin()-1;return sjmqdtdkijon[styxoulzldyv][mx[styxoulzldyv][umawjfuiymzq].second];}
컴파일 시 표준 에러 (stderr) 메시지
overtaking.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
1 | #include
| ^
overtaking.cpp:2:15: error: stray '#' in program
2 | "overtaking.h"#include <bits/stdc++.h>
| ^
overtaking.cpp:4:6: error: stray '#' in program
4 | "O3")#include <ext/pb_ds/assoc_container.hpp>
| ^
overtaking.cpp:2:1: error: expected unqualified-id before string constant
2 | "overtaking.h"#include <bits/stdc++.h>
| ^~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/stl_iterator_base_types.h:67,
from /usr/include/c++/11/iterator:61,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/type_traits:227:27: error: 'size_t' has not been declared
227 | template <typename _Tp, size_t = sizeof(_Tp)>
| ^~~~~~
/usr/include/c++/11/type_traits:431:26: error: 'std::size_t' has not been declared
431 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:432:25: error: '_Size' was not declared in this scope
432 | struct is_array<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:432:31: error: template argument 1 is invalid
432 | struct is_array<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:537:42: error: 'nullptr_t' is not a member of 'std'
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/11/type_traits:537:51: error: template argument 1 is invalid
537 | struct __is_null_pointer_helper<std::nullptr_t>
| ^
/usr/include/c++/11/type_traits:1361:37: error: 'size_t' is not a member of 'std'
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
/usr/include/c++/11/type_traits:1361:57: error: template argument 1 is invalid
1361 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/11/type_traits:1361:57: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1370:37: error: 'size_t' is not a member of 'std'
1370 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/include/c++/11/type_traits:1370:46: error: template argument 1 is invalid
1370 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/11/type_traits:1370:46: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1372:26: error: 'std::size_t' has not been declared
1372 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1373:21: error: '_Size' was not declared in this scope
1373 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1373:27: error: template argument 1 is invalid
1373 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:1374:37: error: 'size_t' is not a member of 'std'
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/include/c++/11/type_traits:1374:65: error: template argument 1 is invalid
1374 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/11/type_traits:1374:65: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1378:37: error: 'size_t' is not a member of 'std'
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/include/c++/11/type_traits:1378:65: error: template argument 1 is invalid
1378 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/11/type_traits:1378:65: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1383:37: error: 'size_t' is not a member of 'std'
1383 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/include/c++/11/type_traits:1383:46: error: template argument 1 is invalid
1383 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/11/type_traits:1383:46: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1385:42: error: 'std::size_t' has not been declared
1385 | template<typename _Tp, unsigned _Uint, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1386:23: error: '_Size' was not declared in this scope
1386 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/usr/include/c++/11/type_traits:1386:36: error: template argument 1 is invalid
1386 | struct extent<_Tp[_Size], _Uint>
| ^
/usr/include/c++/11/type_traits:1387:37: error: 'size_t' is not a member of 'std'
1387 | : public integral_constant<std::size_t,
| ^~~~~~
/usr/include/c++/11/type_traits:1388:45: error: '_Size' was not declared in this scope
1388 | _Uint == 0 ? _Size : extent<_Tp,
| ^~~~~
/usr/include/c++/11/type_traits:1389:77: error: template argument 1 is invalid
1389 | _Uint - 1>::value>
| ^
/usr/include/c++/11/type_traits:1389:77: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1394:37: error: 'size_t' is not a member of 'std'
1394 | : public integral_constant<std::size_t,
| ^~~~~~
/usr/include/c++/11/type_traits:1396:73: error: template argument 1 is invalid
1396 | _Uint - 1>::value>
| ^
/usr/include/c++/11/type_traits:1396:73: note: invalid template non-type parameter
/usr/include/c++/11/type_traits:1759:26: error: 'size_t' does not name a type
1759 | { static constexpr size_t __size = sizeof(_Tp); };
| ^~~~~~
In file included from /usr/include/c++/11/bits/stl_iterator_base_types.h:67,
from /usr/include/c++/11/iterator:61,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/type_traits:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // C++11 <type_traits> -*- C++ -*-
In file included from /usr/include/c++/11/bits/stl_iterator_base_types.h:67,
from /usr/include/c++/11/iterator:61,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/type_traits:1761:14: error: 'size_t' has not been declared
1761 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~~~~
/usr/include/c++/11/type_traits:1761:48: error: '_Sz' was not declared in this scope
1761 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~
/usr/include/c++/11/type_traits:1762:14: error: no default argument for '_Tp'
1762 | struct __select;
| ^~~~~~~~
/usr/include/c++/11/type_traits:1764:14: error: 'size_t' has not been declared
1764 | template<size_t _Sz, typename _Uint, typename... _UInts>
| ^~~~~~
/usr/include/c++/11/type_traits:1765:23: error: '_Sz' was not declared in this scope
1765 | struct __select<_Sz, _List<_Uint, _UInts...>, true>
| ^~~
/usr/include/c++/11/type_traits:1765:57: error: template argument 1 is invalid
1765 | struct __select<_Sz, _List<_Uint, _UInts...>, true>
| ^
/usr/include/c++/11/type_traits:1768:14: error: 'size_t' has not been declared
1768 | template<size_t _Sz, typename _Uint, typename... _UInts>
| ^~~~~~
/usr/include/c++/11/type_traits:1769:23: error: '_Sz' was not declared in this scope
1769 | struct __select<_Sz, _List<_Uint, _UInts...>, false>
| ^~~
/usr/include/c++/11/type_traits:1769:58: error: template argument 1 is invalid
1769 | struct __select<_Sz, _List<_Uint, _UInts...>, false>
| ^
/usr/include/c++/11/type_traits:1770:18: error: '_Sz' was not declared in this scope
1770 | : __select<_Sz, _List<_UInts...>>
| ^~~
/usr/include/c++/11/type_traits:1770:38: error: template argument 1 is invalid
1770 | : __select<_Sz, _List<_UInts...>>
| ^~
/usr/include/c++/11/type_traits:1761:60: error: '__size' is not a member of 'std::__make_unsigned_selector_base::_List<unsigned char, short unsigned int, unsigned int, long unsigned int, long long unsigned int>'
1761 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~~~~
/usr/include/c++/11/type_traits:1783:68: error: template argument 3 is invalid
1783 | using __unsigned_type = typename __select<sizeof(_Tp), _UInts>::__type;
| ^
/usr/include/c++/11/type_traits:1787:47: error: '__unsigned_type' was not declared in this scope
1787 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1787:62: error: template argument 2 is invalid
1787 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
| ^
/usr/include/c++/11/type_traits:1799:68: error: '__type' in 'class std::__make_unsigned_selector<wchar_t, false, true>' does not name a type
1799 | = typename __make_unsigned_selector<wchar_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/11/type_traits:1816:69: error: '__type' in 'class std::__make_unsigned_selector<char16_t, false, true>' does not name a type
1816 | = typename __make_unsigned_selector<char16_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/11/type_traits:1823:69: error: '__type' in 'class std::__make_unsigned_selector<char32_t, false, true>' does not name a type
1823 | = typename __make_unsigned_selector<char32_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/11/type_traits: In instantiation of 'class std::__make_unsigned_selector<wchar_t, true, false>':
/usr/include/c++/11/type_traits:1912:62: required from 'class std::__make_signed_selector<wchar_t, false, true>'
/usr/include/c++/11/type_traits:1927:57: required from here
/usr/include/c++/11/type_traits:1744:13: error: no type named '__type' in 'struct std::__make_unsigned<wchar_t>'
1744 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1748:13: error: no type named '__type' in 'struct std::__make_unsigned<wchar_t>'
1748 | using __type
| ^~~~~~
/usr/include/c++/11/type_traits:1927:66: error: invalid combination of multiple type-specifiers
1927 | = typename __make_signed_selector<wchar_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/11/type_traits: In instantiation of 'class std::__make_unsigned_selector<char16_t, true, false>':
/usr/include/c++/11/type_traits:1912:62: required from 'class std::__make_signed_selector<char16_t, false, true>'
/usr/include/c++/11/type_traits:1944:58: required from here
/usr/include/c++/11/type_traits:1744:13: error: no type named '__type' in 'struct std::__make_unsigned<char16_t>'
1744 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1748:13: error: no type named '__type' in 'struct std::__make_unsigned<char16_t>'
1748 | using __type
| ^~~~~~
/usr/include/c++/11/type_traits:1944:67: error: invalid combination of multiple type-specifiers
1944 | = typename __make_signed_selector<char16_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/11/type_traits: In instantiation of 'class std::__make_unsigned_selector<char32_t, true, false>':
/usr/include/c++/11/type_traits:1912:62: required from 'class std::__make_signed_selector<char32_t, false, true>'
/usr/include/c++/11/type_traits:1951:58: required from here
/usr/include/c++/11/type_traits:1744:13: error: no type named '__type' in 'struct std::__make_unsigned<char32_t>'
1744 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1748:13: error: no type named '__type' in 'struct std::__make_unsigned<char32_t>'
1748 | using __type
| ^~~~~~
/usr/include/c++/11/type_traits:1951:67: error: invalid combination of multiple type-specifiers
1951 | = typename __make_signed_selector<char32_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/11/type_traits:1984:26: error: 'std::size_t' has not been declared
1984 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1985:30: error: '_Size' was not declared in this scope
1985 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1985:36: error: template argument 1 is invalid
1985 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:1997:26: error: 'std::size_t' has not been declared
1997 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/11/type_traits:1998:35: error: '_Size' was not declared in this scope
1998 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/11/type_traits:1998:41: error: template argument 1 is invalid
1998 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/11/type_traits:2056:12: error: 'std::size_t' has not been declared
2056 | template<std::size_t _Len>
| ^~~
/usr/include/c++/11/type_traits:2061:30: error: '_Len' was not declared in this scope
2061 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/11/type_traits:2076:12: error: 'std::size_t' has not been declared
2076 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/11/type_traits:2076:30: error: 'std::size_t' has not been declared
2076 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/11/type_traits:2077:55: error: '_Len' was not declared in this scope
2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/11/type_traits:2077:59: error: template argument 1 is invalid
2077 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/11/type_traits:2082:30: error: '_Len' was not declared in this scope
2082 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/11/type_traits:2083:44: error: '_Align' was not declared in this scope
2083 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/11/type_traits:2090:20: error: 'size_t' does not name a type
2090 | static const size_t _S_alignment = 0;
| ^~~~~~
/usr/include/c++/11/type_traits:2090:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:2091:20: error: 'size_t' does not name a type
2091 | static const size_t _S_size = 0;
| ^~~~~~
/usr/include/c++/11/type_traits:2091:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:2097:20: error: 'size_t' does not name a type
2097 | static const size_t _S_alignment =
| ^~~~~~
/usr/include/c++/11/type_traits:2097:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:2100:20: error: 'size_t' does not name a type
2100 | static const size_t _S_size =
| ^~~~~~
/usr/include/c++/11/type_traits:2100:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:2115:13: error: 'size_t' has not been declared
2115 | template <size_t _Len, typename... _Types>
| ^~~~~~
/usr/include/c++/11/type_traits:2122:20: error: 'size_t' does not name a type
2122 | static const size_t _S_len = _Len > __strictest::_S_size
| ^~~~~~
/usr/include/c++/11/type_traits:2122:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:2126:20: error: 'size_t' does not name a type
2126 | static const size_t alignment_value = __strictest::_S_alignment;
| ^~~~~~
/usr/include/c++/11/type_traits:2126:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:2128:40: error: '_S_len' was not declared in this scope
2128 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^~~~~~
/usr/include/c++/11/type_traits:2128:48: error: 'alignment_value' was not declared in this scope; did you mean 'alignment_of'?
2128 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^~~~~~~~~~~~~~~
| alignment_of
/usr/include/c++/11/type_traits:2128:63: error: template argument 1 is invalid
2128 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^
/usr/include/c++/11/type_traits:2128:63: error: template argument 2 is invalid
/usr/include/c++/11/type_traits:2131:13: error: 'size_t' has not been declared
2131 | template <size_t _Len, typename... _Types>
| ^~~~~~
/usr/include/c++/11/type_traits:2132:11: error: 'size_t' does not name a type
2132 | const size_t aligned_union<_Len, _Types...>::alignment_value;
| ^~~~~~
/usr/include/c++/11/type_traits:2132:11: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:2566:12: error: 'size_t' has not been declared
2566 | template<size_t _Len, size_t _Align =
| ^~~~~~
/usr/include/c++/11/type_traits:2566:25: error: 'size_t' has not been declared
2566 | template<size_t _Len, size_t _Align =
| ^~~~~~
/usr/include/c++/11/type_traits:2567:56: error: '_Len' was not declared in this scope
2567 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/11/type_traits:2567:60: error: template argument 1 is invalid
2567 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/11/type_traits:2568:56: error: '_Len' was not declared in this scope
2568 | using aligned_storage_t = typename aligned_storage<_Len, _Align>::type;
| ^~~~
/usr/include/c++/11/type_traits:2568:62: error: '_Align' was not declared in this scope
2568 | using aligned_storage_t = typename aligned_storage<_Len, _Align>::type;
| ^~~~~~
/usr/include/c++/11/type_traits:2568:68: error: template argument 1 is invalid
2568 | using aligned_storage_t = typename aligned_storage<_Len, _Align>::type;
| ^
/usr/include/c++/11/type_traits:2568:68: error: template argument 2 is invalid
/usr/include/c++/11/type_traits:2570:13: error: 'size_t' has not been declared
2570 | template <size_t _Len, typename... _Types>
| ^~~~~~
/usr/include/c++/11/type_traits:2571:52: error: '_Len' was not declared in this scope
2571 | using aligned_union_t = typename aligned_union<_Len, _Types...>::type;
| ^~~~
/usr/include/c++/11/type_traits:2571:67: error: template argument 1 is invalid
2571 | using aligned_union_t = typename aligned_union<_Len, _Types...>::type;
| ^
/usr/include/c++/11/type_traits:2680:26: error: 'size_t' has not been declared
2680 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/usr/include/c++/11/type_traits:2684:21: error: '_Nm' was not declared in this scope
2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/type_traits:2684:24: error: 'template<class _Tp, <declaration error> > std::__enable_if_t<std::__is_swappable<_Tp>::value> std::swap' conflicts with a previous declaration
2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/usr/include/c++/11/type_traits:2676:5: note: previous declaration 'std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)'
2676 | swap(_Tp&, _Tp&)
| ^~~~
/usr/include/c++/11/type_traits:2684:16: error: '__a' was not declared in this scope
2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/type_traits:2684:21: error: '_Nm' was not declared in this scope
2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/type_traits:2684:33: error: '__b' was not declared in this scope
2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/type_traits:2684:38: error: '_Nm' was not declared in this scope
2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/type_traits:2684:43: error: expected ';' before 'noexcept'
2684 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
| ;
2685 | noexcept(__is_nothrow_swappable<_Tp>::value);
| ~~~~~~~~
/usr/include/c++/11/type_traits:3244:20: error: 'size_t' does not name a type
3244 | inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value;
| ^~~~~~
/usr/include/c++/11/type_traits:3244:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:3246:20: error: 'size_t' does not name a type
3246 | inline constexpr size_t rank_v = rank<_Tp>::value;
| ^~~~~~
/usr/include/c++/11/type_traits:3246:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/type_traits:3248:20: error: 'size_t' does not name a type
3248 | inline constexpr size_t extent_v = extent<_Tp, _Idx>::value;
| ^~~~~~
/usr/include/c++/11/type_traits:3248:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/iterator:61,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/stl_iterator_base_types.h:125:67: error: 'ptrdiff_t' does not name a type
125 | template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_types.h:68:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
67 | # include <type_traits> // For __void_t, is_convertible
+++ |+#include <cstddef>
68 | #endif
/usr/include/c++/11/bits/stl_iterator_base_types.h:214:15: error: 'ptrdiff_t' does not name a type
214 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_types.h:214:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/bits/stl_iterator_base_types.h:225:15: error: 'ptrdiff_t' does not name a type
225 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_types.h:225:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/iterator:62,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:110:5: error: 'ptrdiff_t' does not name a type
110 | ptrdiff_t
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:66:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
65 | #include <debug/assertions.h>
+++ |+#include <cstddef>
66 |
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:116:5: error: 'ptrdiff_t' does not name a type
116 | ptrdiff_t
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:116:5: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/bits/stl_iterator.h:65,
from /usr/include/c++/11/iterator:63,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
/usr/include/c++/11/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/11/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from /usr/include/c++/11/bits/stl_iterator.h:66,
from /usr/include/c++/11/iterator:63,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/move.h:212:26: error: 'size_t' has not been declared
212 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/usr/include/c++/11/bits/move.h:220:21: error: '_Nm' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/bits/move.h:220:24: error: 'template<class _Tp, <declaration error> > typename std::enable_if<std::__is_swappable<_Tp>::value, void>::type std::swap' conflicts with a previous declaration
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/usr/include/c++/11/bits/move.h:196:5: note: previous declaration 'std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)'
196 | swap(_Tp& __a, _Tp& __b)
| ^~~~
/usr/include/c++/11/bits/move.h:220:16: error: '__a' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/bits/move.h:220:21: error: '_Nm' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/bits/move.h:220:33: error: '__b' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/bits/move.h:220:38: error: '_Nm' was not declared in this scope
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/11/bits/move.h:220:43: error: expected ';' before 'noexcept'
220 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
| ;
In file included from /usr/include/c++/11/bits/stl_iterator.h:67,
from /usr/include/c++/11/iterator:63,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/ptr_traits.h:119:27: error: 'ptrdiff_t' was not declared in this scope
119 | = __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
| ^~~~~~~~~
/usr/include/c++/11/bits/ptr_traits.h:1:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // Pointer Traits -*- C++ -*-
/usr/include/c++/11/bits/ptr_traits.h:119:61: error: template argument 1 is invalid
119 | = __detected_or_t<ptrdiff_t, __difference_type, _Ptr>;
| ^
/usr/include/c++/11/bits/ptr_traits.h:138:15: error: 'ptrdiff_t' does not name a type
138 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/usr/include/c++/11/bits/ptr_traits.h:138:15: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/iterator:64,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/postypes.h:98:11: error: 'ptrdiff_t' does not name a type
98 | typedef ptrdiff_t streamsize; // Signed integral type
| ^~~~~~~~~
/usr/include/c++/11/bits/postypes.h:41:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
40 | #include <cwchar> // For mbstate_t
+++ |+#include <cstddef>
41 |
In file included from /usr/include/c++/11/iterator:65,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/stream_iterator.h:48:69: error: 'ptrdiff_t' does not name a type
48 | typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t>
| ^~~~~~~~~
/usr/include/c++/11/bits/stream_iterator.h:36:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
35 | #include <debug/debug.h>
+++ |+#include <cstddef>
36 |
In file included from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/string:40,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/streambuf:41,
from /usr/include/c++/11/bits/streambuf_iterator.h:35,
from /usr/include/c++/11/iterator:66,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)':
/usr/include/c++/11/bits/stl_algobase.h:429:17: error: 'ptrdiff_t' does not name a type
429 | const ptrdiff_t _Num = __last - __first;
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_algobase.h:72:1: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
71 | #include <bits/predefined_ops.h>
+++ |+#include <cstddef>
72 | #if __cplusplus >= 201103L
/usr/include/c++/11/bits/stl_algobase.h:430:15: error: '_Num' was not declared in this scope
430 | if (_Num)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:432:29: error: '_Num' was not declared in this scope
432 | return __result + _Num;
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h: In static member function 'static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)':
/usr/include/c++/11/bits/stl_algobase.h:740:17: error: 'ptrdiff_t' does not name a type
740 | const ptrdiff_t _Num = __last - __first;
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_algobase.h:740:17: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/11/bits/stl_algobase.h:741:15: error: '_Num' was not declared in this scope
741 | if (_Num)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:743:29: error: '_Num' was not declared in this scope
743 | return __result - _Num;
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h: At global scope:
/usr/include/c++/11/bits/stl_algobase.h:1349:16: error: 'ptrdiff_t' does not name a type
1349 | static ptrdiff_t
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_algobase.h:1349:16: note: 'ptrdiff_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/11/string:40,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/streambuf:41,
from /usr/include/c++/11/bits/streambuf_iterator.h:35,
from /usr/include/c++/11/iterator:66,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/char_traits.h:114:61: error: 'std::size_t' has not been declared
114 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:116:40: error: 'size_t' in namespace 'std' does not name a type
116 | static _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:120:34: error: 'std::size_t' has not been declared
120 | find(const char_type* __s, std::size_t __n, const char_type& __a);
| ^~~
/usr/include/c++/11/bits/char_traits.h:123:52: error: 'std::size_t' has not been declared
123 | move(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:126:52: error: 'std::size_t' has not been declared
126 | copy(char_type* __s1, const char_type* __s2, std::size_t __n);
| ^~~
/usr/include/c++/11/bits/char_traits.h:129:30: error: 'std::size_t' has not been declared
129 | assign(char_type* __s, std::size_t __n, char_type __a);
| ^~~
/usr/include/c++/11/bits/char_traits.h:155:59: error: 'std::size_t' has not been declared
155 | compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
/usr/include/c++/11/bits/char_traits.h:157:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
157 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/iterator:64,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/string:40,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/streambuf:41,
from /usr/include/c++/11/bits/streambuf_iterator.h:35,
from /usr/include/c++/11/iterator:66,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/char_traits.h:157:33: error: '__i' was not declared in this scope; did you mean '__n'?
157 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __n
/usr/include/c++/11/bits/char_traits.h: At global scope:
/usr/include/c++/11/bits/char_traits.h:166:31: error: 'size_t' in namespace 'std' does not name a type
166 | _GLIBCXX14_CONSTEXPR std::size_t
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:179:32: error: 'std::size_t' has not been declared
179 | find(const char_type* __s, std::size_t __n, const char_type& __a)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)':
/usr/include/c++/11/bits/char_traits.h:181:17: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
181 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/iterator:64,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/string:40,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/streambuf:41,
from /usr/include/c++/11/bits/streambuf_iterator.h:35,
from /usr/include/c++/11/iterator:66,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/bits/char_traits.h:181:33: error: '__i' was not declared in this scope; did you mean '__s'?
181 | for (std::size_t __i = 0; __i < __n; ++__i)
| ^~~
| __s
/usr/include/c++/11/bits/char_traits.h: At global scope:
/usr/include/c++/11/bits/char_traits.h:191:50: error: 'std::size_t' has not been declared
191 | move(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h:241:50: error: 'std::size_t' has not been declared
241 | copy(char_type* __s1, const char_type* __s2, std::size_t __n)
| ^~~
/usr/include/c++/11/bits/char_traits.h:252:28: error: 'std::size_t' has not been declared
252 | assign(char_type* __s, std::size_t __n, char_type __a)
| ^~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<char>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:397:53: error: 'length' is not a member of '__gnu_cxx::char_traits<char>'
397 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h: In static member function 'static constexpr size_t std::char_traits<wchar_t>::length(const char_type*)':
/usr/include/c++/11/bits/char_traits.h:521:53: error: 'length' is not a member of '__gnu_cxx::char_traits<wchar_t>'
521 | return __gnu_cxx::char_traits<char_type>::length(__s);
| ^~~~~~
/usr/include/c++/11/bits/char_traits.h:523:22: error: call to non-'constexpr' function 'size_t wcslen(const wchar_t*)'
523 | return wcslen(__s);
| ~~~~~~^~~~~
In file included from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/iterator:64,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/wchar.h:223:15: note: 'size_t wcslen(const wchar_t*)' declared here
223 | extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
| ^~~~~~
In file included from /usr/include/c++/11/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/streambuf:41,
from /usr/include/c++/11/bits/streambuf_iterator.h:35,
from /usr/include/c++/11/iterator:66,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/new: At global scope:
/usr/include/c++/11/new:126:26: error: declaration of 'operator new' as non-function
126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/11/new:126:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/iterator:64,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/streambuf:41,
from /usr/include/c++/11/bits/streambuf_iterator.h:35,
from /usr/include/c++/11/iterator:66,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/new:127:41: error: attributes after parenthesized initializer ignored [-fpermissive]
127 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/11/new:128:26: error: declaration of 'operator new []' as non-function
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/usr/include/c++/11/new:128:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/iterator:64,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/streambuf:41,
from /usr/include/c++/11/bits/streambuf_iterator.h:35,
from /usr/include/c++/11/iterator:66,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/new:129:41: error: attributes after parenthesized initializer ignored [-fpermissive]
129 | __attribute__((__externally_visible__));
| ^
/usr/include/c++/11/new:135:29: error: 'std::size_t' has not been declared
135 | void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/11/new:137:31: error: 'std::size_t' has not been declared
137 | void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
| ^~~
/usr/include/c++/11/new:140:26: error: declaration of 'operator new' as non-function
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/11/new:140:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
140 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
In file included from /usr/include/wchar.h:35,
from /usr/include/c++/11/cwchar:44,
from /usr/include/c++/11/bits/postypes.h:40,
from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/iterator:64,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stddef.h:209:23: note: 'size_t' declared here
209 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /usr/include/c++/11/ext/new_allocator.h:33,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33,
from /usr/include/c++/11/bits/allocator.h:46,
from /usr/include/c++/11/string:41,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/streambuf:41,
from /usr/include/c++/11/bits/streambuf_iterator.h:35,
from /usr/include/c++/11/iterator:66,
from /usr/include/c++/11/ext/pb_ds/tree_policy.hpp:45,
from overtaking.cpp:5:
/usr/include/c++/11/new: