Problem | lllontree |
---|---|
User | justin271828 |
Submission Time | 2024-12-16 10:44:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lllontree.cpp:27:17: error: ‘int index [123456]’ redeclared as different kind of entity
27 | int index[123456];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/9/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:48,
from lllontree.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration ‘const char* index(const char*, int)’
61 | index (const char *__s, int __c) __THROW
| ^~~~~
lllontree.cpp: In function ‘void dfs(int)’:
lllontree.cpp:31:26: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
31 | ans[x] = root->q(index[x]-1)+1;
| ^
lllontree.cpp:32:18: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
32 | root->up(index[x], ans[x]);
| ^
lllontree.cpp:34:1