Borderou de evaluare (job #824604)

Utilizator avatar mcucui2013 Maria Ioana Cucui mcucui2013 IP ascuns
Problemă Cyber (clasa 5-6) Compilator c-32
Rundă Tema 31 Clasa a 5-a Status evaluat
Dată 17 mai 2025 15:42:53 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:36:17: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 36 | fprintf("%d\n", codt); | ^~~~~~ | | | char * In file included from /usr/include/stdio.h:970, from main.c:1: /usr/include/bits/stdio2.h:109:27: note: expected 'FILE *' but argument is of type 'char *' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:36:25: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 36 | fprintf("%d\n", codt); | ^~~~ | | | int /usr/include/bits/stdio2.h:109:60: note: expected 'const char *' but argument is of type 'int' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:50:18: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 50 | fprintf("%d\n", codd); | ^~~~~~ | | | char * /usr/include/bits/stdio2.h:109:27: note: expected 'FILE *' but argument is of type 'char *' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:50:26: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 50 | fprintf("%d\n", codd); | ^~~~ | | | int /usr/include/bits/stdio2.h:109:60: note: expected 'const char *' but argument is of type 'int' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:66:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 66 | if(c < b) | ^~ main.c:68:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 68 | mij = b; | ^~~ main.c:99:17: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 99 | fprintf("%d\n", codt); | ^~~~~~ | | | char * /usr/include/bits/stdio2.h:109:27: note: expected 'FILE *' but argument is of type 'char *' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:99:25: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]