F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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 {
  ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-29 06:04:50, Gzip enabled