Borderou de evaluare (job #3248216)

Utilizator maria.bertolonMaria Bertolon maria.bertolon Data 11 octombrie 2024 07:35:42
Problema Inundatie Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c:1:1: warning: missing terminating " character 1 | "#include <stdio.h> | ^ main.c:1:1: error: missing terminating " character 1 | "#include <stdio.h> | ^~~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:42:3: error: unknown type name 'FILE' 42 | FILE *fin, *fout; | ^~~~ 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:46:9: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration] 46 | fin = fopen( "inundatie.in", "r" ); | ^~~~~ main.c:46:9: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'? main.c:46:7: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 46 | fin = fopen( "inundatie.in", "r" ); | ^ main.c:47:8: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 47 | fout = fopen( "inundatie.out", "w" ); | ^ main.c:49:3: warning: implicit declaration of function 'fscanf' [-Wimplicit-function-declaration] 49 | fscanf( fin, "%d%d", &nrlin, &nrcol ); | ^~~~~~ main.c:49:3: note: include '<stdio.h>' or provide a declaration of 'fscanf' main.c:49:3: warning: incompatible implicit declaration of built-in function 'fscanf' [-Wbuiltin-declaration-mismatch] main.c:49:3: note: include '<stdio.h>' or provide a declaration of 'fscanf' main.c:84:5: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration] 84 | fprintf( fout, "%lld\n", stot ); | ^~~~~~~ main.c:84:5: note: include '<stdio.h>' or provide a declaration of 'fprintf' main.c:84:5: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch] main.c:84:5: note: include '<stdio.h>' or provide a declaration of 'fprintf' main.c:87:3: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration] 87 | fclose( fin ); | ^~~~~~ main.c: At top level: main.c:91:2: warning: missing terminating " character 91 | }" | ^ main.c:91:2: error: missing terminating " character Non zero exit status: 1

Ceva nu functioneaza?