Arcade.cpp: In function 'int main()':
Arcade.cpp:22:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == LIS.size()) LIS.emplace_back(A[i].second);
~~~~^~~~~~~~~~~~~
Arcade.cpp:11:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &N);
~~~~~^~~~~~~~~~~~~~~~~
Arcade.cpp:12:36: 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("%d", &T[i]);
~~~~~^~~~~~~~~~~~~
Arcade.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &P[i]);
~~~~~^~~~~~~~~~~~~