foo.cc: In function 'void dfs(int)':
foo.cc:23:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<g[u].size(); i++) {
~^~~~~~~~~~~~
foo.cc: In function 'int tps()':
foo.cc:53:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<g1[u].size(); i++) {
~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:83:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<g[u].size(); j++) {
~^~~~~~~~~~~~
foo.cc:72:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&h1,&h2);
~~~~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int tps()':
foo.cc:63:4: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (sccno[i]==ans) cc++;
^~
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-05-29T03:51:15.601Z","handle":"2020-05-29T03:51:15.613Z","cache_start":"2020-05-29T03:51:15.680Z","read_cases":"2020-05-29T03:51:16.595Z","judge":"2020-05-29T03:51:16.597Z","done":"2020-05-29T03:51:18.181Z"}