Borderou de evaluare (job #1135946)
Utilizator | Data | 8 martie 2014 16:40:15 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/local/include/c++/4.8.0/backward/hash_set:60:0,
from user.cpp:2:
/usr/local/include/c++/4.8.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning \
^
user.cpp:5:26: error: template argument 2 is invalid
hash_set< int, hash<int> > v;
^
user.cpp:5:29: error: invalid type in declaration before ‘;’ token
hash_set< int, hash<int> > v;
^
user.cpp: In function ‘int main()’:
user.cpp:19:15: error: request for member ‘insert’ in ‘v’, which is of non-class type ‘int’
v.insert(val);
^
user.cpp:21:15: error: request for member ‘erase’ in ‘v’, which is of non-class type ‘int’
v.erase(val);
^
user.cpp:24:18: error: request for member ‘end’ in ‘v’, which is of non-class type ‘int’
if(v.end()!=v.find(val))
^
user.cpp:24:27: error: request for member ‘find’ in ‘v’, which is of non-class type ‘int’
if(v.end()!=v.find(val))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !