/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'bool SPFA(int, int)':
/in/foo.cc:96:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int z = 0; z < edge[x].size(); z++) 
                         ~~^~~~~~~~~~~~~~~~
/in/foo.cc:103:82: error: 'fabs' was not declared in this scope
             if ((cost[y.to] < cost[x] + y.cost) && fabs(cost[y.to]-cost[x]-y.cost)>eps)
                                                                                  ^
/in/foo.cc: In function 'newpair ZKW_DFS(int, int, int)':
/in/foo.cc:157:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int& z = head[x]; z < edge[x].size(); z++) 
                            ~~^~~~~~~~~~~~~~~~
/in/foo.cc:162:59: error: 'fabs' was not declared in this scope
         if (!y.flow || (fabs(cost[y.to] - cost[x] - y.cost) > eps))
                                                           ^
/in/foo.cc: In function 'void costflow()':
/in/foo.cc:186:40: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         while (ans = ZKW_DFS(0, st, inf)) 
                                        ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:225:32: error: 'log' was not declared in this scope
     init(st, Tpoint, k, log(1.0));
                                ^
/in/foo.cc:268:26: error: 'exp' was not declared in this scope
     maxcost = exp(maxcost);
                          ^

信息

递交者
类型
递交
题目
P1621 终极情报网
语言
C++
递交时间
2020-09-21 13:07:27
评测时间
2020-09-21 13:07:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes