ho_t1.cpp: In function 'int main()':
ho_t1.cpp:16:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n+1;i++)printf("%i ",c[i]);printf("\n");
^~~
ho_t1.cpp:16:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=1;i<=n+1;i++)printf("%i ",c[i]);printf("\n");
^~~~~~
ho_t1.cpp:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i",&n);
~~~~~^~~~~~~~~
ho_t1.cpp:10:48: 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",&a[i].first),a[i].second=i;
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
ho_t1.cpp:11:28: 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",&b[i]);
~~~~~^~~~~~~~~~~~