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_28590002_32501.cpp: In function 'll query(ll, ll, ll, ll, ll)':
0_0_28590002_32501.cpp:29:69: error: invalid operands of types 'll {aka long long int}' and 'll [400400] {aka long long int [400400]}' to binary 'operator-'
     else if(num[rt<<1]<l) return query(rt<<1,mid+1,R,l-num[rt<<1],r-num   rt<<1]);
                                                                     ^
0_0_28590002_32501.cpp:29:80: error: expected ';' before ']' token
     else if(num[rt<<1]<l) return query(rt<<1,mid+1,R,l-num[rt<<1],r-num   rt<<1]);
                                                                                ^
0_0_28590002_32501.cpp:29:80: error: expected primary-expression before ']' token
0_0_28590002_32501.cpp:30:5: error: 'else' without a previous 'if'
     else return (query(rt<<1,L,mid,l,num[rt<<1])+query(rt<<1|1,mid+1,R,1,r-num[rt<<1]))%mod;
     ^
0_0_28590002_32501.cpp: In function 'int main()':
0_0_28590002_32501.cpp:43:5: error: expected ',' or ';' before 'for'
     for(int i=0;i<cnt2;i++){
     ^
0_0_28590002_32501.cpp:43:17: error: 'i' was not declared in this scope
     for(int i=0;i<cnt2;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-26 12:14:36, Gzip enabled