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_24955119_7471.cpp: In function 'int main()':
0_0_24955119_7471.cpp:20:40: error: invalid types 'int[int]' for array subscript
                 scanf("%d",&rmq[i][j][0][0]);
                                        ^
0_0_24955119_7471.cpp:26:32: error: invalid types 'int[int]' for array subscript
                     rmq[i][j][0][l]=max(rmq[i][j][0][l-1],rmq[i][j+(1<<(l-1))][0][l-1]);
                                ^
0_0_24955119_7471.cpp:26:52: error: invalid types 'int[int]' for array subscript
                     rmq[i][j][0][l]=max(rmq[i][j][0][l-1],rmq[i][j+(1<<(l-1))][0][l-1]);
                                                    ^
0_0_24955119_7471.cpp:26:81: error: invalid types 'int[int]' for array subscript
                     rmq[i][j][0][l]=max(rmq[i][j][0][l-1],rmq[i][j+(1<<(l-1))][0][l-1]);
                                                                                 ^
0_0_24955119_7471.cpp:30:32: error: invalid types 'int[int]' for array subscript
                     rmq[i][j][k][0]=max(rmq[i][j][k-1][0],rmq[i+(1<<(k-1))][j][k-1][0]);
                                ^
0_0_24955119_7471.cpp:30:54: error: invalid types 'int[int]' for array subscript
                     rmq[i][j][k][0]=max(rmq[i][j][k-1][0],rmq[i+(1<<(k-1))][j][k-1][0]);
                                                      ^
0_0_24955119_7471.cpp:30:83: error: invalid types 'int[int]' for array subscript
                     rmq[i][j][k][0]=max(rmq[i][j][k-1][0],rmq[i+(1<<(k-1))][j][k-1][0]);
                                                                                   ^
0_0_24955119_7471.cpp:39:36: error: invalid types 'int[int]' for array subscript
                         rmq[i][j][k][l]=max(rmq[i][j][k-1][l-1],max(rmq[i+(1<<(k-1))][j][k-1][l-1],max(rmq[i][j+(1<<(l-1))][k-1][l-1],rmq[i+(1<<(k-1))][j+(1<<(l-1))][k-1][l-1])));
                                    ^
0_0_24955119_7471.cpp:39:58: error: invalid types 'int[int]' for array subscript
                         rmq[i][j][k][l]=max(rmq[i][j][k-1][l-1],max(rmq[i+(1<<(k-1))][j][k-1][l-1],max(rmq[i][j+(1<<(l-1))][k-1][l-1],rmq[i+(1<<(k-1))][j+(1<<(l-1))][k-1][l-1])));
                                                          ^
0_0_24955119_7471.cpp:39:93: error: invalid types 'int[int]' for array subscript
                         rmq[i][j][k][l]=max(rmq[i][j][k-1][l-1],max(rmq[i+(1<<(k-1))][j][k-1][l-1],max(rmq[i][j+(1<<(l-1))][k-1][l-1],rmq[i+(1<<(k-1))][j+(1<<(l-1))][k-1][l-1])));
                                                                                             ^
0_0_24955119_7471.cpp:39:128: error: invalid types 'int[int]' for array subscript
                         rmq[i][j][k][l]=max(rmq[i][j][k-1][l-1],max(rmq[i+(1<<(k-1))][j][k-1][l-1],max(rmq[i][j+(1<<(l-1))][k-1][l-1],rmq[i+(1<<(k-1))][j+(1<<(l-1))][k-1][l-1])));
                                                                                                                                ^
0_0_24955119_7471.cpp:39:170: error: invalid types 'int[int]' for array subscript
                         rmq[i][j][k][l]=max(rmq[i][j][k-1][l-1],max(rmq[i+(1<<(k-1))][j][k-1][l-1],max(rmq[i][j+(1<<(l-1))][k-1][l-1],rmq[i+(1<<(k-1))][j+(1<<(l-1))][k-1][l-1])));
                                                                                                                                                                          ^
0_0_24955119_7471.cpp:52:32: error: invalid types 'int[int]' for array subscript
             l=max(rmq[x1][y1][j][k],max(rmq[x2-(1<<j)+1][y1][j][k],max(rmq[x1][y2-(1<<k)+1][j][k],rmq[x2-(1<<j)+1][y2-(1<<k)+1][j][k])));
                                ^
0_0_24955119_7471.cpp:52:63: error: invalid types 'int[int]' for array subscript
             l=max(rmq[x1][y1][j][k],max(rmq[x2-(1<<j)+1][y1][j][k],max(rmq[x1][y2-(1<<k)+1][j][k],rmq[x2-(1<<j)+1][y2-(1<<k)+1][j][k])));
                                                               ^
0_0_24955119_7471.cpp:52:94: error: invalid types 'int[int]' for array subscript
             l=max(rmq[x1][y1][j][k],max(rmq[x2-(1<<j)+1][y1][j][k],max(rmq[x1][y2-(1<<k)+1][j][k],rmq[x2-(1<<j)+1][y2-(1<<k)+1][j][k])));
                                                                                              ^
0_0_24955119_7471.cpp:52:130: error: invalid types 'int[int]' for array subscript
             l=max(rmq[x1][y1][j][k],max(rmq[x2-(1<<j)+1][y1][j][k],max(rmq[x1][y2-(1<<k)+1][j][k],rmq[x2-(1<<j)+1][y2-(1<<k)+1][j][k])));
                                                                                                                                  ^
0_0_24955119_7471.cpp:54:29: error: invalid types 'int[int]' for array subscript
             if(rmq[x1][y1][0][0]==l||rmq[x1][y2][0][0]==l||rmq[x2][y1][0][0]==l||rmq[x2][y2][0][0]==l)
                             ^
0_0_24955119_7471.cpp:54:51: error: invalid types 'int[int]' for array subscript
             if(rmq[x1][y1][0][0]==l||rmq[x1][y2][0][0]==l||rmq[x2][y1][0][0]==l||rmq[x2][y2][0][0]==l)
                                                   ^
0_0_24955119_7471.cpp:54:73: error: invalid types 'int[int]' for array subscript
             if(rmq[x1][y1][0][0]==l||rmq[x1][y2][0][0]==l||rmq[x2][y1][0][0]==l||rmq[x2][y2][0][0]==l)
                                                                         ^
0_0_24955119_7471.cpp:54:95: error: invalid types 'int[int]' for array subscript
             if(rmq[x1][y1][0][0]==l||rmq[x1][y2][0][0]==l||rmq[x2][y1][0][0]==l||rmq[x2][y2][0][0]==l)
                                                                                               ^


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-26 12:41:05, Gzip enabled