Borderou de evaluare (job #1526950)

Utilizator dragomirdragomir alex dragomir Data 17 noiembrie 2015 18:24:33
Problema Densitate Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:8:9: warning: assignment from incompatible pointer type [enabled by default] fin = fopen("densitate.in", "r"); ^ user.c:9:10: warning: assignment from incompatible pointer type [enabled by default] fout = fopen("densitate.out", "w"); ^ user.c:10:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf(fin, "%d%d", &N, &Q); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘int *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:26:9: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf(fin, "%d%d", &a, &b); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘int *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:27:9: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf(fout, "%d\n", x[b] - x[a - 1]); ^ In file included from /usr/include/stdio.h:934:0, from user.c:1: /usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘struct FILE * restrict’ but argument is of type ‘int *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:10:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d", &N, &Q); ^ user.c:26:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
24ms260kbOK10
30ms300kbOK10
40ms320kbOK10
528ms320kbOK10
660ms648kbOK10
772ms808kbOK10
876ms2020kbOK10
988ms2132kbOK10
10100ms2216kbOK10
Punctaj total100

Ceva nu functioneaza?