foo.cc: In function 'int dts::search(int, int)':
foo.cc:99:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
foo.cc: In function 'void dts::main()':
foo.cc:106:22: 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:109:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
~~~~~^~~~~~~~~
foo.cc:113:22: 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)提供评测服务