| Problem | beechtree |
|---|---|
| User | justin271828 |
| Submission Time | 2026-05-21 17:32:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
beechtree.cpp:11:17: error: ‘int index [271828]’ redeclared as different kind of entity
11 | int index[271828];
| ^
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 beechtree.cpp:2:
/usr/include/strings.h:61:1: note: previous declaration ‘const char* index(const char*, int)’
61 | index (const char *__s, int __c) __THROW
| ^~~~~
beechtree.cpp: In function ‘void f(int)’:
beechtree.cpp:28:18: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
28 | int b = index[x];
| ^
beechtree.cpp:38:10: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
38 | index[x] = b;
| ^
beechtree.cpp: In function ‘std::vector<int> beechtree(int, in