Borderou de evaluare (job #2176069)
Utilizator | Data | 16 martie 2018 20:44:33 | |
---|---|---|---|
Problema | Zmeu2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void bfs()’:
user.cpp:29:159: error: ‘sol’ was not declared in this scope
if (nod.second.first - heads[it] >= 1 && bst[it][nod.second.first - heads[it]] > timee[it] + nod.second.second && timee[it] + nod.second.second < sol && !(nod.first == 1 && it == p))
^
user.cpp: In function ‘int main()’:
user.cpp:45:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zmeu2.in", "r", stdin);
^
user.cpp:46:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zmeu2.out", "w", stdout);
^
user.cpp:48:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n", &n, &p, &k);
^
user.cpp:50:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &timee[i], &heads[i]);
^
user.cpp:54:31: 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 !