Borderou de evaluare (job #1209059)

Utilizator Love4BoobiesBarbu Ilie Bogdan Love4Boobies Data 16 iulie 2014 23:12:54
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: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=] fscanf(f, "%d", a[i]); ^ user.c: In function ‘main’: user.c:22:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=] fscanf(f, "%d", n); ^ 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) ^ user.c:32:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g, "%d", val); ^ user.c: In function ‘loadarray’: user.c:12:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", a[i]); ^ user.c: In function ‘main’: user.c:22:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", n); ^ user.c:22:11: warning: ‘n’ is used uninitialized in this function [-Wuninitialized]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbKilled by signal 11(SIGSEGV).0
20ms240kbKilled by signal 11(SIGSEGV).0
30ms236kbKilled by signal 11(SIGSEGV).0
40ms236kbKilled by signal 11(SIGSEGV).0
50ms236kbKilled by signal 11(SIGSEGV).0
60ms236kbKilled by signal 11(SIGSEGV).0
70ms236kbKilled by signal 11(SIGSEGV).0
80ms236kbKilled by signal 11(SIGSEGV).0
90ms236kbKilled by signal 11(SIGSEGV).0
100ms240kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?