robots.cpp: In function 'int simulateMove(int, int, int)':
robots.cpp:6:26: error: 'dx' was not declared in this scope; did you mean 'x'?
6 | while (is_inside(x + dx[direction], y + dy[direction]) && grid[x + dx[direction]][y + dy[direction]] != 'x') {
| ^~
| x
robots.cpp:6:45: error: 'dy' was not declared in this scope; did you mean 'y'?
6 | while (is_inside(x + dx[direction], y + dy[direction]) && grid[x + dx[direction]][y + dy[direction]] != 'x') {
| ^~
| y
robots.cpp:6:12: error: 'is_inside' was not declared in this scope
6 | while (is_inside(x + dx[direction], y + dy[direction]) && grid[x + dx[direction]][y + dy[direction]] != 'x') {
| ^~~~~~~~~
robots.cpp:6:63: error: 'grid' was not declared in this scope
6 | while (is_inside(x + dx[direction], y + dy[direction]) && grid[x + dx[direction]][y + dy[direction]] != 'x') {
| ^~~~
robots.cpp:10:17: error: cannot convert '<brace-enclosed initializer list>' to 'int' in return
10 | return {x, y};
| ^
robots.cpp: At global scope:
robots.cpp:13:9: error: 'pair' was not declared in this scope
13 | int bfs(pair<int, int> start1, pair<int, int> start2) {
| ^~~~
robots.cpp:13:14: error: expected primary-expression before 'int'
13 | int bfs(pair<int, int> start1, pair<int, int> start2) {
| ^~~
robots.cpp:13:19: error: expected primary-expression before 'int'
13 | int bfs(pair<int, int> start1, pair<int, int> start2) {
| ^~~
robots.cpp:13:32: error: 'pair' was not declared in this scope
13 | int bfs(pair<int, int> start1, pair<int, int> start2) {
| ^~~~
robots.cpp:13:37: error: expected primary-expression before 'int'
13 | int bfs(pair<int, int> start1, pair<int, int> start2) {
| ^~~
robots.cpp:13:42: error: expected primary-expression before 'int'
13 | int bfs(pair<int, int> start1, pair<int, int> start2) {
| ^~~
robots.cpp:13:53: error: expression list treated as compound expression in initializer [-fpermissive]
13 | int bfs(pair<int, int> start1, pair<int, int> start2) {
| ^