foo.cc: In function 'int solve(int)':
foo.cc:49:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[temp.inde].size();i++)
~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:95:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[temp.inde].size();i++)
~^~~~~~~~~~~~~~~~~~~~
foo.cc:66:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
~~~~~^~~~~~~~~~~~~~~
foo.cc:69:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k[i]);
~~~~~^~~~~~~~~~~~
foo.cc:73:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&t[i].u,&t[i].v);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务