Borderou de evaluare (job #1566264)
Utilizator | Data | 11 ianuarie 2016 22:27:13 | |
---|---|---|---|
Problema | Teams | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:10:5: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
fscanf("%d%d%d",&n,&a,&b);
^
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:10:5: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
fscanf("%d%d%d",&n,&a,&b);
^
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:19:13: warning: missing terminating " character [enabled by default]
fprintf("%d\n,k);
^
user.c:19:5: error: missing terminating " character
fprintf("%d\n,k);
^
user.c:20:5: error: expected expression before ‘return’
return 0;
^
user.c:21:1: error: too few arguments to function ‘fprintf’
}
^
user.c:21:1: error: expected ‘;’ before ‘}’ token
user.c:10:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf("%d%d%d",&n,&a,&b);
^
user.c:13:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !