0_0_36815868_13630.cpp:99:25: error: 'function' has not been declared
void traverse(int id, function<void(int)> func) {
^
0_0_36815868_13630.cpp:99:33: error: expected ',' or '...' before '<' token
void traverse(int id, function<void(int)> func) {
^
0_0_36815868_13630.cpp: In member function 'void Treap<K>::traverse(int, int)':
0_0_36815868_13630.cpp:101:23: error: 'func' was not declared in this scope
traverse(lft[id], func); func(id); traverse(rit[id], func);
^
|