Borderou de evaluare (job #1209051)
Utilizator | Data | 16 iulie 2014 22:58:08 | |
---|---|---|---|
Problema | Jap | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int insert(int)’:
user.cpp:47:11: error: reference to ‘hash’ is ambiguous
it = &hash[p % Mod];
^
user.cpp:19:5: note: candidates are: inf hash [672331]
inf hash[Mod];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:49:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ( (it -> next != NULL) && (it -> val !=p || it -> id != k1))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !