0_0_29576890_23308.cpp: In function 'int main()':
0_0_29576890_23308.cpp:93:12: error: 'n' was not declared in this scope
cin >> n;
^
0_0_29576890_23308.cpp:94:41: error: 'a' was not declared in this scope
for (int i = 1; i <= n; i++) cin >> a[i];
^
0_0_29576890_23308.cpp:97:15: error: 'a' was not declared in this scope
int k = a[i] - a[i - 1];
^
0_0_29576890_23308.cpp:98:7: error: 'ans' was not declared in this scope
ans[i] = query(1, n, 1, i - k);
^
0_0_29576890_23308.cpp:101:41: error: 'ans' was not declared in this scope
for (int i = 1; i < n; i++) cout << ans[i] << " ";
^
0_0_29576890_23308.cpp:102:13: error: 'ans' was not declared in this scope
cout << ans[n] << endl;
^
|