Borderou de evaluare (job #1551592)
Utilizator | Data | 16 decembrie 2015 01:51:07 | |
---|---|---|---|
Problema | Muzica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/4.8/backward/hash_set:60:0,
from user.cpp:3:
/usr/include/c++/4.8/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:13:1: error: ‘hash_set’ does not name a type
hash_set<int> H;
^
user.cpp: In function ‘int main()’:
user.cpp:25:13: error: ‘H’ was not declared in this scope
H.insert(x);
^
user.cpp:31:9: error: ‘hash_set’ was not declared in this scope
hash_set<int>::iterator it = H.find(x);
^
user.cpp:31:9: note: suggested alternative:
In file included from user.cpp:3:0:
/usr/include/c++/4.8/backward/hash_set:84:11: note: ‘__gnu_cxx::hash_set’
class hash_set
^
user.cpp:31:18: error: expected primary-expression before ‘int’
hash_set<int>::iterator it = H.find(x);
^
user.cpp:31:18: error: expected ‘;’ before ‘int’
user.cpp:32:13: error: ‘it’ was not declared in this scope
if (it != H.end())
^
user.cpp:32:19: error: ‘H’ was not declared in this scope
if (it != H.end())
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !