Borderou de evaluare (job #1431128)

Utilizator Folea_Bogdan_325CCFOLEA Bogdan 325CC Folea_Bogdan_325CC Data 9 mai 2015 00:23:20
Problema A+B Status done
Runda teme_upb Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:6:2: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%ld%ld",&x,&y); ^ 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:6:2: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default] fscanf("%ld%ld",&x,&y); ^ 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 ‘long int *’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:9:2: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf("%ld\n",x+y); ^ 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 ‘struct FILE * restrict’ but argument is of type ‘char *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:9:2: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [enabled by default] fprintf("%ld\n",x+y); ^ 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 ‘long int’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:6:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf("%ld%ld",&x,&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
70ms168kbKilled by signal 11(SIGSEGV).00
80ms172kbKilled by signal 11(SIGSEGV).0
90ms172kbKilled by signal 11(SIGSEGV).0
100ms172kbKilled by signal 11(SIGSEGV).0
10ms172kbKilled by signal 11(SIGSEGV).00
20ms168kbKilled by signal 11(SIGSEGV).0
30ms172kbKilled by signal 11(SIGSEGV).0
40ms176kbKilled by signal 11(SIGSEGV).00
50ms172kbKilled by signal 11(SIGSEGV).0
60ms176kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?