0_0_38999945_27921.cpp:7:9: error: reference to 'size' is ambiguous
7 | char mp[size][size];
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:53,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_38999945_27921.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_38999945_27921.cpp:6:11: note: 'const int size'
6 | const int size = 25;
| ^~~~
0_0_38999945_27921.cpp:7:15: error: reference to 'size' is ambiguous
7 | char mp[size][size];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_38999945_27921.cpp:6:11: note: 'const int size'
6 | const int size = 25;
| ^~~~
0_0_38999945_27921.cpp:8:10: error: reference to 'size' is ambiguous
8 | bool vis[size][size];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_38999945_27921.cpp:6:11: note: 'const int size'
6 | const int size = 25;
| ^~~~
0_0_38999945_27921.cpp:8:16: error: reference to 'size' is ambiguous
8 | bool vis[size][size];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_38999945_27921.cpp:6:11: note: 'const int size'
6 | const int size = 25;
| ^~~~
0_0_38999945_27921.cpp: In function 'int bfs(int, int)':
0_0_38999945_27921.cpp:20:9: error: 'vis' was not declared in this scope
20 | vis[stx, sty][0] = true;
| ^~~
0_0_38999945_27921.cpp:27:21: error: 'mp' was not declared in this scope; did you mean 'm'?
27 | if (mp[now.x][now.y] == '^') {
| ^~
| m
0_0_38999945_27921.cpp:34:77: error: 'mp' was not declared in this scope; did you mean 'm'?
34 | if (x >= 0 && x <= n - 1 && y >= 0 && y <= m - 1 && mp[x][y] != '*' && !vis[x][y][now.key]) {
| ^~
| m
0_0_38999945_27921.cpp: In function 'int main()':
0_0_38999945_27921.cpp:52:24: error: 'vis' was not declared in this scope
52 | memset(vis, 0, sizeof(vis));
| ^~~
0_0_38999945_27921.cpp:58:40: error: 'mp' was not declared in this scope; did you mean 'm'?
58 | cin >> mp[i][j];
| ^~
| m
|