Main.cpp: In function 'void solve()':
Main.cpp:58:22: error: 'class std::priority_queue<std::array<int, 3> >' has no member named 'front'
58 | auto cur = q.front();
| ^~~~~
Main.cpp:61:15: error: 'x' was not declared in this scope
61 | if (a[x][y] == 6) {
| ^
Main.cpp:61:18: error: 'y' was not declared in this scope
61 | if (a[x][y] == 6) {
| ^
Main.cpp:64:20: error: 'x' was not declared in this scope
64 | if (c != d[x][y]) {
| ^
Main.cpp:64:23: error: 'y' was not declared in this scope
64 | if (c != d[x][y]) {
| ^
Main.cpp:68:14: error: 'x' was not declared in this scope
68 | if ((x == sx) && (y == sy)) {
| ^
Main.cpp:68:27: error: 'y' was not declared in this scope
68 | if ((x == sx) && (y == sy)) {
| ^
Main.cpp:74:46: error: no match for 'operator=' (operand types are 'std::array<int, 3>' and '<brace-enclosed initializer list>')
74 | pr[cx][cy] = {x, y, i + 1};
| ^
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from Main.cpp:1:
/usr/include/c++/9/array:94:12: note: candidate: 'constexpr std::array<int, 3>& std::array<int, 3>::operator=(const std::array<int, 3>&)'
94 | struct array
| ^~~~~
/usr/include/c++/9/array:94:12: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::array<int, 3>&'
/usr/include/c++/9/array:94:12: note: candidate: 'constexpr std::array<int, 3>& std::array<int, 3>::operator=(std::array<int, 3>&&)'
/usr/include/c++/9/array:94:12: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::array<int, 3>&&'
Main.cpp:85:46: error: no match for 'operator=' (operand types are 'std::array<int, 3>' and '<brace-enclosed initializer list>')
85 | pr[cx][cy] = {x, y, i + 1};
| ^
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from Main.cpp:1:
/usr/include/c++/9/array:94:12: note: candidate: 'constexpr std::array<int, 3>& std::array<int, 3>::operator=(const std::array<int, 3>&)'
94 | struct array
| ^~~~~
/usr/include/c++/9/array:94:12: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::array<int, 3>&'
/usr/include/c++/9/array:94:12: note: candidate: 'constexpr std::array<int, 3>& std::array<int, 3>::operator=(std::array<int, 3>&&)'
/usr/include/c++/9/array:94:12: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::array<int, 3>&&'