Borderou de evaluare (job #32503)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Case (clasa a 5-a) | Compilator | c |
Rundă | Concurs clasa a 5-a | Status | evaluat |
Dată | 27 nov. 2013 11:52:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:8:1: warning: passing argument 1 of ‘fscanf’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:449:12: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
user.c:8:1: warning: passing argument 2 of ‘fscanf’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:449:12: note: expected ‘const char * __restrict__’ but argument is of type ‘int *’
user.c:8:1: warning: format not a string literal and no format arguments [-Wformat-security]
user.c:20:6: error: called object ‘fout’ is not a function
user.c:5:7: warning: variable ‘fin’ set but not used [-Wunused-but-set-variable]
user.c: At top level:
user.c:23:1: error: expected identifier or ‘(’ before ‘if’
user.c:24:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token
user.c:25:1: error: expected identifier or ‘(’ before ‘if’
user.c:27:1: error: expected identifier or ‘(’ before ‘if’
user.c:29:1: error: expected identifier or ‘(’ before ‘if’
user.c:31:1: error: expected identifier or ‘(’ before ‘if’
user.c:33:1: warning: data definition has no type or storage class [enabled by default]
user.c:33:1: warning: type defaults to ‘int’ in declaration of ‘fout’ [-Wimplicit-int]
user.c:33:8: warning: initialization makes integer from pointer without a cast [enabled by default]
user.c:33:1: error: initializer element is not constant
user.c:34:16: error: expected ‘)’ before string constant
user.c:35:1: warning: data definition has no type or storage class [enabled by default]
user.c:35:1: warning: type defaults to ‘int’ in declaration of ‘fout’ [-Wimplicit-int]
user.c:35:1: warning: parameter names (without types) in function declaration [enabled by default]
user.c:35:1: error: ‘fout’ redeclared as different kind of symbol
user.c:33:1: note: previous definition of ‘fout’ was here
user.c:36:1: error: expected identifier or ‘(’ before ‘return’
user.c:37:1: error: expected identifier or ‘(’ before ‘}’ token
user.c: In function ‘main’:
user.c:8:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]