0_0_21734127_10430.cpp: In function 'void build(int)':
0_0_21734127_10430.cpp:37:11: error: no match for 'operator[]' (operand types are 'trie' and 'int')
if (!PRE[now].ch[s[i] - 'a']) PRE[now].ch[s[i] - 'a'] = PRE[now].newnode();
^
0_0_21734127_10430.cpp:37:36: error: no match for 'operator[]' (operand types are 'trie' and 'int')
if (!PRE[now].ch[s[i] - 'a']) PRE[now].ch[s[i] - 'a'] = PRE[now].newnode();
^
0_0_21734127_10430.cpp:37:62: error: no match for 'operator[]' (operand types are 'trie' and 'int')
if (!PRE[now].ch[s[i] - 'a']) PRE[now].ch[s[i] - 'a'] = PRE[now].newnode();
^
0_0_21734127_10430.cpp:38:12: error: no match for 'operator[]' (operand types are 'trie' and 'int')
now = PRE[now].ch[s[i] - 'a'];
^
0_0_21734127_10430.cpp:43:2: error: expected ';' before 'for'
for (int i = n; i >= 2; --i) {
^
0_0_21734127_10430.cpp:43:18: error: 'i' was not declared in this scope
for (int i = n; i >= 2; --i) {
^
0_0_21734127_10430.cpp: In function 'int calc(const string&, const string&)':
0_0_21734127_10430.cpp:56:11: error: no match for 'operator[]' (operand types are 'trie' and 'int')
hp = PRE[hp].ch[pre[i] - 'a'];
^
0_0_21734127_10430.cpp: At global scope:
0_0_21734127_10430.cpp:59:2: error: expected unqualified-id before 'for'
for (int i = s - 1; i >= 0; --i)
^
0_0_21734127_10430.cpp:59:22: error: 'i' does not name a type
for (int i = s - 1; i >= 0; --i)
^
0_0_21734127_10430.cpp:59:30: error: expected unqualified-id before '--' token
for (int i = s - 1; i >= 0; --i)
^
0_0_21734127_10430.cpp:62:2: error: expected unqualified-id before 'if'
if (p <= L && s <= L) {
^
0_0_21734127_10430.cpp:65:2: error: expected unqualified-id before 'else'
else {
^
|