0_0_34724149_19554.cpp:6:1: error: 'int64' does not name a type
int64 c[1000005]; //树状数组
^
0_0_34724149_19554.cpp:10:1: error: 'int64' does not name a type
int64 ans[1000005]; //记录结果;
^
0_0_34724149_19554.cpp: In function 'void update(int, int)':
0_0_34724149_19554.cpp:32:9: error: 'c' was not declared in this scope
c[n]+=x;
^
0_0_34724149_19554.cpp: At global scope:
0_0_34724149_19554.cpp:36:1: error: 'int64' does not name a type
int64 getsum(int m)
^
0_0_34724149_19554.cpp: In function 'int main()':
0_0_34724149_19554.cpp:54:16: error: 'c' was not declared in this scope
memset(c,0,sizeof(c));
^
0_0_34724149_19554.cpp:79:13: error: 'ans' was not declared in this scope
ans[f[i].num]=getsum(f[i].r)-getsum(f[i].l-1);
^
0_0_34724149_19554.cpp:79:40: error: 'getsum' was not declared in this scope
ans[f[i].num]=getsum(f[i].r)-getsum(f[i].l-1);
^
0_0_34724149_19554.cpp:83:30: error: 'ans' was not declared in this scope
printf("%I64d\n",ans[i]);
^
|