Borderou de evaluare (job #3227600)
Utilizator | Data | 2 mai 2024 10:12:37 | |
---|---|---|---|
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 'long long int fix_mai_mare(long long int, Node*)':
main.cpp:220:16: error: 'LLONG_MAX' was not declared in this scope
220 | return LLONG_MAX; // Return some sentinel value indicating no such element exists
| ^~~~~~~~~
main.cpp:6:1: note: 'LLONG_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
5 | #include <fstream>
+++ |+#include <climits>
6 | std::ifstream fin("abce.in");
main.cpp:222:21: error: 'LLONG_MAX' was not declared in this scope
222 | long long dif = LLONG_MAX; // Initialize dif to maximum value
| ^~~~~~~~~
main.cpp:222:21: note: 'LLONG_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp: In function 'long long int fix_mai_mic(long long int, Node*)':
main.cpp:245:16: error: 'LLONG_MIN' was not declared in this scope
245 | return LLONG_MIN; // Return some sentinel value indicating no such element exists
| ^~~~~~~~~
main.cpp:245:16: note: 'LLONG_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:247:21: error: 'LLONG_MAX' was not declared in this scope
247 | long long dif = LLONG_MAX; // Initialize dif to maximum value
| ^~~~~~~~~
main.cpp:247:21: note: 'LLONG_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:265:35: error: 'LLONG_MIN' was not declared in this scope
265 | return closest == LLONG_MAX ? LLONG_MIN : closest; // Return closest or sentinel value if not found
| ^~~~~~~~~
main.cpp:265:35: note: 'LLONG_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !