Borderou de evaluare (job #1117212)

Utilizator dspMihaiDespotovici Mihai dspMihai Data 23 februarie 2014 11:52:52
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:13:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=] scanf("%d", &N); ^ user.cpp:19:13: error: reference to ‘hash’ is ambiguous hash=crt%MOD; ^ user.cpp:6:25: note: candidates are: long unsigned int hash unsigned long N,i,crt,l,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:21:17: error: reference to ‘hash’ is ambiguous l=v[hash].size(); ^ user.cpp:6:25: note: candidates are: long unsigned int hash unsigned long N,i,crt,l,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:22:47: error: reference to ‘hash’ is ambiguous for (i=0; i<l && ok<0; i++) if (v[hash][i]==crt) ok=i; ^ user.cpp:6:25: note: candidates are: long unsigned int hash unsigned long N,i,crt,l,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:23:27: error: reference to ‘hash’ is ambiguous if (ok==-1) v[hash].push_back(crt); ^ user.cpp:6:25: note: candidates are: long unsigned int hash unsigned long N,i,crt,l,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

Ceva nu functioneaza?