Borderou de evaluare (job #815608)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Figura (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 22 mar. 2025 13:54:26 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:13:43: error: 'y' undeclared (first use in this function)
13 | fscanf(fin, "%d %d", &x, &y);
| ^
main.c:13:43: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:25: error: 'p1' undeclared (first use in this function); did you mean 'p'?
16 | p1 = x + d1[j];
| ^~
| p
main.c:17:25: error: 'p2' undeclared (first use in this function); did you mean 'p'?
17 | p2 = y + d2[j];
| ^~
| p
main.c:9:31: warning: unused variable 'poz2' [-Wunused-variable]
9 | int d, n, x, b, poz1, poz2, p = 0;
| ^~~~
main.c:9:25: warning: unused variable 'poz1' [-Wunused-variable]
9 | int d, n, x, b, poz1, poz2, p = 0;
| ^~~~
main.c:9:22: warning: unused variable 'b' [-Wunused-variable]
9 | int d, n, x, b, poz1, poz2, p = 0;
| ^
main.c:10:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin, "%d %d", &d, &n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~