/in/foo.cc: In function 'int main()':
/in/foo.cc:68:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d%d",&n,&c);
^
/in/foo.cc:68:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:69:41: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
for (int i=1;i<n;i++) scanf("%d",&ans[i]);
^
/in/foo.cc:80:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (i>c&&f!=ans[i]||f%i!=ans[i]) //优化三
~~~^~~~~~~~~~~
/in/foo.cc:89:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d %d %d\n",x,a,b);
^
/in/foo.cc:89:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
/in/foo.cc:89:26: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]