0_0_26190382_29970.cpp:19:5: error: 'll' does not name a type
ll pos;
^
0_0_26190382_29970.cpp: In member function 'int ac::hash()':
0_0_26190382_29970.cpp:22:17: error: 'pos' was not declared in this scope
return (pos % mod + x + y + key) % mod;
^
0_0_26190382_29970.cpp: In member function 'bool ac::operator==(const ac&)':
0_0_26190382_29970.cpp:25:40: error: 'pos' was not declared in this scope
return t.x == x && t.y == y && pos == t.pos && key == t.key;
^
0_0_26190382_29970.cpp:25:49: error: 'const struct ac' has no member named 'pos'
return t.x == x && t.y == y && pos == t.pos && key == t.key;
^
0_0_26190382_29970.cpp: At global scope:
0_0_26190382_29970.cpp:29:17: error: 'N' was not declared in this scope
vector<ac> Hash[N];
^
0_0_26190382_29970.cpp:30:44: error: 'll' has not been declared
void add(int x, int y, int step, bool key, ll pos) {
^
0_0_26190382_29970.cpp: In function 'void add(int, int, int, bool, int)':
0_0_26190382_29970.cpp:32:53: error: 'struct ac' has no member named 'pos'
t.x = x, t.y = y, t.step = step, t.key = key, t.pos = pos;
^
0_0_26190382_29970.cpp:34:25: error: 'Hash' was not declared in this scope
for (int i = 0; i < Hash[idx].size(); ++i) {
^
0_0_26190382_29970.cpp:38:5: error: 'Hash' was not declared in this scope
Hash[idx].push_back(t);
^
0_0_26190382_29970.cpp: At global scope:
0_0_26190382_29970.cpp:41:1: error: 'll' does not name a type
ll change(int x, int y, ll pos) {
^
0_0_26190382_29970.cpp:50:48: error: 'll' has not been declared
void update (int x, int y, int step, bool key, ll pos) {
^
0_0_26190382_29970.cpp: In function 'void update(int, int, int, bool, int)':
0_0_26190382_29970.cpp:58:50: error: 'change' was not declared in this scope
add(x, y, step, key, change(x, y, pos));
^
0_0_26190382_29970.cpp: In function 'void bfs()':
0_0_26190382_29970.cpp:67:9: error: 'Hash' was not declared in this scope
Hash[i].clear();
^
0_0_26190382_29970.cpp:70:54: error: 'struct ac' has no member named 'pos'
t.x = sx, t.y = sy, t.step = 0, t.key = false, t.pos = 0;
^
0_0_26190382_29970.cpp:71:5: error: 'Hash' was not declared in this scope
Hash[t.hash()].push_back(t);
^
0_0_26190382_29970.cpp:84:47: error: 'struct ac' has no member named 'pos'
update(x, y, f.step + 1, f.key, f.pos);
^
|