Borderou de evaluare (job #2131100)

Utilizator madalina.sassss madalina. Data 14 februarie 2018 12:45:49
Problema Cifra Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:9:14: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=] fscanf(f,"%d\n", t); ^ user.c:13:19: warning: passing argument 1 of ‘scanf’ from incompatible pointer type [-Wincompatible-pointer-types] scanf(f,"%d\n",a[i]); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from user.c:1: /usr/include/stdio.h:446:12: note: expected ‘const char * restrict’ but argument is of type ‘FILE * {aka struct _IO_FILE *}’ extern int __REDIRECT (scanf, (const char *__restrict __format, ...), ^ user.c:9:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d\n", t); ^ user.c:13:13: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf(f,"%d\n",a[i]); ^ user.c:9:5: warning: ‘t’ is used uninitialized in this function [-Wuninitialized] fscanf(f,"%d\n", t); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms864kbKilled by signal 11(SIGSEGV).0
20ms880kbKilled by signal 11(SIGSEGV).0
30ms756kbKilled by signal 11(SIGSEGV).0
40ms756kbKilled by signal 11(SIGSEGV).0
50ms756kbKilled by signal 11(SIGSEGV).0
60ms800kbKilled by signal 11(SIGSEGV).0
70ms864kbKilled by signal 11(SIGSEGV).0
80ms752kbKilled by signal 11(SIGSEGV).0
90ms752kbKilled by signal 11(SIGSEGV).0
100ms812kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?