Borderou de evaluare (job #324781)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Numere 6 (clasa a 6-a) | Compilator | c |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 20 nov. 2017 11:24:40 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:7:22: error: redeclaration of ‘d’ with no linkage
user.c:7:13: note: previous declaration of ‘d’ was here
user.c:10:3: 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:10:3: 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:10:3: warning: format not a string literal and no format arguments [-Wformat-security]
user.c:12:3: error: ‘a’ undeclared (first use in this function)
user.c:12:3: note: each undeclared identifier is reported only once for each function it appears in
user.c:24:5: error: ‘x1’ undeclared (first use in this function)
user.c:28:5: error: ‘x2’ undeclared (first use in this function)
user.c:32:5: error: ‘x3’ undeclared (first use in this function)
user.c:36:5: error: ‘x4’ undeclared (first use in this function)
user.c:40:5: error: ‘x5’ undeclared (first use in this function)
user.c:40:43: error: expected ‘;’ before ‘)’ token
user.c:40:43: error: expected statement before ‘)’ token
user.c:41:3: error: ‘else’ without a previous ‘if’
user.c:44:5: error: ‘x6’ undeclared (first use in this function)
user.c:45:3: error: expected ‘;’ before ‘else’
user.c:52:1: error: stray ‘`’ in program
user.c: At top level:
user.c:77:4: error: expected identifier or ‘(’ before ‘return’
user.c:78:1: error: expected identifier or ‘(’ before ‘}’ token
user.c: In function ‘main’:
user.c:10:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
user.c:15:13: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]