/in/foo.cc: In function 'void lowbits(int)':
/in/foo.cc:19:14: error: return-statement with a value, in function returning 'void' [-fpermissive]
return x&(-x);
^
/in/foo.cc: In function 'void add(int)':
/in/foo.cc:26:15: error: invalid operands of types 'int' and 'void' to binary 'operator+'
x+=lowbits(x);
^
/in/foo.cc:26:15: error: in evaluation of 'operator+=(int, void)'
/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=nxt[j])
^
/in/foo.cc:60:22: error: 'nxt' was not declared in this scope
for(int j=q[i];j;j=nxt[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;
^