0_0_30929066_27915.cpp: In function 'void Build(int, int, int)':
0_0_30929066_27915.cpp:13:22: error: 'sorted' was not declared in this scope
if (tree[dep][i] < sorted[mid]) same--;
^
0_0_30929066_27915.cpp:17:22: error: 'sorted' was not declared in this scope
if (tree[dep][i] < sorted[mid]) tree[dep + 1][lpos++] = tree[dep][i];
^
0_0_30929066_27915.cpp: In function 'int Query(int, int, int, int, int, int)':
0_0_30929066_27915.cpp:28:14: error: return-statement with no value, in function returning 'int' [-fpermissive]
if (l == r) return ;
^
0_0_30929066_27915.cpp: In function 'int main()':
0_0_30929066_27915.cpp:37:17: error: 'sorted' was not declared in this scope
scanf("%d", &sorted[i]);
^
0_0_30929066_27915.cpp:45:42: error: expected ')' before ';' token
printf("%d\n", Query(1, n, l, r, 0, k);
^
|