Main.cpp: In function 'void solve()':
Main.cpp:10:12: error: missing template arguments before 'gr'
10 | vector gr(n + 1,vector<int>());
| ^~
Main.cpp:12:12: error: missing template arguments before 'con'
12 | vector con(n + 1, vector<long long>(k + 1, 1e9));
| ^~~
Main.cpp:13:5: error: 'con' was not declared in this scope; did you mean 'cos'?
13 | con[0].assign(k + 1, 0);
| ^~~
| cos
Main.cpp:17:9: error: 'gr' was not declared in this scope
17 | gr[x].push_back(y);
| ^~
Main.cpp:26:23: error: 'gr' was not declared in this scope
26 | for (auto j : gr[i]) {
| ^~
Main.cpp:40:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
40 | auto [x, type] = q.front();
| ^
Main.cpp:42:31: error: 'gr' was not declared in this scope
42 | for (auto u : gr[x]) {
| ^~
Main.cpp:45:55: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)'
45 | if (s[u] == '0') q.push({u, 1});
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from Main.cpp:4:
/usr/include/c++/10/bits/stl_queue.h:265:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]'
265 | push(const value_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:265:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<int, int>&'}
265 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_queue.h:270:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]'
270 | push(value_type&& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:270:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
270 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
Main.cpp:48:53: error: no matching function for call to 'std::vector<std::pair<int, long long int> >::push_back(<brace-enclosed initializer list>)'
48 | nq.push_back({u, dis[u]});
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/queue:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from Main.cpp:4:
/usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, long long int>; _Alloc = std::allocator<std::pair<int, long long int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, long long int>]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<int, long long int>&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, long long int>; _Alloc = std::allocator<std::pair<int, long long int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, long long int>]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<int, long long int> >::value_type&&' {aka 'std::pair<int, long long int>&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
Main.cpp:56:23: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
56 | for (auto [x, y] : nq) {
| ^
Main.cpp:77:27: error: 'gr' was not declared in this scope
77 | for (auto u : gr[x]) {
| ^~