Borderou de evaluare (job #1721087)
Utilizator | Data | 24 iunie 2016 14:20:13 | |
---|---|---|---|
Problema | Jocul Flip | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:7:26: error: ‘m’ undeclared (first use in this function)
ret=fscanf(in,"%d %d", &m,&n);
^
user.c:7:26: note: each undeclared identifier is reported only once for each function it appears in
user.c:7:29: error: ‘n’ undeclared (first use in this function)
ret=fscanf(in,"%d %d", &m,&n);
^
user.c:8:2: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
char *buf=malloc(m*n*sizeof(int));
^
user.c:8:12: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default]
char *buf=malloc(m*n*sizeof(int));
^
user.c:9:8: error: ‘buffer’ undeclared (first use in this function)
fread(buffer,m*n*sizeof(int),1,in);
^
user.c:8:8: warning: unused variable ‘buf’ [-Wunused-variable]
char *buf=malloc(m*n*sizeof(int));
^
user.c:5:20: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int a[17][17],i,j,ret,aux,row,col=0,sum_poz,sum_neg;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !