Borderou de evaluare (job #1303273)

Utilizator adi_ispas95FMI - Adrian Ispas adi_ispas95 Data 27 decembrie 2014 20:10:47
Problema Elementul majoritar Status done
Runda Teme Pregatire ACM Unibuc 2013 Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘element_majoritar’: user.c:34:9: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [enabled by default] fprintf(g,-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 ‘const char * restrict’ but argument is of type ‘int’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c: In function ‘main’: user.c:48:9: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%d",&x[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:48:9: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%d",&x[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:43:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ user.c:48:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf("%d",&x[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms224kbKilled by signal 11(SIGSEGV).0
20ms220kbKilled by signal 11(SIGSEGV).0
30ms232kbKilled by signal 11(SIGSEGV).0
40ms260kbKilled by signal 11(SIGSEGV).0
50ms220kbKilled by signal 11(SIGSEGV).0
60ms220kbKilled by signal 11(SIGSEGV).0
70ms224kbKilled by signal 11(SIGSEGV).0
80ms216kbKilled by signal 11(SIGSEGV).0
90ms220kbKilled by signal 11(SIGSEGV).0
100ms216kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?