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_25184588_30180.cpp:6:27: error: expected primary-expression before ']' token
 int tree[M << 6], ls[M << ]6, rs[M << 6], fa[M], tsize;
                           ^
0_0_25184588_30180.cpp:6:28: error: expected initializer before numeric constant
 int tree[M << 6], ls[M << ]6, rs[M << 6], fa[M], tsize;
                            ^
0_0_25184588_30180.cpp: In function 'void add(int&, long long int, long long int, long long int, int)':
0_0_25184588_30180.cpp:11:13: error: 'tsize' was not declared in this scope
      rt = ++tsize;
             ^
0_0_25184588_30180.cpp:19:25: error: 'ls' was not declared in this scope
     if (idx <= mid) add(ls[rt], l, mid, idx, val);
                         ^
0_0_25184588_30180.cpp:20:14: error: 'rs' was not declared in this scope
     else add(rs[rt], mid + 1, r, idx, val);
              ^
0_0_25184588_30180.cpp: In function 'void query(int&, long long int, long long int, long long int, long long int, int)':
0_0_25184588_30180.cpp:35:15: error: 'ls' was not declared in this scope
         query(ls[rt], l, mid, L, R, x);
               ^
0_0_25184588_30180.cpp:38:15: error: 'rs' was not declared in this scope
         query(rs[rt], mid + 1, r, L, R, x);
               ^
0_0_25184588_30180.cpp: In function 'void init()':
0_0_25184588_30180.cpp:43:12: error: 'ls' was not declared in this scope
     memset(ls, 0, sizeof(ls));
            ^
0_0_25184588_30180.cpp:44:12: error: 'rs' was not declared in this scope
     memset(rs, 0, sizeof(rs));
            ^
0_0_25184588_30180.cpp:46:12: error: 'fa' was not declared in this scope
     memset(fa, 0, sizeof(fa));
            ^
0_0_25184588_30180.cpp:47:5: error: 'tsize' was not declared in this scope
     tsize = 0;
     ^
0_0_25184588_30180.cpp: In function 'int main()':
0_0_25184588_30180.cpp:58:17: error: 'fa' was not declared in this scope
                 fa[i] = 0;
                 ^
0_0_25184588_30180.cpp:60:33: error: 'tsize' was not declared in this scope
             for(int i = 0; i <= tsize; i++){
                                 ^
0_0_25184588_30180.cpp:61:17: error: 'ls' was not declared in this scope
                 ls[i] = rs[i] = 0;
                 ^
0_0_25184588_30180.cpp:61:25: error: 'rs' was not declared in this scope
                 ls[i] = rs[i] = 0;
                         ^
0_0_25184588_30180.cpp:63:13: error: 'tsize' was not declared in this scope
             tsize = 0;
             ^
0_0_25184588_30180.cpp:66:17: error: 'fa' was not declared in this scope
             add(fa[c], 1, MX, y, x);
                 ^
0_0_25184588_30180.cpp:72:23: error: 'fa' was not declared in this scope
                 query(fa[i], 1, MX, y, y2, x);
                       ^


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 07:20:36, Gzip enabled