foo.cc: In function 'void work()':
foo.cc:15:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<ex.size();i++)
~^~~~~~~~~~
foo.cc: In function 'bool check(long long int, long long int)':
foo.cc:31:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<ed[k].size();i++)
~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:73:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<q2.size();j++)
~^~~~~~~~~~
foo.cc:50:6: warning: unused variable 'las' [-Wunused-variable]
int las=1;
^~~
foo.cc:40:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld",&n,&m,&q);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:44:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&x,&y);
~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:60:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&op);
~~~~~^~~~~~~~~~~~
foo.cc:64:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&a,&b);
~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:71:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&x);
~~~~~^~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。