Borderou de evaluare (job #3314342)
| Utilizator | Data | 9 octombrie 2025 17:12:31 | |
|---|---|---|---|
| Problema | Problema Damelor | Status | done |
| Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.c:6:1: error: unknown type name 'bool'
6 | bool first = false;
| ^~~~
main.c:5:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
4 | #include <math.h>
+++ |+#include <stdbool.h>
5 |
main.c:6:14: error: 'false' undeclared here (not in a function)
6 | bool first = false;
| ^~~~~
main.c:6:14: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
main.c:12:1: error: unknown type name 'bool'
12 | bool notAttacking(int k) {
| ^~~~
main.c:12:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
main.c: In function 'notAttacking':
main.c:14:36: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
14 | if(v[i] == v[k] || abs(i-k) == abs(v[i] - v[k])) return false;
| ^~~
main.c:5:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
4 | #include <math.h>
+++ |+#include <stdlib.h>
5 |
main.c:16:16: error: 'true' undeclared (first use in this function)
16 | return true;
| ^~~~
main.c:16:16: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
main.c:16:16: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'solve':
main.c:26:49: error: 'true' undeclared (first use in this function)
26 | first = true;
| ^~~~
main.c:26:49: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
main.c: In function 'notAttacking':
main.c:17:1: warning: control reaches end of non-void function [-Wreturn-type]
17 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
