Problem | obstacletree |
---|---|
User | justin271828 |
Submission Time | 2024-12-14 16:59:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
obstacletree.cpp:9:17: error: ‘int index [169420]’ redeclared as different kind of entity
9 | int index[169420];
| ^
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 obstacletree.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
| ^~~~~
obstacletree.cpp: In function ‘long long int dp(int, int)’:
obstacletree.cpp:17:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
17 | if (index[k] < index[i]) continue;
| ^
obstacletree.cpp:17:25: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
17 | if (index[k] < index[i]) continue;
|