0_0_20414314_18316.cpp: In function 'int revs(int)':
0_0_20414314_18316.cpp:23:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
int revs(int x){ if(!x) return ; swap(ch[x][0],ch[x][1]); rev[x]^=1;}
^
0_0_20414314_18316.cpp: In function 'void update(int)':
0_0_20414314_18316.cpp:27:5: error: 'i' was not declared in this scope
mn[i]=val[i]; mni[i]=i;
^
0_0_20414314_18316.cpp: In function 'void makeroot(int)':
0_0_20414314_18316.cpp:57:28: error: 'rev' cannot be used as a function
access(x); splay(x); rev(x);
^
0_0_20414314_18316.cpp: In function 'void cut(int, int)':
0_0_20414314_18316.cpp:62:23: error: expected primary-expression before '|' token
void cut(int x,int y){|
^
0_0_20414314_18316.cpp: In function 'int main()':
0_0_20414314_18316.cpp:75:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[tt]=g[j]; g[j]=tt;
^
0_0_20414314_18316.cpp:75:13: error: 'g' was not declared in this scope
next[tt]=g[j]; g[j]=tt;
^
0_0_20414314_18316.cpp:81:13: error: 'g' was not declared in this scope
for(int i=g[x];i;i=next[i]){
^
0_0_20414314_18316.cpp:81:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i=g[x];i;i=next[i]){
^
|