0_0_25602598_13911.cpp:5:9: error: '__int64_t' does not name a type
typedef __int64_t ll;
^
0_0_25602598_13911.cpp:10:1: error: 'll' does not name a type
ll ans[maxM];
^
0_0_25602598_13911.cpp:26:1: error: 'll' does not name a type
ll tree[maxN];
^
0_0_25602598_13911.cpp: In function 'void update(int, int, int)':
0_0_25602598_13911.cpp:32:5: error: 'tree' was not declared in this scope
tree[curl] += value;
^
0_0_25602598_13911.cpp: At global scope:
0_0_25602598_13911.cpp:37:1: error: 'll' does not name a type
ll getSum(int curl)
^
0_0_25602598_13911.cpp: In function 'int main()':
0_0_25602598_13911.cpp:75:12: error: 'tree' was not declared in this scope
memset(tree,0,sizeof(tree));
^
0_0_25602598_13911.cpp:108:9: error: 'ans' was not declared in this scope
ans[asks[i].id] = getSum(asks[i].r) - getSum(asks[i].l - 1);
^
0_0_25602598_13911.cpp:108:43: error: 'getSum' was not declared in this scope
ans[asks[i].id] = getSum(asks[i].r) - getSum(asks[i].l - 1);
^
0_0_25602598_13911.cpp:113:25: error: 'ans' was not declared in this scope
printf("%lld\n",ans[i]);
^
|