/ Vijos /

记录详情

Compile Error

foo.cc: In function 'void dfs(int, int)':
foo.cc:16:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   16 |  for (auto [nextId, edgId] : edges[nodeId]) {
      |            ^
foo.cc: In function 'int main()':
foo.cc:27:26: error: missing template arguments before '(' token
   27 |   edges[u].push_back(pair(v, i));
      |                          ^
foo.cc:28:26: error: missing template arguments before '(' token
   28 |   edges[v].push_back(pair(u, i));
      |                          ^
foo.cc:47:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   47 |    if (travSeq.size() != n) {
      |        ~~~~~~~~~~~~~~~^~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2061 旅行
语言
C++
递交时间
2022-07-14 21:53:24
评测时间
2022-07-14 21:53:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes