Borderou de evaluare (job #858933)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Aeriana (clasa a 5-a) | Compilator | c |
| Rundă | Tema 28 Clasa a 5-a | Status | evaluat |
| Dată | 3 apr. 2026 19:52:41 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:20:18: error: 'm1' undeclared (first use in this function); did you mean 'M1'?
20 | h1 = H1, m1 = M1;
| ^~
| M1
main.c:20:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:18: error: 'm2' undeclared (first use in this function); did you mean 'M2'?
21 | h2 = H2, m2 = M2;
| ^~
| M2
main.c:40:13: error: 'isuma' undeclared (first use in this function); did you mean 'suma'?
40 | isuma = 0;
| ^~~~~
| suma
main.c:49:18: error: 'tm' undeclared (first use in this function)
49 | tm = m1;
| ^~
main.c:2:1: note: 'tm' is defined in header '<time.h>'; this is probably fixable by adding '#include <time.h>'
1 | #include <stdio.h>
+++ |+#include <time.h>
2 |
main.c:72:5: error: 'iminute' undeclared (first use in this function); did you mean 'minute'?
72 | iminute = maxDur % 60;
| ^~~~~~~
| minute
main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | fscanf(fin, "%d", &C);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf(fin, "%d", &N);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:18:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | fscanf(fin, "%lld %lld %d %d %d %d", &A1, &A2, &H1, &M1, &H2, &M2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~