ho_t1.cpp: In function 'int main()':
ho_t1.cpp:41:23: error: 'ii {aka struct std::pair<int, int>}' has no member named 'X'
scanf("%d", &arr[i].X);
^
ho_t1.cpp:42:10: error: 'ii {aka struct std::pair<int, int>}' has no member named 'Y'
arr[i].Y = i;
^
ho_t1.cpp:53:21: error: 'ii {aka struct std::pair<int, int>}' has no member named 'X'
cur[i-1] = arr[i].X;
^
ho_t1.cpp:60:33: error: expected ')' before ']' token
bst.erase(bst.find(cur[i]-b[i]]));
^
ho_t1.cpp:61:19: error: 'ii {aka struct std::pair<int, int>}' has no member named 'X'
cur[i] = arr[i].X;
^
ho_t1.cpp:38:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int n; scanf("%d", &n);
~~~~~^~~~~~~~~~
ho_t1.cpp:47:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
~~~~~^~~~~~~~~~~~~