/in/foo.cc: In function 'int GetRes(int)':
/in/foo.cc:35:3: error: expected ';' before 'x'
x-=lowbits(x);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:48:21: error: 'cmp' was not declared in this scope
sort(dis+1,dis+n+1,cmp);
^~~
/in/foo.cc:60:13: error: 'q' was not declared in this scope
for(int j=q[i];j;j=nxtq[j])
^
/in/foo.cc:62:4: error: 'l' was not declared in this scope
l=lower_bound(dis+1,dis+v+1,L[j])-dis;
^
/in/foo.cc:63:4: error: 'r' was not declared in this scope
r=lower_bound(dis+1,dis+v+1,R[j])-dis;
^