Borderou de evaluare (job #1964830)
Utilizator | Data | 13 aprilie 2017 18:30:09 | |
---|---|---|---|
Problema | Barbar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool bfs(int)’:
user.cpp:38:5: error: expected ‘;’ before ‘seen’
seen[startX][startY] = 1;
^
user.cpp:38:29: warning: statement has no effect [-Wunused-value]
seen[startX][startY] = 1;
^
user.cpp: In function ‘int main()’:
user.cpp:59:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("barbar.in", "r", stdin);
^
user.cpp:60:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("barbar.out", "w", stdout);
^
user.cpp:63:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n", &n, &m);
^
user.cpp:66:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &c);
^
user.cpp:72:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !