Borderou de evaluare (job #3232256)
Utilizator | Data | 29 mai 2024 16:03:06 | |
---|---|---|---|
Problema | Inv | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'search':
main.c:37:39: error: 'INT_MAX' undeclared (first use in this function)
37 | if(val<=tree[node] && tree[node]!=INT_MAX){
| ^~~~~~~
main.c:3:1: note: 'INT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
2 | #include <stdlib.h>
+++ |+#include <limits.h>
3 |
main.c:37:39: note: each undeclared identifier is reported only once for each function it appears in
37 | if(val<=tree[node] && tree[node]!=INT_MAX){
| ^~~~~~~
main.c: In function 'main':
main.c:57:17: error: 'INT_MAX' undeclared (first use in this function)
57 | tree[i]=INT_MAX;
| ^~~~~~~
main.c:57:17: note: 'INT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !