ho_t1.cpp: In function 'int main()':
ho_t1.cpp:13:47: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'std::pair<int, int>*' [-Wformat=]
for(int i=1;i<=n+1;i++){scanf("%i",&inp[i]);inp[i].second=i;}
~~~~~~~^
ho_t1.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i",&n);
~~~~~^~~~~~~~~
ho_t1.cpp:13:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=n+1;i++){scanf("%i",&inp[i]);inp[i].second=i;}
~~~~~^~~~~~~~~~~~~~
ho_t1.cpp:14:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=n;i++)scanf("%i",&other[i]);
~~~~~^~~~~~~~~~~~~~~~