Main.cpp: In lambda function:
Main.cpp:34:13: sorry, unimplemented: capture of variably-modified type 'char [(r + 1)][(c + 1)]' that is not an N3639 array of runtime bound
34 | if (a[x][y] == '.') q1.push({x, y});
| ^
Main.cpp:34:13: note: because the array element type 'char [(c + 1)]' has variable size
Main.cpp:35:29: sorry, unimplemented: capture of variably-modified type 'std::vector<std::pair<int, int> > [(r + 1)][(c + 1)]' that is not an N3639 array of runtime bound
35 | for (auto [x1, y1]: adj[x][y]){
| ^~~
Main.cpp:35:29: note: because the array element type 'std::vector<std::pair<int, int> > [(c + 1)]' has variable size
Main.cpp:36:17: sorry, unimplemented: capture of variably-modified type 'char [(r + 1)][(c + 1)]' that is not an N3639 array of runtime bound
36 | if (a[x1][y1] == '.'){
| ^
Main.cpp:36:17: note: because the array element type 'char [(c + 1)]' has variable size
Main.cpp:37:24: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)'
37 | q1.push({x1, y1});
| ~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/queue:64,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86,
from Main.cpp:1:
/usr/include/c++/11/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++/11/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++/11/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++/11/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:47:33: sorry, unimplemented: capture of variably-modified type 'std::vector<std::pair<int, int> > [(r + 1)][(c + 1)]' that is not an N3639 array of runtime bound
47 | for (auto [x2, y2]: adj[x1][y1]){
| ^~~
Main.cpp:47:33: note: because the array element type 'std::vector<std::pair<int, int> > [(c + 1)]' has variable size
Main.cpp:48:21: sorry, unimplemented: capture of variably-modified type 'char [(r + 1)][(c + 1)]' that is not an N3639 array of runtime bound
48 | if (a[x2][y2] == '.' && dist[x2][y2] == 1e9){
| ^
Main.cpp:48:21: note: because the array element type 'char [(c + 1)]' has variable size
Main.cpp:49:28: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)'
49 | q1.push({x2, y2});
| ~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/queue:64,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86,
from Main.cpp:1:
/usr/include/c++/11/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++/11/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++/11/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++/11/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)
| ~~~~~~~~~~~~~^~~