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_23543711_18953.cpp:6:1: error: 'll' does not name a type
 ll c[3][MAXN],ans;
 ^
0_0_23543711_18953.cpp:7:1: error: 'll' does not name a type
 ll sum(int i,int x)
 ^
0_0_23543711_18953.cpp:13:22: error: 'll' has not been declared
 void add(int i,int x,ll v)
                      ^
0_0_23543711_18953.cpp: In function 'void add(int, int, int)':
0_0_23543711_18953.cpp:15:30: error: 'c' was not declared in this scope
     for (;x<=MAXN;x+=x&(-x)) c[i][x]+=v;
                              ^
0_0_23543711_18953.cpp: In function 'int main()':
0_0_23543711_18953.cpp:20:16: error: 'c' was not declared in this scope
         memset(c,0,sizeof(c));
                ^
0_0_23543711_18953.cpp:25:13: error: 'll' was not declared in this scope
             ll temp1=sum(1,MAXN)-sum(1,x);
             ^
0_0_23543711_18953.cpp:26:16: error: expected ';' before 'temp2'
             ll temp2=sum(2,MAXN)-sum(2,x);
                ^
0_0_23543711_18953.cpp:27:13: error: 'ans' was not declared in this scope
             ans += temp1*x+temp2;
             ^
0_0_23543711_18953.cpp:27:20: error: 'temp1' was not declared in this scope
             ans += temp1*x+temp2;
                    ^
0_0_23543711_18953.cpp:27:28: error: 'temp2' was not declared in this scope
             ans += temp1*x+temp2;
                            ^
0_0_23543711_18953.cpp:31:26: error: 'ans' was not declared in this scope
         printf("%I64d\n",ans);
                          ^


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-30 08:49:12, Gzip enabled