Borderou de evaluare (job #3293454)
Utilizator | Data | 11 aprilie 2025 18:18:27 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: 'vector' does not name a type
12 | vector <int> g[N + 1];
| ^~~~~~
main.cpp: In function 'void dfs(int, int)':
main.cpp:19:20: error: 'g' was not declared in this scope
19 | for (auto it : g[node])
| ^
main.cpp: In function 'int main()':
main.cpp:43:26: error: 'g' was not declared in this scope
43 | cin >> dp[i][0], g[dp[i][0]].push_back(i);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !