0_0_22617020_22409.cpp: In function 'int query(int, int, int, int, int)':
0_0_22617020_22409.cpp:36:19: error: 'val' was not declared in this scope
sum[i] += val;
^
0_0_22617020_22409.cpp:37:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
return ;
^
0_0_22617020_22409.cpp:41:8: error: 'id' was not declared in this scope
if(id <= m) update(id, val, lson);
^
0_0_22617020_22409.cpp:41:28: error: 'val' was not declared in this scope
if(id <= m) update(id, val, lson);
^
0_0_22617020_22409.cpp:41:37: error: 'update' was not declared in this scope
if(id <= m) update(id, val, lson);
^
0_0_22617020_22409.cpp:42:21: error: 'val' was not declared in this scope
else update(id, val, rson);
^
0_0_22617020_22409.cpp:42:30: error: 'update' was not declared in this scope
else update(id, val, rson);
^
0_0_22617020_22409.cpp: In function 'int main()':
0_0_22617020_22409.cpp:64:56: error: 'update' was not declared in this scope
else if(str[0] == 'A') update(u, v, 1, 1, n);
^
0_0_22617020_22409.cpp:65:39: error: 'update' was not declared in this scope
else update(u, -v, 1, 1, n);
^
|