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)提供评测服务