foo.cc: In function 'void dfs(int, int)':
foo.cc:61:18: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
travel( now ) if ( p -> t != fa ) if ( used[ p -> t ] ) {
^
foo.cc: In function 'int main()':
foo.cc:110:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d%d" , &n , &m ) ;
~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:112:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int s , t , w ; scanf( "%d%d%d" , &s , &t , &w ) ;
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。