Borderou de evaluare (job #2081906)
Utilizator | Data | 5 decembrie 2017 13:24:02 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘fill’:
user.c:19:13: error: ‘y’ undeclared (first use in this function)
for(y=0;y<4;y++)
^
user.c:19:13: note: each undeclared identifier is reported only once for each function it appears in
user.c:21:17: warning: ‘return’ with a value, in function returning void [enabled by default]
return 1+fill(i+dirx[y], j+diry[y]);
^
user.c:22:9: warning: ‘return’ with a value, in function returning void [enabled by default]
return 0;
^
user.c:25:5: warning: ‘return’ with a value, in function returning void [enabled by default]
return mem[i][j];
^
user.c: In function ‘main’:
user.c:41:22: error: void value not ignored as it ought to be
mem[i][j]=fill(i, j);
^
user.c:30:21: warning: variable ‘y’ set but not used [-Wunused-but-set-variable]
int n, i, j, x, y, max;
^
user.c:30:18: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
int n, i, j, x, y, max;
^
user.c:29:17: warning: variable ‘fout’ set but not used [-Wunused-but-set-variable]
FILE *fin, *fout;
^
user.c:33:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
user.c:37:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &mat[i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !