0_0_38161332_1974.cpp: In function 'int bfs(int, std::vector<int>&, std::vector<bool>&, int, int)':
0_0_38161332_1974.cpp:10:8: error: expected unqualified-id before '[' token
auto [tim, u] = q.front(); q.pop();
^
0_0_38161332_1974.cpp:11:7: error: 'u' was not declared in this scope
vis[u] = true;
^
0_0_38161332_1974.cpp:13:11: error: 'tim' was not declared in this scope
return tim;
^
0_0_38161332_1974.cpp:16:53: error: 'tim' was not declared in this scope
if (v >= 1 && v <= n && !vis[v]) q.push(make_pair(tim+1, v));
^
0_0_38161332_1974.cpp:18:53: error: 'tim' was not declared in this scope
if (v >= 1 && v <= n && !vis[v]) q.push(make_pair(tim+1, v));
^
|