/in/foo.cc: In function 'int main()':
/in/foo.cc:65:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d%d", &n, &c);
^
/in/foo.cc:65:22: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:69:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d", &ans[i]);
^
/in/foo.cc:85:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (i > c && f != ans[i] || f % i != ans[i]) { //???
~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:94:35: 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:94:35: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
/in/foo.cc:94:35: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]