/in/foo.cc: In function 'int main()':
/in/foo.cc:17: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:17:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:18: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:28:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 if (i>c&&f!=ans[i]||f%i!=ans[i])
     ~~~^~~~~~~~~~~
/in/foo.cc:37: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:37:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
/in/foo.cc:37:26: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]