/in/foo.cc: In function 'int main()':
/in/foo.cc:33:29: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d%I64d", &n, &m);
^
/in/foo.cc:33:29: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:38:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%I64d\n", ans);
^
/in/foo.cc: In function 'void init()':
/in/foo.cc:23:14: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations]
fib[i][j] = f[gcd(i, j)];
~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:22:21: note: within this loop
for (int j = 1; j <= MAXN; j++)
^
/in/foo.cc:19:8: warning: iteration 1010023 invokes undefined behavior [-Waggressive-loop-optimizations]
f[i] = (f[i - 1] + f[i - 2]) % CA;
^
/in/foo.cc:18:20: note: within this loop
for (int i = 2; i <= MAXN * MAXN; i++)
^