/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void calm()':
/in/foo.cc:6:25: warning: array subscript is above array bounds [-Warray-bounds]
 #define a4 f[cod][odd][4]
            ~~~~~~~~~~~~~^
/in/foo.cc:19:65: note: in expansion of macro 'a4'
         s = ( s+ (a1 *i)%p*num[i] + (a2 *num[i])%p + (a3*i)%p + a4)%p;
                                                                 ^~
/in/foo.cc:6:25: warning: array subscript is above array bounds [-Warray-bounds]
 #define a4 f[cod][odd][4]
            ~~~~~~~~~~~~~^
/in/foo.cc:24:15: note: in expansion of macro 'a4'
         a4 = (a4+i*num[i])%p;
               ^~
/in/foo.cc:6:25: warning: array subscript is above array bounds [-Warray-bounds]
 #define a4 f[cod][odd][4]
            ~~~~~~~~~~~~~^
/in/foo.cc:24:9: note: in expansion of macro 'a4'
         a4 = (a4+i*num[i])%p;
         ^~
# 状态 耗时 内存占用
#1 Accepted 4ms 3.25 MiB
#2 Accepted 3ms 3.324 MiB
#3 Accepted 6ms 3.375 MiB
#4 Accepted 7ms 3.875 MiB
#5 Accepted 23ms 3.914 MiB
#6 Accepted 34ms 4.0 MiB
#7 Accepted 24ms 4.0 MiB
#8 Accepted 26ms 3.875 MiB
#9 Accepted 21ms 4.086 MiB
#10 Accepted 27ms 4.125 MiB

信息

递交者
类型
递交
题目
P1976 求和
语言
C++
递交时间
2017-05-13 09:22:12
评测时间
2017-05-13 09:22:12
评测机
分数
100
总耗时
180ms
峰值内存
4.125 MiB