foo.cc: In function 'void addedge(int, int, int)':
foo.cc:23:48: warning: narrowing conversion of 'G[to].std::vector<edges>::size()' from 'std::vector<edges>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
G[from].push_back((edges){to,cap,G[to].size()});
~~~~~~~~~~^~
foo.cc:24:50: warning: narrowing conversion of '(G[from].std::vector<edges>::size() - 1)' 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});
~~~~~~~~~~~~~~^~
foo.cc: In function 'void bfs(int)':
foo.cc:33:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<G[u].size();++i){
~^~~~~~~~~~~~
foo.cc: In function 'int dfs(int, int, int)':
foo.cc:44:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int& i=iter[u];i<G[u].size();++i){
~^~~~~~~~~~~~
foo.cc: In function 'int max_flow(int, int)':
foo.cc:64:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while(f=dfs(s,t,INF))flow+=f;
~^~~~~~~~~~~~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-07-22T06:03:18.381Z","handle":"2020-07-22T06:03:18.381Z","cache_start":"2020-07-22T06:03:18.388Z","read_cases":"2020-07-22T06:03:18.859Z","judge":"2020-07-22T06:03:18.860Z","done":"2020-07-22T06:03:19.415Z"}