Borderou de evaluare (job #648054)

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:23:26 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:12:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 12 | for(int i = 0 ; i < n ; ++ i) | ^~~ main.c:14:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 14 | _Bool ordonat; | ^~~~~ main.c:20:18: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 20 | fprintf( "Da" ); | ^~~~ | | | char * In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'char *' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:20:9: error: too few arguments to function 'fprintf' 20 | fprintf( "Da" ); | ^~~~~~~ In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:1: note: declared here 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ^~~~~~~ main.c:22:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 22 | fprintf( "NU" ); | ^~~~ | | | char * In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'char *' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:22:8: error: too few arguments to function 'fprintf' 22 | fprintf( "NU" ); | ^~~~~~~ In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:1: note: declared here 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ^~~~~~~ main.c:7:17: warning: unused variable 'fout' [-Wunused-variable] 7 | FILE *fin, *fout; | ^~~~ main.c:10:8: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | scanf("%d",&n); | ^~~~~~~~~~~~~~ main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]