0_0_30691582_11231.cpp:14:1: error: 'hash_map' does not name a type
hash_map<int, int> hmap;
^
0_0_30691582_11231.cpp: In function 'int main()':
0_0_30691582_11231.cpp:65:3: error: 'hmap' was not declared in this scope
hmap[b[i]] = i;
^
0_0_30691582_11231.cpp:17:16: error: 'hmap' was not declared in this scope
#define to(x) (hmap[x])
^
0_0_30691582_11231.cpp:73:15: note: in expansion of macro 'to'
ans += sum(to(a[r + 1] + k)) - sum(to(a[r + 1] - k) - 1); inse(to(a[++r]), 1);
^
0_0_30691582_11231.cpp:17:16: error: 'hmap' was not declared in this scope
#define to(x) (hmap[x])
^
0_0_30691582_11231.cpp:76:9: note: in expansion of macro 'to'
inse(to(a[r--]), 0); ans -= sum(to(a[r+1] + k)) - sum(to(a[r+1] - k) - 1);
^
0_0_30691582_11231.cpp:17:16: error: 'hmap' was not declared in this scope
#define to(x) (hmap[x])
^
0_0_30691582_11231.cpp:80:9: note: in expansion of macro 'to'
inse(to(a[l++]), 0); ans -= sum(to(a[l-1] + k)) - sum(to(a[l-1] - k) - 1);
^
0_0_30691582_11231.cpp:17:16: error: 'hmap' was not declared in this scope
#define to(x) (hmap[x])
^
0_0_30691582_11231.cpp:83:15: note: in expansion of macro 'to'
ans += sum(to(a[l - 1] + k)) - sum(to(a[l - 1] - k) - 1); inse(to(a[--l]), 1);
^
|