LCA

Taškai: 0

Compile: FAIL

lca.cpp: In function ‘void Deep(int, int*, int*)’: lca.cpp:70:52: error: invalid types ‘int*[<unresolved overloaded function type>]’ for array subscript L[i] = ElementDeep(n, T, L, T[index]) + 1; ^ lca.cpp: In function ‘int main()’: lca.cpp:126:20: error: ‘L’ was not declared in this scope Deep(n, T, L); ^ lca.cpp:134:37: error: ‘p’ was not declared in this scope cout << LCA(n, P, T, L, p, q) + 1 << '\n'; ^

nr.resulttimemessage