foo.cc: In function 'int dts::search(int, int)':
foo.cc:86:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
foo.cc: In function 'void dts::main()':
foo.cc:91:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&a[i].Y,&a[i].R);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:94:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&m);
    ~~~~~^~~~~~~~~
foo.cc:97:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&xv,&yv);
     ~~~~~^~~~~~~~~~~~~~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务