Borderou de evaluare (job #88376)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Numchar (clasa a 5-a) | Compilator | c |
Rundă | s4_tema_10 | Status | evaluat |
Dată | 15 nov. 2014 11:54:14 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:6:5: error: ‘fin’ undeclared (first use in this function)
user.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
user.c:7:5: error: ‘fout’ undeclared (first use in this function)
user.c:10:7: error: invalid operands to binary >> (have ‘struct FILE *’ and ‘int’)
user.c:12:9: warning: passing argument 1 of ‘fgetc’ makes pointer from integer without a cast [enabled by default]
/usr/include/stdio.h:537:12: note: expected ‘struct FILE *’ but argument is of type ‘char’
user.c:15:15: warning: comparison between pointer and integer [enabled by default]
user.c:15:25: warning: comparison between pointer and integer [enabled by default]
user.c:15:36: warning: comparison between pointer and integer [enabled by default]
user.c:15:46: warning: comparison between pointer and integer [enabled by default]
user.c:15:9: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
user.c:16:13: error: expected ‘)’ before ‘lit’
user.c:19:5: error: expected expression before ‘}’ token
user.c:20:8: error: invalid operands to binary << (have ‘struct FILE *’ and ‘int’)
user.c:21:8: error: invalid operands to binary << (have ‘struct FILE *’ and ‘int’)
user.c:22:5: warning: passing argument 1 of ‘fclose’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:238:12: note: expected ‘struct FILE *’ but argument is of type ‘char *’
user.c:23:5: warning: passing argument 1 of ‘fclose’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:238:12: note: expected ‘struct FILE *’ but argument is of type ‘char *’