Borderou de evaluare (job #3131070)
Utilizator | Data | 19 mai 2023 03:22:44 | |
---|---|---|---|
Problema | Arbori binari de cautare echilibrati | Status | done |
Runda | arhiva-test | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int find_highest_lower(Node*, int)':
main.cpp:158:26: error: 'INT_MIN' was not declared in this scope
158 | int largestSmaller = INT_MIN;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <fstream>
+++ |+#include <climits>
5 |
main.cpp: In function 'int find_lowest_higher(Node*, int)':
main.cpp:176:26: error: 'INT_MAX' was not declared in this scope
176 | int smallestLarger = INT_MAX;
| ^~~~~~~
main.cpp:176:26: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp: In function 'int main()':
main.cpp:239:5: warning: unused variable 'max_val' [-Wunused-variable]
239 | int max_val = 0; // Renamed from "max"
| ^~~~~~~
main.cpp:240:5: warning: unused variable 'min_val' [-Wunused-variable]
240 | int min_val = 0; // Renamed from "min"
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !