robot.cpp: In function 'void program_pulibot()':
robot.cpp:58:13: error: expected '}' before 'else'
58 | else if(cnt <= 1 && W == WALL && N == WALL)set_instruction({CUR, W, S, E, N}, PATH, 'T');
| ^~~~
robot.cpp:56:24: note: to match this '{'
56 | if(CUR == PATH){
| ^
robot.cpp:58:21: error: 'cnt' was not declared in this scope; did you mean 'int'?
58 | else if(cnt <= 1 && W == WALL && N == WALL)set_instruction({CUR, W, S, E, N}, PATH, 'T');
| ^~~
| int
robot.cpp:70:12: error: 'CUR' was not declared in this scope
70 | if(CUR == U){
| ^~~
robot.cpp:71:48: error: 'W' was not declared in this scope
71 | if(N == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:71:51: error: 'S' was not declared in this scope
71 | if(N == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:71:54: error: 'E' was not declared in this scope
71 | if(N == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:71:41: error: could not convert '{CUR, <expression error>, <expression error>, <expression error>, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
71 | if(N == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:72:21: error: 'E' was not declared in this scope
72 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ^
robot.cpp:72:64: error: 'W' was not declared in this scope
72 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ^
robot.cpp:72:67: error: 'S' was not declared in this scope
72 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ^
robot.cpp:72:57: error: could not convert '{CUR, <expression error>, <expression error>, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
72 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:73:21: error: 'S' was not declared in this scope
73 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ^
robot.cpp:73:64: error: 'W' was not declared in this scope
73 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ^
robot.cpp:73:57: error: could not convert '{CUR, <expression error>, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
73 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:74:21: error: 'W' was not declared in this scope
74 | else if(W == EMPTY || W == R)set_instruction({CUR, W, S, E, N}, L, 'W');
| ^
robot.cpp:74:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
74 | else if(W == EMPTY || W == R)set_instruction({CUR, W, S, E, N}, L, 'W');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:75:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
75 | else if(N == EMPTY || N == D)set_instruction({CUR, W, S, E, N}, U, 'N');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:77:12: error: 'CUR' was not declared in this scope
77 | if(CUR == R){
| ^~~
robot.cpp:78:16: error: 'E' was not declared in this scope
78 | if(E == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:78:48: error: 'W' was not declared in this scope
78 | if(E == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:78:51: error: 'S' was not declared in this scope
78 | if(E == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:78:41: error: could not convert '{CUR, <expression error>, <expression error>, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
78 | if(E == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:79:21: error: 'S' was not declared in this scope
79 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ^
robot.cpp:79:64: error: 'W' was not declared in this scope
79 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ^
robot.cpp:79:57: error: could not convert '{CUR, <expression error>, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
79 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:80:21: error: 'W' was not declared in this scope
80 | else if(W == EMPTY || W == R)set_instruction({CUR, W, S, E, N}, L, 'W');
| ^
robot.cpp:80:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
80 | else if(W == EMPTY || W == R)set_instruction({CUR, W, S, E, N}, L, 'W');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:81:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
81 | else if(N == EMPTY || N == D)set_instruction({CUR, W, S, E, N}, U, 'N');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:82:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
82 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:84:12: error: 'CUR' was not declared in this scope
84 | if(CUR == D){
| ^~~
robot.cpp:85:16: error: 'S' was not declared in this scope
85 | if(S == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:85:48: error: 'W' was not declared in this scope
85 | if(S == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:85:54: error: 'E' was not declared in this scope
85 | if(S == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:85:41: error: could not convert '{CUR, <expression error>, S, <expression error>, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
85 | if(S == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:86:21: error: 'W' was not declared in this scope
86 | else if(W == EMPTY || W == R)set_instruction({CUR, W, S, E, N}, L, 'W');
| ^
robot.cpp:86:70: error: 'E' was not declared in this scope
86 | else if(W == EMPTY || W == R)set_instruction({CUR, W, S, E, N}, L, 'W');
| ^
robot.cpp:86:57: error: could not convert '{CUR, W, S, <expression error>, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
86 | else if(W == EMPTY || W == R)set_instruction({CUR, W, S, E, N}, L, 'W');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:87:70: error: 'E' was not declared in this scope
87 | else if(N == EMPTY || N == D)set_instruction({CUR, W, S, E, N}, U, 'N');
| ^
robot.cpp:87:57: error: could not convert '{CUR, W, S, <expression error>, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
87 | else if(N == EMPTY || N == D)set_instruction({CUR, W, S, E, N}, U, 'N');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:88:21: error: 'E' was not declared in this scope
88 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ^
robot.cpp:88:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
88 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:89:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
89 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:91:12: error: 'CUR' was not declared in this scope
91 | if(CUR == L){
| ^~~
robot.cpp:92:16: error: 'W' was not declared in this scope
92 | if(W == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:92:51: error: 'S' was not declared in this scope
92 | if(W == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:92:54: error: 'E' was not declared in this scope
92 | if(W == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ^
robot.cpp:92:41: error: could not convert '{CUR, W, <expression error>, <expression error>, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
92 | if(W == PATH)set_instruction({CUR, W, S, E, N}, PATH, 'H');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:93:67: error: 'S' was not declared in this scope
93 | else if(N == EMPTY || N == D)set_instruction({CUR, W, S, E, N}, U, 'N');
| ^
robot.cpp:93:70: error: 'E' was not declared in this scope
93 | else if(N == EMPTY || N == D)set_instruction({CUR, W, S, E, N}, U, 'N');
| ^
robot.cpp:93:57: error: could not convert '{CUR, W, <expression error>, <expression error>, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
93 | else if(N == EMPTY || N == D)set_instruction({CUR, W, S, E, N}, U, 'N');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:94:21: error: 'E' was not declared in this scope
94 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ^
robot.cpp:94:67: error: 'S' was not declared in this scope
94 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ^
robot.cpp:94:57: error: could not convert '{CUR, W, <expression error>, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
94 | else if(E == EMPTY || E == L)set_instruction({CUR, W, S, E, N}, R, 'E');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:95:21: error: 'S' was not declared in this scope
95 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ^
robot.cpp:95:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
95 | else if(S == EMPTY || S == U)set_instruction({CUR, W, S, E, N}, D, 'S');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp:96:57: error: could not convert '{CUR, W, S, E, N}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
96 | else if(W == EMPTY || W == R)set_instruction({CUR, W, S, E, N}, L, 'W');
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
robot.cpp: At global scope:
robot.cpp:99:1: error: expected declaration before '}' token
99 | }
| ^