Borderou de evaluare (job #36635)

Utilizator stef2nStefan Istrate stef2n Data 23 martie 2007 22:14:33
Problema Cerc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void init()’: user.cpp:70:7: error: reference to ‘hash’ is ambiguous hash[i]=NULL; ^ user.cpp:29:11: note: candidates are: NOD_HASH* hash [10002] NOD_HASH *hash[M+2]; ^ In file included from /usr/include/c++/5/bits/basic_string.h:5471:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/random:40, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from user.cpp:8: /usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘int cauta_hash(double, double)’: user.cpp:125:16: error: reference to ‘hash’ is ambiguous NOD_HASH *b=hash[key]; ^ user.cpp:29:11: note: candidates are: NOD_HASH* hash [10002] NOD_HASH *hash[M+2]; ^ In file included from /usr/include/c++/5/bits/basic_string.h:5471:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/random:40, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from user.cpp:8: /usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘int adauga_hash(double&, double&, int&)’: user.cpp:140:11: error: reference to ‘hash’ is ambiguous a->adr=hash[key]; ^ user.cpp:29:11: note: candidates are: NOD_HASH* hash [10002] NOD_HASH *hash[M+2]; ^ In file included from /usr/include/c++/5/bits/basic_string.h:5471:0, from /usr/include/c++/5/string:52, from /usr/include/c++/5/random:40, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from user.cpp:8: /usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:141:4: error: reference to ‘hash’ is ambiguous hash[key]=a;
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms12kbKilled by signal 11(SIGSEGV).0
20ms12kbKilled by signal 11(SIGSEGV).0
30ms8kbKilled by signal 11(SIGSEGV).0
40ms8kbKilled by signal 11(SIGSEGV).0
50ms12kbKilled by signal 11(SIGSEGV).0
64ms8kbKilled by signal 11(SIGSEGV).0
70ms12kbKilled by signal 11(SIGSEGV).0
84ms12kbKilled by signal 11(SIGSEGV).0
90ms8kbKilled by signal 11(SIGSEGV).0
100ms8kbKilled by signal 11(SIGSEGV).0
110ms8kbKilled by signal 11(SIGSEGV).0
120ms12kbKilled by signal 11(SIGSEGV).0
130ms8kbKilled by signal 11(SIGSEGV).0
140ms12kbKilled by signal 11(SIGSEGV).0
150ms12kbKilled by signal 11(SIGSEGV).0
160ms12kbKilled by signal 11(SIGSEGV).0
170ms8kbKilled by signal 11(SIGSEGV).0
180ms12kbKilled by signal 11(SIGSEGV).0
190ms8kbKilled by signal 11(SIGSEGV).0
200ms12kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?