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);
^
|