Problem scrivener
User dsyz
Submission Time 2023-07-24 00:13:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

scrivener.cpp:50:4: error: ‘ll index’ redeclared as different kind of entity
50 | ll index = -1;
| ^~~~~
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 scrivener.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
| ^~~~~
scrivener.cpp: In function ‘void Init()’:
scrivener.cpp:52:7: error: no post-increment operator for type
52 | index++;
| ^~
scrivener.cpp: In function ‘void TypeLetter(char)’:
scrivener.cpp:58:7: error: no post-increment operator for type
58 | index++;
| ^~
scrivener.cpp:59:12: error: invalid types ‘node* [1000005][<unresolved overloaded function type>]’ for array subscript
59 | root[index] = new node(root[