Borderou de evaluare (job #1075257)
Utilizator | Data | 8 ianuarie 2014 19:39:54 | |
---|---|---|---|
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:4:
/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: In function ‘int main()’:
user.cpp:11:2: error: ‘hash_set’ was not declared in this scope
hash_set<int> hash;
^
user.cpp:11:2: note: suggested alternative:
In file included from user.cpp:4:0:
/usr/local/include/c++/4.8.0/backward/hash_set:84:11: note: ‘__gnu_cxx::hash_set’
class hash_set
^
user.cpp:11:11: error: expected primary-expression before ‘int’
hash_set<int> hash;
^
user.cpp:11:11: error: expected ‘;’ before ‘int’
user.cpp:15:11: error: expected primary-expression before ‘int’
hash_set<int>::const_iterator res;
^
user.cpp:15:11: error: expected ‘;’ before ‘int’
user.cpp:23:8: error: missing template arguments before ‘.’ token
hash.insert(val);
^
user.cpp:26:8: error: missing template arguments before ‘.’ token
hash.erase(val);
^
user.cpp:29:4: error: ‘res’ was not declared in this scope
res = hash.find(val);
^
user.cpp:29:14: error: missing template arguments before ‘.’ token
res = hash.find(val);
^
user.cpp:30:19: error: missing template arguments before ‘.’ token
if (res != hash.end())
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !