Borderou de evaluare (job #743035)

Utilizator avatar luca.ion@scoalaelenavacarescu.ro Luca Alexandru Ion luca.ion@scoalaelenavacarescu.ro IP ascuns
Problemă Monotonă (clasa a 5-a) Compilator c-32
Rundă Tema 13 clasa a 5-a Status evaluat
Dată 7 nov. 2023 16:05:52 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:27:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 27 | fprintf("da\n"); | ^~~~~~ | | | char * In file included from /usr/include/stdio.h:906, from main.c:1: /usr/include/bits/stdio2.h:77:27: note: expected 'FILE * restrict' but argument is of type 'char *' 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:27:9: error: too few arguments to function 'fprintf' 27 | fprintf("da\n"); | ^~~~~~~ /usr/include/bits/stdio2.h:77:1: note: declared here 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ^~~~~~~ main.c:29:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 29 | fprintf("nu\n"); | ^~~~~~ | | | char * /usr/include/bits/stdio2.h:77:27: note: expected 'FILE * restrict' but argument is of type 'char *' 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:29:9: error: too few arguments to function 'fprintf' 29 | fprintf("nu\n"); | ^~~~~~~ /usr/include/bits/stdio2.h:77:1: note: declared here 77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ^~~~~~~ main.c:33:16: error: expected ';' before 'return' 33 | fclose(fout) | ^ | ; ...... 36 | return 0; | ~~~~~~ main.c:8:4: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf( fin, "%d", &numar_anterior ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:14:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | scanf("%d", &nr); | ^~~~~~~~~~~~~~~~