foo.cc: In function 'void dp(int)':
foo.cc:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<son[x].size();i++){
~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:26:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++)
^~~
foo.cc:31:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
dp(root);
^~
foo.cc:18: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("%d",&h[i]);
~~~~~^~~~~~~~~~~~
foo.cc:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
~~~~~^~~~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。