abduction2.cpp: In function 'lint solve(int, int, int)':
abduction2.cpp:36:23: error: 'xh' was not declared in this scope
if(x <= a[i].pos) xh = min(xh, a[i].pos);
^
abduction2.cpp:37:10: error: 'xl' was not declared in this scope
else xl = max(xl, a[i].pos);
^
abduction2.cpp:40:22: error: 'xh' was not declared in this scope
if(x < a[i].pos) xh = min(xh, a[i].pos);
^
abduction2.cpp:41:10: error: 'xl' was not declared in this scope
else xl = max(xl, a[i].pos);
^
abduction2.cpp:49:23: error: 'yh' was not declared in this scope
if(y <= a[i].pos) yh = min(yh, a[i].pos);
^
abduction2.cpp:50:10: error: 'yl' was not declared in this scope
else yl = max(yl, a[i].pos);
^
abduction2.cpp:53:22: error: 'yh' was not declared in this scope
if(y < a[i].pos) yh = min(yh, a[i].pos);
^
abduction2.cpp:54:10: error: 'yl' was not declared in this scope
else yl = max(yl, a[i].pos);
^
abduction2.cpp: In function 'int main()':
abduction2.cpp:65:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&m,&q);
^
abduction2.cpp:67:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i].val);
^
abduction2.cpp:72:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i+n].val);
^
abduction2.cpp:83:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
^