Borderou de evaluare (job #1178357)
Raport evaluator
Compilare:
user.c: In function ‘main’:
user.c:25:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int’ [-Wformat=]
fscanf(f, "%d %d %d %d",x1,y1,x2,y2);
^
user.c:25:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long int’ [-Wformat=]
user.c:25:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 5 has type ‘long int’ [-Wformat=]
user.c:25:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 6 has type ‘long int’ [-Wformat=]
user.c:61:3: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("sum=%i\n",sum);
^
user.c:7:8: warning: unused variable ‘L’ [-Wunused-variable]
int T,L;
^
user.c:25:9: warning: ‘x1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
fscanf(f, "%d %d %d %d",x1,y1,x2,y2);
^
user.c:25:9: warning: ‘y1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
user.c:25:9: warning: ‘x2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
user.c:25:9: warning: ‘y2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |