0_0_39193106_3444.cpp:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
0_0_39193106_3444.cpp:1:1: note: C++20 'import' only available with '-fmodules-ts', which is not yet enabled with '-std=c++20'
0_0_39193106_3444.cpp:3:17: error: declaration of 'room' as multidimensional array must have bounds for all dimensions except the first
3 | static char room[][] = new char[23][23];
| ^~~~
0_0_39193106_3444.cpp:4:16: error: declaration of 'dir' as multidimensional array must have bounds for all dimensions except the first
4 | static int dir[][] = {{-1, 0}, {0, -1}, {1, 0}, {0, 1}};
| ^~~
0_0_39193106_3444.cpp:7:12: error: 'boolean' does not name a type; did you mean 'bool'?
7 | static boolean CHECK(int x, int y){
| ^~~~~~~
| bool
0_0_39193106_3444.cpp:17:6: error: expected ';' after class definition
17 | }
| ^
| ;
0_0_39193106_3444.cpp:11:5: error: a storage class can only be specified for objects and functions
11 | static class Node {
| ^~~~~~
0_0_39193106_3444.cpp:40:11: error: expected ':' before 'static'
40 | public static void main(String[] args){
| ^~~~~~~
| :
0_0_39193106_3444.cpp:40:29: error: 'String' has not been declared
40 | public static void main(String[] args){
| ^~~~~~
0_0_39193106_3444.cpp:40:38: error: expected ',' or '...' before 'args'
40 | public static void main(String[] args){
| ^~~~
0_0_39193106_3444.cpp:66:2: error: expected ';' after class definition
66 | }
| ^
| ;
0_0_39193106_3444.cpp: In constructor 'Main::Node::Node(int, int)':
0_0_39193106_3444.cpp:14:18: error: request for member 'x' in '(Main::Node*)this', which is of pointer type 'Main::Node*' (maybe you meant to use '->' ?)
14 | this.x = x;
| ^
0_0_39193106_3444.cpp:15:18: error: request for member 'y' in '(Main::Node*)this', which is of pointer type 'Main::Node*' (maybe you meant to use '->' ?)
15 | this.y = y;
| ^
0_0_39193106_3444.cpp: In static member function 'static void Main::BFS(int, int)':
0_0_39193106_3444.cpp:21:9: error: 'Queue' was not declared in this scope
21 | Queue<Node> q = new LinkedList<>();
| ^~~~~
0_0_39193106_3444.cpp:21:19: error: expected primary-expression before '>' token
21 | Queue<Node> q = new LinkedList<>();
| ^
0_0_39193106_3444.cpp:21:21: error: 'q' was not declared in this scope
21 | Queue<Node> q = new LinkedList<>();
| ^
0_0_39193106_3444.cpp:21:29: error: expected type-specifier
21 | Queue<Node> q = new LinkedList<>();
| ^~~~~~~~~~~~
0_0_39193106_3444.cpp:22:14: error: no matching function for call to 'Main::Node::Node()'
22 | Node start, next;
| ^~~~~
0_0_39193106_3444.cpp:13:9: note: candidate: 'Main::Node::Node(int, int)'
13 | Node(int x, int y){
| ^~~~
0_0_39193106_3444.cpp:13:9: note: candidate expects 2 arguments, 0 provided
0_0_39193106_3444.cpp:11:18: note: candidate: 'constexpr Main::Node::Node(const Main::Node&)'
11 | static class Node {
| ^~~~
0_0_39193106_3444.cpp:11:18: note: candidate expects 1 argument, 0 provided
0_0_39193106_3444.cpp:11:18: note: candidate: 'constexpr Main::Node::Node(Main::Node&&)'
0_0_39193106_3444.cpp:11:18: note: candidate expects 1 argument, 0 provided
0_0_39193106_3444.cpp:22:21: error: no matching function for call to 'Main::Node::Node()'
22 | Node start, next;
| ^~~~
0_0_39193106_3444.cpp:13:9: note: candidate: 'Main::Node::Node(int, int)'
13 | Node(int x, int y){
| ^~~~
0_0_39193106_3444.cpp:13:9: note: candidate expects 2 arguments, 0 provided
0_0_39193106_3444.cpp:11:18: note: candidate: 'constexpr Main::Node::Node(const Main::Node&)'
11 | static class Node {
| ^~~~
0_0_39193106_3444.cpp:11:18: note: candidate expects 1 argument, 0 provided
0_0_39193106_3444.cpp:11:18: note: candidate: 'constexpr Main::Node::Node(Main::Node&&)'
0_0_39193106_3444.cpp:11:18: note: candidate expects 1 argument, 0 provided
0_0_39193106_3444.cpp:23:32: error: 'Main::Node::Node(int, int)' is private within this context
23 | start = new Node(dx, dy);
| ^
0_0_39193106_3444.cpp:13:9: note: declared private here
13 | Node(int x, int y){
| ^~~~
0_0_39193106_3444.cpp:23:32: error: no match for 'operator=' (operand types are 'Main::Node' and 'Main::Node*')
23 | start = new Node(dx, dy);
| ^
0_0_39193106_3444.cpp:11:18: note: candidate: 'constexpr Main::Node& Main::Node::operator=(const Main::Node&)'
11 | static class Node {
| ^~~~
0_0_39193106_3444.cpp:11:18: note: no known conversion for argument 1 from 'Main::Node*' to 'const Main::Node&'
0_0_39193106_3444.cpp:11:18: note: candidate: 'constexpr Main::Node& Main::Node::operator=(Main::Node&&)'
0_0_39193106_3444.cpp:11:18: note: no known conversion for argument 1 from 'Main::Node*' to 'Main::Node&&'
0_0_39193106_3444.cpp:30:39: error: 'int Main::Node::x' is private within this context
30 | next = new Node(start.x + dir[i][0], start.y + dir[i][1]);
| ^
0_0_39193106_3444.cpp:12:13: note: declared private here
12 | int x, y;
| ^
0_0_39193106_3444.cpp:30:43: error: 'dir' was not declared in this scope
30 | next = new Node(start.x + dir[i][0], start.y + dir[i][1]);
| ^~~
0_0_39193106_3444.cpp:30:60: error: 'int Main::Node::y' is private within this context
30 | next = new Node(start.x + dir[i][0], start.y + dir[i][1]);
| ^
0_0_39193106_3444.cpp:12:16: note: declared private here
12 | int x, y;
| ^
0_0_39193106_3444.cpp:31:31: error: 'int Main::Node::x' is private within this context
31 | if(CHECK(next.x, next.y) && room[next.x][next.y] == '.'){
| ^
0_0_39193106_3444.cpp:12:13: note: declared private here
12 | int x, y;
| ^
0_0_39193106_3444.cpp:31:39: error: 'int Main::Node::y' is private within this context
31 | if(CHECK(next.x, next.y) && room[next.x][next.y] == '.'){
| ^
0_0_39193106_3444.cpp:12:16: note: declared private here
12 | int x, y;
| ^
0_0_39193106_3444.cpp:31:20: error: 'CHECK' was not declared in this scope
31 | if(CHECK(next.x, next.y) && room[next.x][next.y] == '.'){
| ^~~~~
0_0_39193106_3444.cpp:31:45: error: 'room' was not declared in this scope
31 | if(CHECK(next.x, next.y) && room[next.x][next.y] == '.'){
| ^~~~
0_0_39193106_3444.cpp:31:55: error: 'int Main::Node::x' is private within this context
31 | if(CHECK(next.x, next.y) && room[next.x][next.y] == '.'){
| ^
0_0_39193106_3444.cpp:12:13: note: declared private here
12 | int x, y;
| ^
0_0_39193106_3444.cpp:31:63: error: 'int Main::Node::y' is private within this context
31 | if(CHECK(next.x, next.y) && room[next.x][next.y] == '.'){
| ^
0_0_39193106_3444.cpp:12:16: note: declared private here
12 | int x, y;
| ^
0_0_39193106_3444.cpp:32:31: error: 'int Main::Node::x' is private within this context
32 | room[next.x][next.y] = '#';
| ^
0_0_39193106_3444.cpp:12:13: note: declared private here
12 | int x, y;
| ^
0_0_39193106_3444.cpp:32:39: error: 'int Main::Node::y' is private within this context
32 | room[next.x][next.y] = '#';
| ^
0_0_39193106_3444.cpp:12:16: note: declared private here
12 | int x, y;
| ^
0_0_39193106_3444.cpp: In static member function 'static void Main::main(int*)':
0_0_39193106_3444.cpp:41:9: error: 'Scanner' was not declared in this scope
41 | Scanner sc = new Scanner(System.in);
| ^~~~~~~
0_0_39193106_3444.cpp:45:18: error: 'sc' was not declared in this scope
45 | Wx = sc.nextInt();
| ^~
0_0_39193106_3444.cpp:53:21: error: 'room' was not declared in this scope
53 | room[x][y] = sc.next().charAt(0);
| ^~~~
0_0_39193106_3444.cpp:59:25: error: 'System' was not declared in this scope
59 | System.out.println(num);
| ^~~~~~
0_0_39193106_3444.cpp:64:9: error: 'sc' was not declared in this scope
64 | sc.close();
| ^~
|