/ Vijos /

记录详情

Runtime Error

/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++)
                    ^
# 状态 耗时 内存占用
#1 Runtime Error 123ms 15.625 MiB
#2 Runtime Error 145ms 15.625 MiB
#3 Runtime Error 125ms 15.625 MiB
#4 Runtime Error 125ms 15.719 MiB
#5 Runtime Error 116ms 15.625 MiB
#6 Runtime Error 143ms 15.707 MiB
#7 Runtime Error 102ms 15.73 MiB
#8 Runtime Error 139ms 15.625 MiB
#9 Runtime Error 96ms 15.625 MiB
#10 Runtime Error 92ms 15.715 MiB

信息

递交者
类型
递交
题目
P2013 数字表格
语言
C++
递交时间
2018-03-26 10:26:12
评测时间
2018-03-26 10:26:12
评测机
分数
0
总耗时
1210ms
峰值内存
15.73 MiB