Borderou de evaluare (job #1240629)
Utilizator | Data | 11 octombrie 2014 19:47:40 | |
---|---|---|---|
Problema | Walls | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int update(int, int)’:
user.cpp:53:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: At global scope:
user.cpp:68:1: error: reference to ‘hash’ is ambiguous
hash* map[MOD];
^
user.cpp:63:8: note: candidates are: struct hash
struct hash{
^
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:68:1: error: ‘hash’ does not name a type
hash* map[MOD];
^
user.cpp: In function ‘int affect(int, int)’:
user.cpp:71:5: error: reference to ‘hash’ is ambiguous
hash *p=map[idx],*f=NULL;
^
user.cpp:63:8: note: candidates are: struct hash
struct hash{
^
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:71:11: error: ‘p’ was not declared in this scope
hash *p=map[idx],*f=NULL;
^
user.cpp:71:13: error: ‘map’ was not declared in this scope
hash *p=map[idx],*f=NULL;
^
user.cpp:71:23: error: ‘f’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !