Borderou de evaluare (job #1209058)

Utilizator Love4BoobiesBarbu Ilie Bogdan Love4Boobies Data 16 iulie 2014 23:12:16
Problema Permut Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘loadarray’: user.c:12:9: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%d", a[i]); ^ 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 ‘char *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:12:9: warning: passing argument 2 of ‘fscanf’ makes pointer from integer without a cast [enabled by default] fscanf("%d", a[i]); ^ 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 ‘const char * restrict’ but argument is of type ‘int’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c: In function ‘main’: user.c:22:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%d", n); ^ 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 ‘char *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:22:5: warning: passing argument 2 of ‘fscanf’ makes pointer from integer without a cast [enabled by default] fscanf("%d", n); ^ 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 ‘const char * restrict’ but argument is of type ‘int’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:25:5: warning: passing argument 1 of ‘loadarray’ from incompatible pointer type [enabled by default] loadarray(a, n, f); ^ user.c:9:6: note: expected ‘int *’ but argument is of type ‘long int *’ void loadarray(int a[], size_t n, FILE *f) ^ user.c:26:5: warning: passing argument 1 of ‘loadarray’ from incompatible pointer type [enabled by default] loadarray(b, n, f); ^ user.c:9:6: note: expected ‘int *’ but argument is of type ‘long int *’ void loadarray(int a[], size_t n, FILE *f) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms188kbKilled by signal 11(SIGSEGV).0
20ms188kbKilled by signal 11(SIGSEGV).0
30ms188kbKilled by signal 11(SIGSEGV).0
40ms192kbKilled by signal 11(SIGSEGV).0
50ms188kbKilled by signal 11(SIGSEGV).0
60ms192kbKilled by signal 11(SIGSEGV).0
70ms188kbKilled by signal 11(SIGSEGV).0
80ms196kbKilled by signal 11(SIGSEGV).0
90ms192kbKilled by signal 11(SIGSEGV).0
100ms192kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?