Pagini recente » Borderou de evaluare (job #2334553) | Borderou de evaluare (job #452578) | Borderou de evaluare (job #453205) | Borderou de evaluare (job #1858124) | Borderou de evaluare (job #2336188)
Borderou de evaluare (job #2336188)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:124:7: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
fis1 = fopen("cautbin.in", "r");
^
main.c:125:7: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
fis2 = fopen("cautbin.out", "w");
^
main.c:127:9: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(fis1,"%d", &n);
^~~~
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from main.c:1:
/usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *'
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
main.c:131:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(fis1,"%d", vector[index]);
^~~~
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from main.c:1:
/usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *'
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
main.c:131:17: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
fscanf(fis1,"%d", vector[index]);
^
main.c:133:9: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(fis1, "%d", &m);
^~~~
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from main.c:1:
/usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *'
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
main.c:136:10: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
fscanf(fis1, "%d%d",&mutare,&x);
^~~~
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from main.c:1:
/usr/include/stdio.h:443:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'int *'
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
^
main.c:139:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
fprintf (fis2,"%d", cautareBinara1(vector, 0, n - 1, x, n));
^~~~
In file included from /usr/include/stdio.h:936:0,
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | Killed by Signal 11 | 0 | 0 |
2 | 2ms | 131kb | Killed by Signal 11 | 0 | 0 |
3 | 2ms | 131kb | Killed by Signal 11 | 0 | 0 |
4 | 2ms | 131kb | Killed by Signal 11 | 0 | 0 |
5 | 2ms | 131kb | Killed by Signal 11 | 0 | 0 |
6 | 2ms | 131kb | Killed by Signal 11 | 0 |
7 | 2ms | 131kb | Killed by Signal 11 | 0 | 0 |
8 | 2ms | 131kb | Killed by Signal 11 | 0 |
9 | 2ms | 131kb | Killed by Signal 11 | 0 |
10 | 2ms | 131kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |