/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void addedge(int, int, int)':
/in/foo.cc:33:48: warning: narrowing conversion of 'G[to].std::vector<_Tp, _Alloc>::size<edges, std::allocator<edges> >()' from 'std::vector<edges>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
     G[from].push_back((edges){to,cap,G[to].size()});
                                      ~~~~~~~~~~^~
/in/foo.cc:34:50: warning: narrowing conversion of '(G[from].std::vector<_Tp, _Alloc>::size<edges, std::allocator<edges> >() - 1ul)' from 'std::vector<edges>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
     G[to].push_back((edges){from,0,G[from].size()-1});
                                    ~~~~~~~~~~~~~~^~
/in/foo.cc: In function 'void bfs(int)':
/in/foo.cc:43:22: 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:54:25: 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:74:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         while(f=dfs(s,t,INF))flow+=f;
                            ^
# 状态 耗时 内存占用
#1 Accepted 4ms 5.078 MiB
#2 Accepted 4ms 5.086 MiB
#3 Accepted 4ms 5.141 MiB
#4 Accepted 7ms 5.336 MiB
#5 Accepted 10ms 5.398 MiB
#6 Accepted 12ms 5.527 MiB
#7 Accepted 11ms 5.66 MiB
#8 Accepted 13ms 5.84 MiB
#9 Accepted 15ms 5.953 MiB
#10 Accepted 13ms 5.961 MiB

信息

递交者
类型
递交
题目
P1555 狼和羊的故事
语言
C++
递交时间
2020-03-13 21:13:06
评测时间
2020-03-13 21:13:06
评测机
分数
100
总耗时
98ms
峰值内存
5.961 MiB