Borderou de evaluare (job #681591)

Utilizator avatar Emre Isleam Emre Emre IP ascuns
Problemă Culori1 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 dec. 2022 10:10:02 Scor 0

Raport evaluator

Eroare de compilare: main.c:6:1: error: unknown type name 'FILE' 6 | FILE*fin; | ^~~~ main.c:3:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'? 2 | #include <stdlib.h> +++ |+#include <stdio.h> 3 | main.c:7:1: error: unknown type name 'FILE' 7 | FILE*fout; | ^~~~ main.c:7:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'? main.c: In function 'main': main.c:11:11: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration] 11 | fin = fopen("culori1.in","r"); | ^~~~~ main.c:11:11: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'? main.c:11:9: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 11 | fin = fopen("culori1.in","r"); | ^ main.c:12:10: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 12 | fout = fopen("culori1.out","w"); | ^ main.c:16:5: warning: implicit declaration of function 'fscanf' [-Wimplicit-function-declaration] 16 | fscanf(fin,"%d%d",&n,&k); | ^~~~~~ main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'fscanf' main.c:16:5: warning: incompatible implicit declaration of built-in function 'fscanf' [-Wbuiltin-declaration-mismatch] main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'fscanf' main.c:27:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | if(v[0] == v[n-1] && v[n-1] == v[n-2]) | ^~ main.c:29:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 29 | if(v[1] == v[0] && v[0] == v[n-1] ) | ^~ main.c:35:5: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration] 35 | fprintf(fout,"%d\n%d",s,max); | ^~~~~~~ main.c:35:5: note: include '<stdio.h>' or provide a declaration of 'fprintf' main.c:35:5: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch] main.c:35:5: note: include '<stdio.h>' or provide a declaration of 'fprintf'