triusis.cpp: In function 'int main()':
triusis.cpp:23:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == LIS.size()) LIS.emplace_back(A[i]);
~~~~^~~~~~~~~~~~~
triusis.cpp:27:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<long long int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", N - LIS.size());
~~~~~~~~~~~~~~^
triusis.cpp:9:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %lld", &N, &M);
~~~~~^~~~~~~~~~~~~~~~~~~
triusis.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &A[i]);
~~~~~^~~~~~~~~~~~~~~