foo.cc: In function 'int main()':
foo.cc:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&n,&m,&k,&q);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:22:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&bx[i],&by[i]),block[bx[i]][by[i]]=1;
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:54:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&x1,&x2,&y1,&y2);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~