0_0_14253519_23394.cpp:19:12: error: template argument 1 is invalid
vector<hash> ha[N];
^
0_0_14253519_23394.cpp:19:12: error: template argument 2 is invalid
0_0_14253519_23394.cpp:19:19: error: invalid type in declaration before ';' token
vector<hash> ha[N];
^
0_0_14253519_23394.cpp: In function 'int main()':
0_0_14253519_23394.cpp:32:13: error: reference to 'hash' is ambiguous
hash c;
^
0_0_14253519_23394.cpp:14:8: note: candidates are: struct hash
struct hash
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_14253519_23394.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_14253519_23394.cpp:33:13: error: 'c' was not declared in this scope
c.id=i;
^
0_0_14253519_23394.cpp:35:19: error: request for member 'push_back' in 'ha[b]', which is of non-class type 'int'
ha[b].push_back(c);
^
0_0_14253519_23394.cpp:43:34: error: request for member 'size' in 'ha[b]', which is of non-class type 'int'
for(int j=0;j<=ha[b].size();j++)
^
0_0_14253519_23394.cpp:45:27: error: invalid types 'int[int]' for array subscript
if(ha[b][j].ht==a)
^
0_0_14253519_23394.cpp:47:30: error: invalid types 'int[int]' for array subscript
c=ha[b][j].id;
^
0_0_14253519_23394.cpp:49:28: error: invalid types 'int[int]' for array subscript
ha[b][j].ht=-1;
^
|