Borderou de evaluare (job #809429)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Litere1 (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 feb. 2025 19:00:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:56:13: error: unknown type name 'bool'
56 | bool ok = true;
| ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
2 | #include <stdlib.h>
+++ |+#include <stdbool.h>
3 |
main.c:56:23: error: 'true' undeclared (first use in this function)
56 | bool ok = true;
| ^~~~
main.c:56:23: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:56:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:61:26: error: 'false' undeclared (first use in this function)
61 | ok = false;
| ^~~~~
main.c:61:26: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin, "%d %d", &c, &n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:19:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | fscanf(fin, " %c", &v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~