/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void add_edge(int, int, int)':
/in/foo.cc:19:44: warning: narrowing conversion of 'G[to].std::vector<_Tp, _Alloc>::size<edge, std::allocator<edge> >()' from 'std::vector<edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
  G[from].push_back((edge){to,cap,G[to].size()});
                                  ~~~~~~~~~~^~
/in/foo.cc:20:49: warning: narrowing conversion of '(G[from].std::vector<_Tp, _Alloc>::size<edge, std::allocator<edge> >() - 1ul)' from 'std::vector<edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
  G[to].push_back((edge){from,cap,G[from].size() - 1});
                                  ~~~~~~~~~~~~~~~^~~
/in/foo.cc: In function 'int dfs(int, int, int)':
/in/foo.cc:27:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < G[v].size(); i++)
                  ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 280.0 KiB
#2 Accepted 3ms 260.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 336.0 KiB
#5 Accepted 2ms 356.0 KiB
#6 Accepted 2ms 340.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Wrong Answer 2ms 352.0 KiB
#9 Accepted 1ms 368.0 KiB
#10 Accepted 2ms 368.0 KiB

信息

递交者
类型
递交
题目
P1524 最小监视代价
语言
C++
递交时间
2018-04-25 01:15:25
评测时间
2018-04-25 01:15:25
评测机
分数
90
总耗时
26ms
峰值内存
384.0 KiB