foo.cc: In function 'void work()':
foo.cc:16: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:32: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:74:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<q2.size();j++)
~^~~~~~~~~~
foo.cc:51:6: warning: unused variable 'las' [-Wunused-variable]
int las=1;
^~~
foo.cc:41: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:45: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:61:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&op);
~~~~~^~~~~~~~~~~~
foo.cc:65: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:72: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)进行评测。