记录详情

Runtime Error

/in/foo.cc: In function 'void tree_dp(long long int, long long int)':
/in/foo.cc:53:42: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
             dp[from][(j+val)%7]+=dp[to][j];
                                  ~~~~~~~~^
/in/foo.cc:11:42: note: within this loop
 #define rep(i,s,e) for(register int i=s;i<=e;++i)
                                           
/in/foo.cc:52:13:
         rep(j,0,6)
             ~~~~~                         
/in/foo.cc:52:9: note: in expansion of macro 'rep'
         rep(j,0,6)
         ^~~
/in/foo.cc:51:26: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
             ans+=dp[to][j]*dp[from][((-j-val)%7+7)%7]*6;
                  ~~~~~~~~^
/in/foo.cc:11:42: note: within this loop
 #define rep(i,s,e) for(register int i=s;i<=e;++i)
                                           
/in/foo.cc:50:13:
         rep(j,0,6)
             ~~~~~                         
/in/foo.cc:50:9: note: in expansion of macro 'rep'
         rep(j,0,6)
         ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 208.0 KiB
#2 Wrong Answer 1ms 228.0 KiB
#3 Wrong Answer 1ms 216.0 KiB
#4 Wrong Answer 2ms 872.0 KiB
#5 Wrong Answer 3ms 860.0 KiB
#6 Wrong Answer 3ms 868.0 KiB
#7 Runtime Error 4ms 1.363 MiB
#8 Runtime Error 4ms 1.277 MiB
#9 Runtime Error 4ms 1.273 MiB
#10 Runtime Error 4ms 1.371 MiB

信息

递交者
类型
递交
题目
P1021 幸运七
语言
C++
递交时间
2020-08-07 13:40:05
评测时间
2020-08-07 13:40:05
评测机
分数
0
总耗时
32ms
峰值内存
1.371 MiB