minmaxtree.cpp:18:13: error: 'std::vector<long long int> index' redeclared as different kind of symbol
vector <ll> index;
^~~~~
In file included from /usr/include/c++/7/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:48,
from minmaxtree.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
minmaxtree.cpp: In function 'void dfs(ll, ll, ll)':
minmaxtree.cpp:26:12: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
index[v] = euler.size()-1;
^
minmaxtree.cpp:29:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int z=0;z<graph[v].size();z++){
~^~~~~~~~~~~~~~~~
minmaxtree.cpp: In function 'int main()':
minmaxtree.cpp:77:11: error: overloaded function with no contextual type information
index.resize(n+1);
^~~~~~
minmaxtree.cpp:89:35: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
ll t = lca(min(index[u],index[v]),max(index[u],index[v]));
^
minmaxtree.cpp:89:44: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
ll t = lca(min(index[u],index[v]),max(index[u],index[v]));
^
minmaxtree.cpp:89:58: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
ll t = lca(min(index[u],index[v]),max(index[u],index[v]));
^
minmaxtree.cpp:89:67: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
ll t = lca(min(index[u],index[v]),max(index[u],index[v]));
^
minmaxtree.cpp:113:35: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
ll t = lca(min(index[u],index[v]),max(index[u],index[v]));
^
minmaxtree.cpp:113:44: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
ll t = lca(min(index[u],index[v]),max(index[u],index[v]));
^
minmaxtree.cpp:113:58: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
ll t = lca(min(index[u],index[v]),max(index[u],index[v]));
^
minmaxtree.cpp:113:67: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
ll t = lca(min(index[u],index[v]),max(index[u],index[v]));
^