/ Vijos /

记录详情

Accepted

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)进行评测。
# 状态 耗时 内存占用
#1 Accepted 5ms 3.965 MiB
#2 Accepted 6ms 4.047 MiB
#3 Accepted 9ms 4.035 MiB
#4 Accepted 11ms 4.07 MiB
#5 Accepted 15ms 4.07 MiB
#6 Accepted 7ms 4.07 MiB
#7 Accepted 19ms 4.027 MiB
#8 Accepted 91ms 4.059 MiB
#9 Accepted 11ms 4.066 MiB
#10 Accepted 18ms 4.062 MiB

信息

递交者
类型
递交
题目
P1826 奥运物流
语言
C++
递交时间
2021-02-25 23:36:28
评测时间
2021-02-25 23:36:28
评测机
分数
100
总耗时
196ms
峰值内存
4.07 MiB