Borderou de evaluare (job #3139329)
Utilizator | Data | 27 iunie 2023 13:44:59 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:17:17: error: 'INT_MAX' was not declared in this scope
17 | int max1 = -INT_MAX, max2 = -INT_MAX;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <vector>
+++ |+#include <climits>
3 |
main.cpp:22:17: error: 'max2' was not declared in this scope; did you mean 'max1'?
22 | max2 = max1;
| ^~~~
| max1
main.cpp:25:33: error: 'max2' was not declared in this scope; did you mean 'max1'?
25 | else if(lant[son] > max2) {
| ^~~~
| max1
main.cpp:30:25: error: 'max2' was not declared in this scope; did you mean 'max1'?
30 | diam[node] = max1 + max2 + 1;
| ^~~~
| max1
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !