Borderou de evaluare (job #648053)

Utilizator avatar Casian Casian Teodorescu Casian IP ascuns
Problemă Monotonă (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 21 apr. 2022 09:20:44 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:8:5: error: 'fin' undeclared (first use in this function) 8 | fin=fopen( "monotona.in", "r" ); | ^~~ main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in main.c:11:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 11 | for(int i = 0 ; i < n ; ++ i) | ^~~ main.c:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 13 | _Bool ordonat; | ^~~~~ main.c:14:15: error: 'true' undeclared (first use in this function) 14 | ordonat = true; | ^~~~ main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'? 2 | #include <stdlib.h> +++ |+#include <stdbool.h> 3 | main.c:17:23: error: 'false' undeclared (first use in this function) 17 | ordonat = false; | ^~~~~ main.c:17:23: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'? main.c:19:18: error: 'fout' undeclared (first use in this function) 19 | fprintf( fout,"Da" ); | ^~~~ main.c:9:8: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | scanf("%d",&n); | ^~~~~~~~~~~~~~