/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void add_edge(int, int, int, int)':
foo.cpp:24:40: warning: narrowing conversion of 'G[to].std::vector<_Tp, _Alloc>::size<edge, std::allocator<edge> >()' from 'std::vector<edge>::size_type {aka unsigned int}' to 'int' inside { } is ill-formed in C++11 [-Wnarrowing]
  edge e1 = { to, cap, cost, G[to].size() };
                                        ^
foo.cpp:25:43: warning: narrowing conversion of 'G[from].std::vector<_Tp, _Alloc>::size<edge, std::allocator<edge> >()' from 'std::vector<edge>::size_type {aka unsigned int}' to 'int' inside { } is ill-formed in C++11 [-Wnarrowing]
  edge e2 = { from, 0, -cost, G[from].size() };
                                           ^
foo.cpp: In function 'bool spfa(int)':
foo.cpp:44:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < G[t].size(); i++)
                                 ^
foo.cpp: At global scope:
foo.cpp:82:22: error: '_TCHAR' has not been declared
 int _tmain(int argc, _TCHAR* argv[])
                      ^

信息

递交者
类型
递交
题目
P1552 餐巾纸引发的血案
语言
C++
递交时间
2016-04-14 02:02:19
评测时间
2016-04-14 02:02:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes