Borderou de evaluare (job #1838458)
Utilizator | Data | 1 ianuarie 2017 00:54:03 | |
---|---|---|---|
Problema | Arb | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:69:20: error: ‘assert’ was not declared in this scope
assert(n < NMAX);
^
user.cpp:80:33: warning: capture of variable ‘lvl’ with non-automatic storage duration [enabled by default]
sort(nbh + 1, nbh + 1 + n, [lvl](const int &a, const int &b) { return lvl[a] < lvl[b]; });
^
user.cpp:18:47: note: ‘int lvl [250005]’ declared here
int st[NMAX], dr[NMAX], aib[NMAX], ant[QMAX], lvl[NMAX], nbh[NMAX], val[NMAX];
^
user.cpp: In function ‘char nextch()’:
user.cpp:24:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(in_buff, 1, BMAX, stdin);
^
user.cpp: In function ‘int main()’:
user.cpp:62:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arb.in", "r", stdin);
^
user.cpp:63:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arb.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !