Borderou de evaluare (job #1209057)
Utilizator | Data | 16 iulie 2014 23:10:55 | |
---|---|---|---|
Problema | Permut | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘compare’:
user.c:6:19: error: expected ‘)’ before ‘a’
return *(int *a)a - *(int *b);
^
user.c:6:32: error: expected ‘)’ before ‘b’
return *(int *a)a - *(int *b);
^
user.c:6:34: error: expected expression before ‘;’ token
return *(int *a)a - *(int *b);
^
user.c: In function ‘loadarray’:
user.c:12:9: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
fscanf("%d", a[i]);
^
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:12:9: warning: passing argument 2 of ‘fscanf’ makes pointer from integer without a cast [enabled by default]
fscanf("%d", a[i]);
^
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: In function ‘main’:
user.c:22: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:22:5: warning: passing argument 2 of ‘fscanf’ makes pointer from integer without a cast [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:25:5: warning: passing argument 1 of ‘loadarray’ from incompatible pointer type [enabled by default]
loadarray(a, n, f);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !