Borderou de evaluare (job #603285)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Concurs (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 aug. 2021 15:16:00 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:17:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
17 | if(h == a)
| ^~
main.c:19:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
19 | if(p == hp)
| ^~
main.c:25:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
25 | fprintf("DA\n");
| ^~~~~~
| |
| char *
In file included from /usr/include/stdio.h:866,
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:25:9: error: too few arguments to function 'fprintf'
25 | fprintf("DA\n");
| ^~~~~~~
In file included from /usr/include/stdio.h:866,
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:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf( fin, "%d%d" , &h, &n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:12:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf( fin , "%d" , &a);
| ^~~~~~~~~~~~~~~~~~~~~~~~