Pagini recente » Borderou de evaluare (job #1970064) | Borderou de evaluare (job #1877075) | Borderou de evaluare (job #666788) | Borderou de evaluare (job #2376405) | Borderou de evaluare (job #2242609)
Borderou de evaluare (job #2242609)
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 |
1 | 0ms | 876kb | Killed by signal 11(SIGSEGV). | 0 |
2 | 0ms | 752kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 796kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 792kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 0ms | 872kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 936kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 756kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 800kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 860kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 804kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |