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_16249048_27165.cpp:5:1: error: 'constint' does not name a type
 constint maxn =55555;
 ^
0_0_16249048_27165.cpp:6:9: error: 'maxn' was not declared in this scope
 int sum[maxn<<2];
         ^
0_0_16249048_27165.cpp: In function 'void PushUP(int)':
0_0_16249048_27165.cpp:8:2: error: 'sum' was not declared in this scope
  sum[rt]= sum[rt<<1]+ sum[rt<<1|1];
  ^
0_0_16249048_27165.cpp: In function 'void build(int, int, int)':
0_0_16249048_27165.cpp:12:15: error: 'sum' was not declared in this scope
   scanf("%d",&sum[rt]);
               ^
0_0_16249048_27165.cpp: In function 'void update(int, int, int, int, int)':
0_0_16249048_27165.cpp:22:3: error: 'sum' was not declared in this scope
   sum[rt]+= add;
   ^
0_0_16249048_27165.cpp: In function 'int query(int, int, int, int, int)':
0_0_16249048_27165.cpp:32:10: error: 'sum' was not declared in this scope
   return sum[rt];
          ^
0_0_16249048_27165.cpp: In function 'int main()':
0_0_16249048_27165.cpp:53:21: error: 'elseif' was not declared in this scope
    elseif(op[0]=='S') update(a , -b , 1 , n , 1);
                     ^
0_0_16249048_27165.cpp:54:4: error: 'else' without a previous 'if'
    else update(a , b , 1 , n , 1);
    ^
0_0_16249048_27165.cpp:57:2: error: 'return0' was not declared in this scope
  return0;
  ^


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-17 02:00:40, Gzip enabled