/in/foo.cc: In function 'int main()':
/in/foo.cc:15:20: warning: format '%u' expects argument of type 'unsigned int*', but argument 2 has type 'long long unsigned int*' [-Wformat=]
scanf("%u%u",&N,&K);
^
/in/foo.cc:15:20: warning: format '%u' expects argument of type 'unsigned int*', but argument 3 has type 'long long unsigned int*' [-Wformat=]
/in/foo.cc:16:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=N;++i)
~^~~
/in/foo.cc:18:21: warning: format '%u' expects argument of type 'unsigned int*', but argument 2 has type 'long long unsigned int*' [-Wformat=]
scanf("%u",&arr[i]);
^
/in/foo.cc:36:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int l=1;l<=N;++l)
~^~~
/in/foo.cc:40:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int r=l;r<=N;++r)
~^~~
/in/foo.cc:49:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if( tmp >= 1 && tmp <= cnt)
~~~~^~~~~~
/in/foo.cc:72:17: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
printf("%u",ant);
^