foo.cc: In function 'int main()':
foo.cc:91:31: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
scanf("%d%d",&n,&m);cin>>Type+1;
~~~~^~
foo.cc:91:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);cin>>Type+1;
~~~~~^~~~~~~~~~~~~~
foo.cc:92:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=n;i++)scanf("%lld",val+i);
~~~~~^~~~~~~~~~~~~~
foo.cc:94:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&u,&v);link(u,v);link(v,u);
~~~~~^~~~~~~~~~~~~~
foo.cc:122:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&a,&x,&b,&y);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。