Borderou de evaluare (job #2226503)
Utilizator | Data | 30 iulie 2018 11:51:11 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int get_int()’:
user.cpp:7:13: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
for(; c < 48 | c > 57; c = getchar());
~~^~~~
user.cpp:9:13: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
for(; c > 47 & c < 58; nr = nr * 10 + c - 48, c = getchar());
~~^~~~
user.cpp: In function ‘int main()’:
user.cpp:68:5: error: ‘head’ was not declared in this scope
head = buffer;
^~~~
user.cpp:68:12: error: ‘buffer’ was not declared in this scope
head = buffer;
^~~~~~
user.cpp:47:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bfs.in", "r", stdin);
^
user.cpp:48:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bfs.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !