prog.cpp: In function ‘int main()’:
prog.cpp:11:13: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
vector<hash> hashes;
^
prog.cpp:11:13: error: expected a type, got ‘hash’
prog.cpp:11:13: error: template argument 2 is invalid
prog.cpp:11:21: error: invalid type in declaration before ‘;’ token
vector<hash> hashes;
^
prog.cpp:11:15: warning: unused variable ‘hashes’ [-Wunused-variable]
vector<hash> hashes;
^
prog.cpp: In function ‘int iterateHash()’:
prog.cpp:18:18: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
for (vector<hash>::iterator it = hashes.begin(); it != hashes.end(); ++it)
^
prog.cpp:18:18: error: expected a type, got ‘hash’
prog.cpp:18:18: error: template argument 2 is invalid
prog.cpp:18:30: error: invalid type in declaration before ‘it’
for (vector<hash>::iterator it = hashes.begin(); it != hashes.end(); ++it)
^
prog.cpp:18:30: error: expected ‘;’ before ‘it’
prog.cpp:18:30: error: ‘it’ was not declared in this scope
prog.cpp:18:35: error: ‘hashes’ was not declared in this scope
for (vector<hash>::iterator it = hashes.begin(); it != hashes.end(); ++it)
^
prog.cpp:18:69: error: expected ‘)’ before ‘;’ token
for (vector<hash>::iterator it = hashes.begin(); it != hashes.end(); ++it)
^
prog.cpp:18:21: warning: unused variable ‘iterator’ [-Wunused-variable]
for (vector<hash>::iterator it = hashes.begin(); it != hashes.end(); ++it)
^
prog.cpp:18:73: error: ‘it’ was not declared in this scope
for (vector<hash>::iterator it = hashes.begin(); it != hashes.end(); ++it)
^
prog.cpp:18:75: error: expected ‘;’ before ‘)’ token
for (vector<hash>::iterator it = hashes.begin(); it != hashes.end(); ++it)
^
prog.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
prog.cpp: At global scope:
prog.cpp:27:8: error: template argument required for ‘struct hash’
struct hash()
^
prog.cpp:27:13: error: expected unqualified-id before ‘)’ token
struct hash()
^