Borderou de evaluare (job #2242609)

Utilizator sorgeTrifescu Stefan-Octavian sorge Data 19 septembrie 2018 00:21:48
Problema CMMDC Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:23:17: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types] fprintf("%d",0); ^~~~ In file included from /usr/include/stdio.h:936:0, from user.c:1: /usr/include/bits/stdio2.h:95:1: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘char *’ fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ user.c:23:9: warning: null argument where non-null required (argument 2) [-Wnonnull] fprintf("%d",0); ^~~~~~~ user.c:24:18: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types] else fprintf("%d",a); ^~~~ In file included from /usr/include/stdio.h:936:0, from user.c:1: /usr/include/bits/stdio2.h:95:1: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘char *’ fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ user.c:24:23: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [-Wint-conversion] else fprintf("%d",a); ^ In file included from /usr/include/stdio.h:936:0, from user.c:1: /usr/include/bits/stdio2.h:95:1: note: expected ‘const char * restrict’ but argument is of type ‘int’ fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ user.c:24:5: warning: format not a string literal and no format arguments [-Wformat-security] else fprintf("%d",a); ^~~~ user.c:10:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp,"%d",&a); ^~~~~~~~~~~~~~~~~~ user.c:11:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp,"%d",&b); ^~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms876kbKilled by signal 11(SIGSEGV).0
20ms752kbKilled by signal 11(SIGSEGV).0
30ms796kbKilled by signal 11(SIGSEGV).0
40ms792kbKilled by signal 11(SIGSEGV).0
50ms872kbKilled by signal 11(SIGSEGV).0
60ms936kbKilled by signal 11(SIGSEGV).0
70ms756kbKilled by signal 11(SIGSEGV).0
80ms800kbKilled by signal 11(SIGSEGV).0
90ms860kbKilled by signal 11(SIGSEGV).0
100ms804kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?