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_32350249_28738.cpp: In member function 'void Palindromic_Tree::count()':
0_0_32350249_28738.cpp:57:22: error: invalid types 'int[int]' for array subscript
          int l=last[i]-len[i]+2,r=last[i]+1; 
                      ^
0_0_32350249_28738.cpp:58:10: error: 'r' was not declared in this scope
    int n=r-l+1,mid=(l+r)>>1;
          ^
0_0_32350249_28738.cpp:60:11: error: 'mid' was not declared in this scope
     if(h1[mid]-h1[l-1]*h2[mid-l+1]==h1[r]-h1[mid-1]*h2[r-mid+1])ans[last[i]]+=cnt[i];
           ^
0_0_32350249_28738.cpp:60:75: error: invalid types 'int[int]' for array subscript
     if(h1[mid]-h1[l-1]*h2[mid-l+1]==h1[r]-h1[mid-1]*h2[r-mid+1])ans[last[i]]+=cnt[i];
                                                                           ^
0_0_32350249_28738.cpp:62:11: error: 'mid' was not declared in this scope
     if(h1[mid]-h1[l-1]*h2[mid-l+1]==h1[r]-h2[mid]*h2[r-mid])ans[len[i]]+=cnt[i];
           ^


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-11-23 05:40:31, Gzip enabled