Main.cpp:1:7: error: stray '#' in program
1 | forfor#include <bits/stdc++.h>
| ^
Main.cpp:1:1: error: 'forfor' does not name a type
1 | forfor#include <bits/stdc++.h>
| ^~~~~~
Main.cpp:7:1: error: 'pair' does not name a type
7 | pair <int, int> s, g;
| ^~~~
Main.cpp:8:1: error: 'vector' does not name a type
8 | vector <vector <char>> a;
| ^~~~~~
Main.cpp:9:1: error: 'vector' does not name a type
9 | vector <vector <bool>> vis;
| ^~~~~~
Main.cpp:10:1: error: 'vector' does not name a type
10 | vector <vector <int>> dist;
| ^~~~~~
Main.cpp: In function 'bool valid(int, int)':
Main.cpp:14:48: error: 'vis' was not declared in this scope
14 | return x >= 0 && x < n && y >= 0 && y < m && !vis[x][y];
| ^~~
Main.cpp: In function 'void solve()':
Main.cpp:17:2: error: 'cin' was not declared in this scope
17 | cin >> n >> m >> K;
| ^~~
Main.cpp:18:9: error: 's' was not declared in this scope
18 | cin >> s.first >> s.second;
| ^
Main.cpp:19:9: error: 'g' was not declared in this scope
19 | cin >> g.first >> g.second;
| ^
Main.cpp:21:2: error: 'a' was not declared in this scope
21 | a.resize(n, vector <char> (m));
| ^
Main.cpp:21:14: error: 'vector' was not declared in this scope
21 | a.resize(n, vector <char> (m));
| ^~~~~~
Main.cpp:21:22: error: expected primary-expression before 'char'
21 | a.resize(n, vector <char> (m));
| ^~~~
Main.cpp:22:2: error: 'vis' was not declared in this scope
22 | vis.resize(n, vector <bool> (m, false));
| ^~~
Main.cpp:22:24: error: expected primary-expression before 'bool'
22 | vis.resize(n, vector <bool> (m, false));
| ^~~~
Main.cpp:23:2: error: 'dist' was not declared in this scope
23 | dist.resize(n, vector <int> (m, inf));
| ^~~~
Main.cpp:23:25: error: expected primary-expression before 'int'
23 | dist.resize(n, vector <int> (m, inf));
| ^~~
Main.cpp:32:2: error: 'deque' was not declared in this scope
32 | deque <pair <int, int>> cur;
| ^~~~~
Main.cpp:32:9: error: 'pair' was not declared in this scope
32 | deque <pair <int, int>> cur;
| ^~~~
Main.cpp:32:15: error: expected primary-expression before 'int'
32 | deque <pair <int, int>> cur;
| ^~~
Main.cpp:33:2: error: 'cur' was not declared in this scope
33 | cur.push_back(s);
| ^~~
Main.cpp:48:10: error: 'array' was not declared in this scope
48 | deque <array <int, 4>> dd;
| ^~~~~
Main.cpp:48:17: error: expected primary-expression before 'int'
48 | deque <array <int, 4>> dd;
| ^~~
Main.cpp:70:5: error: 'dd' was not declared in this scope; did you mean 'dy'?
70 | dd.push_back({k.first, k.second, 0, 0});
| ^~
| dy
Main.cpp:74:11: error: 'dd' was not declared in this scope; did you mean 'dy'?
74 | while (!dd.empty()) {
| ^~
| dy
Main.cpp:79:12: error: expected primary-expression before 'int'
79 | array <int, 4> g = {k[0] + dx[i], k[1] + dy[i], k[2] + abs(dx[i]), k[3] + abs(dy[i])};
| ^~~
Main.cpp:99:2: error: 'cout' was not declared in this scope
99 | cout << dist[g.first][g.second] << '\n';
| ^~~~