foo.cc: In function 'int main()':
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&cnt);
~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:9:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0;i<n;++i) scanf("%d%d",&delt[i],&minu[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:14:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&p,&low,&high);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~