0_0_15054581_22497.cpp:9:9: error: 'N' was not declared in this scope
int arr[N];
^
0_0_15054581_22497.cpp:12:4: error: 'N' was not declared in this scope
}s[N*2];
^
0_0_15054581_22497.cpp: In function 'void tree_build(int, int, int)':
0_0_15054581_22497.cpp:15:5: error: 's' was not declared in this scope
s[i].left=left;
^
0_0_15054581_22497.cpp:18:18: error: 'arr' was not declared in this scope
s[i].sum=arr[right];
^
0_0_15054581_22497.cpp: In function 'void tree_a(int, int, int)':
0_0_15054581_22497.cpp:27:8: error: 's' was not declared in this scope
if(s[i].left == id&&id==s[i].right){
^
0_0_15054581_22497.cpp:32:20: error: 's' was not declared in this scope
int mid = (s[i].left+s[i].right)/2;
^
0_0_15054581_22497.cpp: In function 'int tree_q(int, int, int)':
0_0_15054581_22497.cpp:40:8: error: 's' was not declared in this scope
if(s[i].left == left && s[i].right == right) return s[i].sum;
^
0_0_15054581_22497.cpp:41:12: error: 's' was not declared in this scope
mid = (s[i].left + s[i].right)/2;
^
0_0_15054581_22497.cpp: In function 'int main()':
0_0_15054581_22497.cpp:53:15: error: 'arr' was not declared in this scope
s(arr[i]);
^
0_0_15054581_22497.cpp:4:26: note: in definition of macro 's'
#define s(a) scanf("%d",&a)
^
|