/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void addedge(int, int, int)':
/in/foo.cc:16:50: 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){from,to,flow,G[to].size()});
                                        ~~~~~~~~~~^~
/in/foo.cc:17: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){to,from,0,G[from].size()-1});
                                   ~~~~~~~~~~~~~~^~
/in/foo.cc: In function 'void bfs(int, int)':
/in/foo.cc:26:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<G[u].size();++i){
               ~^~~~~~~~~~~~
/in/foo.cc: In function 'int dfs(int, int, int)':
/in/foo.cc:37:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int& i=iter[u];i<G[u].size();++i){
                     ~^~~~~~~~~~~~
/in/foo.cc: In function 'int max_flow(int, int)':
/in/foo.cc:57:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   while(f=dfs(s,t,inf))flow+=f;
                      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:88:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int mid=l+r>>1;
           ~^~
# 状态 耗时 内存占用
#1 Accepted 2ms 332.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 364.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 3ms 464.0 KiB
#7 Accepted 6ms 492.0 KiB
#8 Accepted 5ms 456.0 KiB
#9 Accepted 4ms 504.0 KiB
#10 Accepted 6ms 464.0 KiB

信息

递交者
类型
递交
题目
P1521 跳舞
语言
C++
递交时间
2017-08-20 09:22:25
评测时间
2017-08-20 09:22:25
评测机
分数
100
总耗时
41ms
峰值内存
504.0 KiB