Borderou de evaluare (job #1352920)

Utilizator Tokumei_no_KageFMI NEIMPORTANT Tokumei_no_Kage Data 21 februarie 2015 13:21:49
Problema Por Costel si Perechile Status done
Runda ONIS 2015, Runda 1 Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:8:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%d",&t); ^ 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:8:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%d",&t); ^ 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:10: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:10:5: warning: passing argument 2 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 ‘const char * restrict’ but argument is of type ‘int *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:5:10: warning: ignoring return value of ‘fopen’, declared with attribute warn_unused_result [-Wunused-result] { fopen("perechi3.in","r"); ^ user.c:6:10: warning: ignoring return value of ‘fopen’, declared with attribute warn_unused_result [-Wunused-result] fopen("perechi3.out","w"); ^ user.c:8:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf("%d",&t); ^ user.c:10:12: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] {fscanf("%d",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms176kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?