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_29013107_8288.cpp: In function 'void build(int, int, int)':
0_0_29013107_8288.cpp:9:8: error: expected primary-expression before ')' token
     if()
        ^
0_0_29013107_8288.cpp:10:1: error: expected primary-expression before '}' token
 }
 ^
0_0_29013107_8288.cpp: In function 'void q(int, int, int, int, int)':
0_0_29013107_8288.cpp:16:22: error: return-statement with a value, in function returning 'void' [-fpermissive]
         return sum[rt];
                      ^
0_0_29013107_8288.cpp:19:16: error: invalid operands of types 'int' and 'void' to binary 'operator+'
     if(L<=m)ans+=q(l,m,rt<<1  ,L,R);
                ^
0_0_29013107_8288.cpp:19:16: error:   in evaluation of 'operator+=(int, void)'
0_0_29013107_8288.cpp:20:16: error: invalid operands of types 'int' and 'void' to binary 'operator+'
     if(R> m)ans+=q(m+1,r,rt<<1|1,L,R);
                ^
0_0_29013107_8288.cpp:20:16: error:   in evaluation of 'operator+=(int, void)'
0_0_29013107_8288.cpp:21:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return ans;
            ^
0_0_29013107_8288.cpp: In function 'int main()':
0_0_29013107_8288.cpp:29:25: error: 'stdin' was not declared in this scope
     freopen("i.txt","r",stdin);
                         ^
0_0_29013107_8288.cpp:29:30: error: 'freopen' was not declared in this scope
     freopen("i.txt","r",stdin);
                              ^
0_0_29013107_8288.cpp:31:11: error: 'cin' was not declared in this scope
     while(cin>>n>>m)
           ^


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-29 03:10:23, Gzip enabled