Borderou de evaluare (job #1029509)

Utilizator the_snyper06FMI - ALexandru Mihai the_snyper06 Data 15 noiembrie 2013 14:54:14
Problema Pariuri Status done
Runda FMI No Stress 4 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:20:4: error: reference to ‘hash’ is ambiguous hash[timp] = hash[timp] + bani; ^ user.cpp:8:28: note: candidates are: std::map<long long int, long long int> hash map <long long, long long> 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:20:17: error: reference to ‘hash’ is ambiguous hash[timp] = hash[timp] + bani; ^ user.cpp:8:28: note: candidates are: std::map<long long int, long long int> hash map <long long, long long> 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:24:19: error: reference to ‘hash’ is ambiguous printf ("%ld\n", hash.size()); ^ user.cpp:8:28: note: candidates are: std::map<long long int, long long int> hash map <long long, long long> 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:25:46: error: reference to ‘hash’ is ambiguous for (map<long long, long long>::iterator it=hash.begin(); it!=hash.end(); ++it) ^ user.cpp:8:28: note: candidates are: std::map<long long int, long long int> hash map <long long, long long> 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:25:64: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?