0_0_36238691_2056.cpp:19:5: error: 'vector' does not name a type
vector<node> e;
^
0_0_36238691_2056.cpp: In constructor 'unmap<A, B>::unmap()':
0_0_36238691_2056.cpp:21:44: error: there are no arguments to 'memset' that depend on a template parameter, so a declaration of 'memset' must be available [-fpermissive]
unmap() { memset(head, -1, sizeof(head)); }
^
0_0_36238691_2056.cpp:21:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_36238691_2056.cpp: In member function 'bool unmap<A, B>::count(A)':
0_0_36238691_2056.cpp:25:40: error: 'e' was not declared in this scope
for (int i = head[hs]; ~i; i = e[i].nxt)
^
0_0_36238691_2056.cpp: In member function 'B& unmap<A, B>::operator[](A)':
0_0_36238691_2056.cpp:33:40: error: 'e' was not declared in this scope
for (int i = head[hs]; ~i; i = e[i].nxt)
^
0_0_36238691_2056.cpp:36:9: error: 'e' was not declared in this scope
e.push_back({u, B(), head[hs]}), head[hs] = e.size() - 1;
^
0_0_36238691_2056.cpp: In member function 'void unmap<A, B>::clear()':
0_0_36238691_2056.cpp:41:38: error: there are no arguments to 'memset' that depend on a template parameter, so a declaration of 'memset' must be available [-fpermissive]
memset(head, -1, sizeof(head));
^
|