Borderou de evaluare (job #687011)

Utilizator avatar ilincamanescu manescu ilinca ilincamanescu IP ascuns
Problemă Monotonă (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 ian. 2023 18:24:17 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:8:36: error: expected ';' before 'fscanf' 8 | fin = fopen("monotona.in", "r") | ^ | ; 9 | fscanf(fin, "%d",&n); | ~~~~~~ main.c:21:38: error: expected ';' before 'if' 21 | fout = fopen("monotona.out", "w") | ^ | ; 22 | if(p==n) | ~~ main.c:26:6: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 26 | else | ^~~~ main.c:28:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 28 | fclose( fout ); | ^~~~~~ main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d",&nr); | ^~~~~~~~~~~~~~~~~~~~~