prog.cpp:70:5: error: ‘size_t’ does not name a type
size_t siz=0;
^~~~~~
prog.cpp:72:2: error: ‘size_t’ does not name a type
size_t size() const{
^~~~~~
prog.cpp: In constructor ‘trarr::item::item(const int&)’:
prog.cpp:11:84: error: ‘rand’ was not declared in this scope
item(const int &v): val(v), l(nullptr), r(nullptr), cnt(1) { prior = (rand() << 16) | rand(); }
^
prog.cpp: In member function ‘void trarr::insert(const int&, const int&)’:
prog.cpp:86:5: error: ‘siz’ was not declared in this scope
++siz;
^~~
prog.cpp: In member function ‘void trarr::erase(const int&)’:
prog.cpp:98:5: error: ‘siz’ was not declared in this scope
--siz;
^~~
prog.cpp: In member function ‘void trarr::push_back(const int&)’:
prog.cpp:111:17: error: ‘siz’ was not declared in this scope
return insert(siz,val);
^~~
prog.cpp:111:24: error: return-statement with a value, in function returning 'void' [-fpermissive]
return insert(siz,val);
^
prog.cpp: In member function ‘void trarr::pop_front()’:
prog.cpp:116:8: error: ‘siz’ was not declared in this scope
--siz;
^~~
prog.cpp: In member function ‘void trarr::pop_back()’:
prog.cpp:120:14: error: ‘siz’ was not declared in this scope
erase(--siz);
^~~
prog.cpp: In member function ‘trarr::item* trarr::operator[](const int&)’:
prog.cpp:130:52: error: ‘runtime_error’ was not declared in this scope
if (!m) throw runtime_error("IndexitemOutOfBound");
^