/ Vijos /

记录详情

Compile Error

foo.cc:1:30: warning: '-std=c++17' is not an option that controls warnings [-Wpragmas]
    1 | #pragma GCC diagnostic error "-std=c++17"
      |                              ^~~~~~~~~~~~
foo.cc: In function 'void dfs(int, int)':
foo.cc:17:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   17 |  for (auto [nextId, edgId] : edges[nodeId]) {
      |            ^
foo.cc: In function 'int main()':
foo.cc:28:26: error: missing template arguments before '(' token
   28 |   edges[u].push_back(pair(v, i));
      |                          ^
foo.cc:29:26: error: missing template arguments before '(' token
   29 |   edges[v].push_back(pair(u, i));
      |                          ^
foo.cc:48:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   48 |    if (travSeq.size() != n) {
      |        ~~~~~~~~~~~~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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