Borderou de evaluare (job #2728416)
Utilizator | Data | 23 martie 2021 11:24:51 | |
---|---|---|---|
Problema | Zile de nastere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:21:28: error: 'memset' was not declared in this scope
memset(c, -1, sizeof(c));
^
main.cpp:26:34: warning: array subscript has type 'char' [-Wchar-subscripts]
for (i = 1; i <= l && c[sx[i]][sy[i]] <= z; i++)
^
main.cpp:28:25: warning: array subscript has type 'char' [-Wchar-subscripts]
if ((c[sx[i]][sy[i]] + 1 < c[sx[i] + k][sy[i] + k * (k - 1) / 2]) ||
^
main.cpp:33:24: warning: array subscript has type 'char' [-Wchar-subscripts]
c[sx[l]][sy[l]] = c[sx[i]][sy[i]] + 1;
^
main.cpp:33:42: warning: array subscript has type 'char' [-Wchar-subscripts]
c[sx[l]][sy[l]] = c[sx[i]][sy[i]] + 1;
^
main.cpp:34:27: warning: array subscript has type 'char' [-Wchar-subscripts]
from[sx[l]][sy[l]] = k;
^
main.cpp:14:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("zile.in", "r", stdin);
^
main.cpp:15:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("zile.out", "w", stdout);
^
main.cpp:17:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d ", &n, &z, &m);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !