Borderou de evaluare (job #971859)

Utilizator OnimushaLordTiberiu Copaciu OnimushaLord Data 10 iulie 2013 13:48:05
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:1: error: reference to ‘hash’ is ambiguous hash val; ^ user.cpp:8:8: note: candidates are: struct hash struct hash ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:12:1: error: ‘hash’ does not name a type hash val; ^ user.cpp:13:13: error: template argument 1 is invalid vector <hash> s[MOD]; ^ user.cpp:13:13: error: template argument 2 is invalid user.cpp:13:21: error: invalid type in declaration before ‘;’ token vector <hash> s[MOD]; ^ user.cpp:14:13: error: template argument 1 is invalid vector <hash> :: iterator it; ^ user.cpp:14:13: error: template argument 2 is invalid user.cpp:14:27: error: expected initializer before ‘it’ vector <hash> :: iterator it; ^ user.cpp:17:13: error: template argument 1 is invalid vector <hash> :: iterator find(int x) ^ user.cpp:17:13: error: template argument 2 is invalid user.cpp:17:27: error: expected initializer before ‘find’ vector <hash> :: iterator find(int x) ^ user.cpp: In function ‘void solve()’: user.cpp:38:25: error: ‘it’ was not declared in this scope it=find(S-a[i]-a[j]-a[k]); ^ user.cpp:38:49: error: ‘find’ was not declared in this scope it=find(S-a[i]-a[j]-a[k]); ^ user.cpp:39:39: error: request for member ‘end’ in ‘s[ind]’, which is of non-class type ‘int’ if(it!=s[ind].end()) ^ user.cpp:46:21: error: ‘val’ was not declared in this scope val.x=a[i]; ^ user.cpp:49:21: error: ‘it’ was not declared in this scope

Ceva nu functioneaza?