Borderou de evaluare (job #3257534)

Utilizator FpreStefan Predescu Fpre Data 18 noiembrie 2024 11:43:22
Problema Reflex Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:9:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fscanf("%d%d", &n,&m); | ^~~~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'char *' 415 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:9:20: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fscanf("%d%d", &n,&m); | ^~ | | | int * /usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *' 416 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:25:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+=' token 25 | int c1+=m/n-1; | ^~ main.c:25:15: error: expected expression before '+=' token main.c:26:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+=' token 26 | int c2+=1; | ^~ main.c:26:15: error: expected expression before '+=' token main.c:30:24: error: 'c1' undeclared (first use in this function) 30 | printf("%d%d", c1,c2); | ^~ main.c:30:24: note: each undeclared identifier is reported only once for each function it appears in main.c:30:27: error: 'c2' undeclared (first use in this function) 30 | printf("%d%d", c1,c2); | ^~ main.c:8:15: warning: unused variable 'j' [-Wunused-variable] 8 | int n,m,i,j,v[100][100],aux,schimb=0; | ^ main.c:8:13: warning: unused variable 'i' [-Wunused-variable] 8 | int n,m,i,j,v[100][100],aux,schimb=0; | ^ main.c:5:14: warning: variable 'w' set but not used [-Wunused-but-set-variable] 5 | FILE *r,*w; | ^ main.c:5:11: warning: variable 'r' set but not used [-Wunused-but-set-variable] 5 | FILE *r,*w; | ^ Non zero exit status: 1

Ceva nu functioneaza?