foo.cc: In function 'void dp(int, int)':
foo.cc:16:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < e[ x ].size() ; i++ ) dp( e[ x ][ i ], d + 1 );
~~^~~~~~~~~~~~~~~
foo.cc:20:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < e[ x ].size() ; i++ )
~~^~~~~~~~~~~~~~~
foo.cc:29:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < e[ x ].size() ; i++ )
~~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:52:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < e[ 1 ].size() ; i++ ) dp( e[ 1 ][ i ], 1 );
~~^~~~~~~~~~~~~~~
foo.cc:54:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < e[ 1 ].size() ; i++ )
~~^~~~~~~~~~~~~~~
foo.cc:41:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d%d%lf", &n, &m, &p );
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:43:39: 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", &fa[ i ] );
~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:44:39: 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( "%lf", &c[ i ] );
~~~~~^~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。