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_30212748_24073.cpp: In function 'int Cal(int, int)':
0_0_30212748_24073.cpp:67:16: error: invalid types 'int[int]' for array subscript
   ans=query(t[l],t[r+1],1,n,sum/2);
                ^
0_0_30212748_24073.cpp:67:23: error: invalid types 'int[int]' for array subscript
   ans=query(t[l],t[r+1],1,n,sum/2);
                       ^
0_0_30212748_24073.cpp:67:33: error: invalid operands of types 'int [6015000]' and 'int' to binary 'operator/'
   ans=query(t[l],t[r+1],1,n,sum/2);
                                 ^
0_0_30212748_24073.cpp:69:21: error: invalid types 'int[int]' for array subscript
  else  ans=query(t[l],t[r+1],1,n,(sum+1)/2);
                     ^
0_0_30212748_24073.cpp:69:28: error: invalid types 'int[int]' for array subscript
  else  ans=query(t[l],t[r+1],1,n,(sum+1)/2);
                            ^
0_0_30212748_24073.cpp:69:42: error: invalid operands of types 'int*' and 'int' to binary 'operator/'
  else  ans=query(t[l],t[r+1],1,n,(sum+1)/2);
                                          ^
0_0_30212748_24073.cpp: In function 'int main()':
0_0_30212748_24073.cpp:92:31: error: too many arguments to function 'int Insert(int, int, int, int)'
     T[i]=Insert(T[i+1],1,n,i,1);
                               ^
0_0_30212748_24073.cpp:23:5: note: declared here
 int Insert(int pre,int l,int r,int mark)
     ^


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-20 14:59:18, Gzip enabled