# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1213798 | 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:4:1: error: expected unqualified-id before string constant 4 | "O3") | ^~~~ In file included from /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:48, from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:111:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 111 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:112:24: error: 'at0' has not been declared 112 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:113:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 113 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:114:24: error: 'at1' has not been declared 114 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:127:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 127 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:128:24: error: 'at0' has not been declared 128 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:129:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 129 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:130:24: error: 'at1' has not been declared 130 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:142:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 142 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:143:24: error: 'at1' has not been declared 143 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:155:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 155 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:156:24: error: 'at1' has not been declared 156 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:168:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 168 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:169:24: error: 'at0' has not been declared 169 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:170:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 170 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:171:24: error: 'at1' has not been declared 171 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:184:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 184 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:185:24: error: 'at0' has not been declared 185 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:186:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 186 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:187:24: error: 'at1' has not been declared 187 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:199:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 199 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:200:24: error: 'at0' has not been declared 200 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:201:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 201 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:202:24: error: 'at1' has not been declared 202 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:215:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 215 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:216:24: error: 'at0' has not been declared 216 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:217:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 217 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:218:24: error: 'at1' has not been declared 218 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:230:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 230 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:231:24: error: 'at0' has not been declared 231 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:232:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 232 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:233:24: error: 'at1' has not been declared 233 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:246:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 246 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:247:24: error: 'at0' has not been declared 247 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:248:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 248 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:249:24: error: 'at1' has not been declared 249 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:261:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 261 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:262:24: error: 'at0' has not been declared 262 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:263:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 263 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:264:24: error: 'at1' has not been declared 264 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:265:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 265 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 2> at2; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:266:24: error: 'at2' has not been declared 266 | typedef typename at2::type at2t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:267:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 267 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 3> at3; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:268:24: error: 'at3' has not been declared 268 | typedef typename at3::type at3t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:269:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 269 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 4> at4; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:270:24: error: 'at4' has not been declared 270 | typedef typename at4::type at4t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:275:48: error: wrong number of template arguments (6, should be 8) 275 | at3t::value, at4t, at2t> type; | ^ In file included from /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:71, from /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:48, from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:140:11: note: provided for 'template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class _Alloc, bool Store_Hash, class Comb_Hash_Fn, class Resize_Policy> class __gnu_pbds::detail::cc_ht_map' 140 | class PB_DS_CC_HASH_NAME: | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:48, from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:284:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 284 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:285:24: error: 'at0' has not been declared 285 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:286:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 286 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:287:24: error: 'at1' has not been declared 287 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:288:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 288 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 2> at2; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:289:24: error: 'at2' has not been declared 289 | typedef typename at2::type at2t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:290:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 290 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 3> at3; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:291:24: error: 'at3' has not been declared 291 | typedef typename at3::type at3t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:292:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 292 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 4> at4; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:293:24: error: 'at4' has not been declared 293 | typedef typename at4::type at4t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:298:57: error: wrong number of template arguments (6, should be 8) 298 | at3t::value, at4t, at2t> type; | ^ In file included from /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:88, from /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:48, from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:140:11: note: provided for 'template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class _Alloc, bool Store_Hash, class Comb_Hash_Fn, class Resize_Policy> class __gnu_pbds::detail::cc_ht_set' 140 | class PB_DS_CC_HASH_NAME: | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:48, from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:306:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 306 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:307:24: error: 'at0' has not been declared 307 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:308:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 308 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:309:24: error: 'at1' has not been declared 309 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:310:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 310 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 2> at2; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:311:24: error: 'at2' has not been declared 311 | typedef typename at2::type at2t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:312:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 312 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 3> at3; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:313:24: error: 'at3' has not been declared 313 | typedef typename at3::type at3t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:314:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 314 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 4> at4; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:315:24: error: 'at4' has not been declared 315 | typedef typename at4::type at4t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:316:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 316 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 5> at5; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:317:24: error: 'at5' has not been declared 317 | typedef typename at5::type at5t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:322:54: error: wrong number of template arguments (6, should be 9) 322 | at3t::value, at4t, at5t, at2t> type; | ^ In file included from /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:72, from /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:48, from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:142:11: note: provided for 'template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class _Alloc, bool Store_Hash, class Comb_Probe_Fn, class Probe_Fn, class Resize_Policy> class __gnu_pbds::detail::gp_ht_map' 142 | class PB_DS_GP_HASH_NAME : | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:48, from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:331:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 331 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 0> at0; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:332:24: error: 'at0' has not been declared 332 | typedef typename at0::type at0t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:333:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 333 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 1> at1; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:334:24: error: 'at1' has not been declared 334 | typedef typename at1::type at1t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:335:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 335 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 2> at2; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:336:24: error: 'at2' has not been declared 336 | typedef typename at2::type at2t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:337:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 337 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 3> at3; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:338:24: error: 'at3' has not been declared 338 | typedef typename at3::type at3t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:339:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 339 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 4> at4; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:340:24: error: 'at4' has not been declared 340 | typedef typename at4::type at4t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:341:26: error: 'typelist' in namespace '__gnu_cxx' does not name a type 341 | typedef __gnu_cxx::typelist::at_index<Policy_Tl, 5> at5; | ^~~~~~~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:342:24: error: 'at5' has not been declared 342 | typedef typename at5::type at5t; | ^~~ /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:347:54: error: wrong number of template arguments (6, should be 9) 347 | at3t::value, at4t, at5t, at2t> type; | ^ In file included from /usr/include/c++/11/ext/pb_ds/detail/container_base_dispatch.hpp:89, from /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:48, from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:142:11: note: provided for 'template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class _Alloc, bool Store_Hash, class Comb_Probe_Fn, class Probe_Fn, class Resize_Policy> class __gnu_pbds::detail::gp_ht_set' 142 | class PB_DS_GP_HASH_NAME : | ^~~~~~~~~~~~~~~~~~ In file included from overtaking.cpp:5: /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:35: error: 'typelist' in namespace '__gnu_cxx' does not name a type 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:35: error: expected template-argument before '::' token 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:35: error: expected '>' before '::' token /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:35: error: template argument 5 is invalid 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:35: error: '<declaration error>' is not a template [-fpermissive] 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:35: error: expected '{' before 'type' 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:204:33: error: 'typelist' in namespace '__gnu_cxx' does not name a type 204 | class cc_hash_table : public PB_DS_CC_HASH_BASE | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:204:33: error: expected template-argument before '::' token 204 | class cc_hash_table : public PB_DS_CC_HASH_BASE | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:204:33: error: expected '>' before '::' token /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:204:33: error: wrong number of template arguments (8, should be 9) 204 | class cc_hash_table : public PB_DS_CC_HASH_BASE | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:9: note: provided for 'template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class Resize_Policy, bool Store_Hash, class Tag, class Policy_Tl, class _Alloc> class __gnu_pbds::basic_hash_table' 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:207:13: error: 'typelist' in namespace '__gnu_cxx' does not name a type 207 | typedef PB_DS_CC_HASH_BASE base_type; | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:207:13: error: expected template-argument before '::' token 207 | typedef PB_DS_CC_HASH_BASE base_type; | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:207:13: error: expected '>' before '::' token /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:207:13: error: wrong number of template arguments (8, should be 9) 207 | typedef PB_DS_CC_HASH_BASE base_type; | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:9: note: provided for 'template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class Resize_Policy, bool Store_Hash, class Tag, class Policy_Tl, class _Alloc> class __gnu_pbds::basic_hash_table' 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(const hash_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:222:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 222 | : base_type(h) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(const hash_fn&, const eq_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:229:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 229 | : base_type(h, e) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(const hash_fn&, const eq_fn&, const comb_hash_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:237:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 237 | : base_type(h, e, ch) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(const hash_fn&, const eq_fn&, const comb_hash_fn&, const resize_policy&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:247:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 247 | : base_type(h, e, ch, rp) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(It, It)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:254:33: error: qualified-id in declaration before '(' token 254 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(It, It, const hash_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:261:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 261 | : base_type(h) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(It, It, const hash_fn&, const eq_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:272:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 272 | : base_type(h, e) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(It, It, const hash_fn&, const eq_fn&, const comb_hash_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:285:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 285 | : base_type(h, e, ch) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(It, It, const hash_fn&, const eq_fn&, const comb_hash_fn&, const resize_policy&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:299:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 299 | : base_type(h, e, ch, rp) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In copy constructor '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::cc_hash_table(const __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:303:7: error: 'typedef int __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>' 303 | : base_type((const base_type&)other) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In member function 'void __gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>::swap(__gnu_pbds::cc_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc>&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:322:22: error: qualified-id in declaration before '(' token 322 | { base_type::swap(other); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: At global scope: /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:368:32: error: 'typelist' in namespace '__gnu_cxx' does not name a type 368 | class gp_hash_table : public PB_DS_GP_HASH_BASE | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:368:32: error: expected template-argument before '::' token 368 | class gp_hash_table : public PB_DS_GP_HASH_BASE | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:368:32: error: expected '>' before '::' token /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:368:32: error: wrong number of template arguments (8, should be 9) 368 | class gp_hash_table : public PB_DS_GP_HASH_BASE | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:9: note: provided for 'template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class Resize_Policy, bool Store_Hash, class Tag, class Policy_Tl, class _Alloc> class __gnu_pbds::basic_hash_table' 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:371:13: error: 'typelist' in namespace '__gnu_cxx' does not name a type 371 | typedef PB_DS_GP_HASH_BASE base_type; | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:371:13: error: expected template-argument before '::' token 371 | typedef PB_DS_GP_HASH_BASE base_type; | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:371:13: error: expected '>' before '::' token /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:371:13: error: wrong number of template arguments (8, should be 9) 371 | typedef PB_DS_GP_HASH_BASE base_type; | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:104:9: note: provided for 'template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class Resize_Policy, bool Store_Hash, class Tag, class Policy_Tl, class _Alloc> class __gnu_pbds::basic_hash_table' 104 | class basic_hash_table : public PB_DS_HASH_BASE | ^~~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(const hash_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:387:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 387 | : base_type(h) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(const hash_fn&, const eq_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:394:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 394 | : base_type(h, e) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(const hash_fn&, const eq_fn&, const comb_probe_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:402:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 402 | : base_type(h, e, cp) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(const hash_fn&, const eq_fn&, const comb_probe_fn&, const probe_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:412:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 412 | : base_type(h, e, cp, p) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(const hash_fn&, const eq_fn&, const comb_probe_fn&, const probe_fn&, const resize_policy&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:424:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 424 | : base_type(h, e, cp, p, rp) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(It, It)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:431:33: error: qualified-id in declaration before '(' token 431 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(It, It, const hash_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:439:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 439 | : base_type(h) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:440:33: error: qualified-id in declaration before '(' token 440 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(It, It, const hash_fn&, const eq_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:450:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 450 | : base_type(h, e) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:451:33: error: qualified-id in declaration before '(' token 451 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(It, It, const hash_fn&, const eq_fn&, const comb_probe_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:463:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 463 | : base_type(h, e, cp) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:464:33: error: qualified-id in declaration before '(' token 464 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(It, It, const hash_fn&, const eq_fn&, const comb_probe_fn&, const probe_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:477:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 477 | : base_type(h, e, cp, p) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:478:33: error: qualified-id in declaration before '(' token 478 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(It, It, const hash_fn&, const eq_fn&, const comb_probe_fn&, const probe_fn&, const resize_policy&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:494:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 494 | : base_type(h, e, cp, p, rp) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:495:33: error: qualified-id in declaration before '(' token 495 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In copy constructor '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::gp_hash_table(const __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:498:7: error: 'typedef int __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>' 498 | : base_type((const base_type&)other) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In member function 'void __gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>::swap(__gnu_pbds::gp_hash_table<Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc>&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:517:22: error: qualified-id in declaration before '(' token 517 | { base_type::swap(other); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: At global scope: /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:635:23: error: 'typelist' in namespace '__gnu_cxx' does not name a type 635 | class tree : public PB_DS_TREE_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:635:23: error: expected template-argument before '::' token 635 | class tree : public PB_DS_TREE_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:635:23: error: expected '>' before '::' token /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:635:23: error: wrong number of template arguments (5, should be 6) 635 | class tree : public PB_DS_TREE_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:555:9: note: provided for 'template<class Key, class Mapped, class Tag, class Node_Update, class Policy_Tl, class _Alloc> class __gnu_pbds::basic_branch' 555 | class basic_branch : public PB_DS_BRANCH_BASE | ^~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:638:13: error: 'typelist' in namespace '__gnu_cxx' does not name a type 638 | typedef PB_DS_TREE_BASE base_type; | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:638:13: error: expected template-argument before '::' token 638 | typedef PB_DS_TREE_BASE base_type; | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:638:13: error: expected '>' before '::' token /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:638:13: error: wrong number of template arguments (5, should be 6) 638 | typedef PB_DS_TREE_BASE base_type; | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:555:9: note: provided for 'template<class Key, class Mapped, class Tag, class Node_Update, class Policy_Tl, class _Alloc> class __gnu_pbds::basic_branch' 555 | class basic_branch : public PB_DS_BRANCH_BASE | ^~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree(const cmp_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:649:7: error: 'typedef int __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>' 649 | : base_type(c) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree(It, It)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:656:33: error: qualified-id in declaration before '(' token 656 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In constructor '__gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree(It, It, const cmp_fn&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:664:7: error: 'typedef int __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>' 664 | : base_type(c) | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:665:33: error: qualified-id in declaration before '(' token 665 | { base_type::copy_from_range(first, last); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In copy constructor '__gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::tree(const __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:668:7: error: 'typedef int __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::base_type' is not a non-static data member of '__gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>' 668 | : base_type((const base_type&)other) { } | ^~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: In member function 'void __gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>::swap(__gnu_pbds::tree<Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc>&)': /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:686:22: error: qualified-id in declaration before '(' token 686 | { base_type::swap(other); } | ^ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp: At global scope: /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:731:23: error: 'typelist' in namespace '__gnu_cxx' does not name a type 731 | class trie : public PB_DS_TRIE_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:731:23: error: expected template-argument before '::' token 731 | class trie : public PB_DS_TRIE_BASE | ^~~~~~~~~~~~~~~ /usr/include/c++/11/ext/pb_ds/assoc_container.hpp:731:23: error: expected '>' before '::' token /usr/include/c++/11/ext/pb_ds/asso