Borderou de evaluare (job #2266587)
Utilizator | Data | 22 octombrie 2018 19:50:31 | |
---|---|---|---|
Problema | Cri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve(int, int, int, int, int)':
main.cpp:13:35: error: 'fabs' was not declared in this scope
if ((int)(fabs(X - i + Y - j)) % 2 == 1)
^
main.cpp: In function 'int main()':
main.cpp:28:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cri.in", "r", stdin);
^
main.cpp:29:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cri.out", "w", stdout);
^
main.cpp:31:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &m, &x, &y);
^
main.cpp:34:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i][j]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !