Borderou de evaluare (job #1348352)
Utilizator | Data | 19 februarie 2015 17:34:51 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | 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:4:
/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:14:1: error: ‘hash_set’ does not name a type
hash_set<int> values;
^
user.cpp: In function ‘int main()’:
user.cpp:35:4: error: ‘values’ was not declared in this scope
values.insert(x);
^
user.cpp:38:3: error: ‘values’ was not declared in this scope
values.erase(y);
^
user.cpp:43:14: error: ‘values’ was not declared in this scope
for(int i : values) {
^
user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sortaret.in", "r", stdin);
^
user.cpp:20:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sortaret.out", "w", stdout);
^
user.cpp:24:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:32:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !