/in/foo.cc: In function 'int main()':
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d%d",&c,&n);
^
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:7:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
for (i=1;i<=n;i++) scanf("%d",&v[i]);
^
/in/foo.cc:10:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d",n-f[c]);
^