Borderou de evaluare (job #588934)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Flori6 (clasa a 9-a) | Compilator | c-32 |
Rundă | Tema 27 clasa a 6-a | Status | evaluat |
Dată | 29 mar. 2021 19:11:05 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
main.c: In function 'main':
main.c:7:5: error: unknown type name 'FILE'
7 | FILE *fin,*fout;
| ^~~~
main.c:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
+++ |+#include <stdio.h>
1 | include <stdio.h>
main.c:8:9: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
8 | fin=fopen("flori6.in","r");
| ^~~~~
main.c:8:9: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
main.c:8:8: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
8 | fin=fopen("flori6.in","r");
| ^
main.c:9:9: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
9 | fout=fopen("flori6.out","w");
| ^
main.c:11:5: warning: implicit declaration of function 'fscanf' [-Wimplicit-function-declaration]
11 | fscanf(fin,"%d%d",&n,&m);
| ^~~~~~
main.c:11:5: warning: incompatible implicit declaration of built-in function 'fscanf'
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'fscanf'
main.c:14:9: error: 'v' undeclared (first use in this function)
14 | v[l]=l;
| ^
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:9: error: 'mat' undeclared (first use in this function)
17 | mat[l][x]=1;
| ^~~
main.c:64:15: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
64 | fprintf(fout,"%d ",c);
| ^~~~~~~
main.c:64:15: warning: incompatible implicit declaration of built-in function 'fprintf'
main.c:64:15: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:68:12: warning: incompatible implicit declaration of built-in function 'fprintf'
68 | fprintf(fout,"\n");
| ^~~~~~~
main.c:68:12: note: include '<stdio.h>' or provide a declaration of 'fprintf'
main.c:10:35: warning: unused variable 'lin' [-Wunused-variable]
10 | int m,n,l,c,x,fetite=0,firstf,lin,col;
| ^~~