Borderou de evaluare (job #2213485)
Utilizator | Meme Coin memecoin | Data | 16 iunie 2018 14:43:32 |
---|---|---|---|
Problema | Loto | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/6/backward/hash_map:60:0,
from user.cpp:5:
/usr/include/c++/6/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:16:1: error: ‘hash_map’ does not name a type
hash_map<int, triple> m;
^~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:33:5: error: ‘m’ was not declared in this scope
m[a[i] + a[j] + a[k]] = { i, j, k };
^
user.cpp:45:9: error: ‘m’ was not declared in this scope
if (m.count(x) > 0) {
^
user.cpp:19:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("loto.in", "r", stdin);
^
user.cpp:20:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("loto.out", "w", stdout);
^
user.cpp:22:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &s);
^
user.cpp:26:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !