Borderou de evaluare (job #2957068)

Utilizator apocal1ps13Stefan Oprea Antoniu apocal1ps13 Data 21 decembrie 2022 17:13:29
Problema Cerere Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:18: error: expected ']' before numeric constant 3 | #define NMAX 100 000 | ^~~ main.cpp:9:14: note: in expansion of macro 'NMAX' 9 | vector<int>g[NMAX + 1], ancestor, viz; | ^~~~ main.cpp:3:18: error: expected ']' before numeric constant 3 | #define NMAX 100 000 | ^~~ main.cpp:10:8: note: in expansion of macro 'NMAX' 10 | int up[NMAX + 1][LOG]; | ^~~~ main.cpp: In function 'void dfs(int, int)': main.cpp:12:16: error: 'g' was not declared in this scope 12 | for (auto i : g[node]) { | ^ main.cpp:14:4: error: 'up' was not declared in this scope; did you mean 'u'? 14 | up[i][0] = node; | ^~ | u main.cpp: In function 'int binary_lifting(int, int)': main.cpp:23:28: error: 'up' was not declared in this scope; did you mean 'u'? 23 | if (k & (1 << i)) node = up[node][i]; | ^~ | u main.cpp: In function 'int main()': main.cpp:31:2: error: 'ancestor' was not declared in this scope 31 | ancestor = viz = vector<int>(n + 1); | ^~~~~~~~ main.cpp:31:13: error: 'viz' was not declared in this scope 31 | ancestor = viz = vector<int>(n + 1); | ^~~ main.cpp:35:3: error: 'g' was not declared in this scope 35 | g[u].push_back(v); | ^ Non zero exit status: 1

Ceva nu functioneaza?