/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int newnode(int)':
/in/foo.cc:18:9: warning: operation on 'tot' may be undefined [-Wsequence-point]
     val[++tot] = Hash[tot] = v * Pow[1]; size[tot] = 1; pri[tot] = rand();
         ^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:89:43: warning: iteration 100003 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(int i = 2; i <= maxn; ++i) Pow[i] = Pow[i - 1] * base;
                                    ~~~~~~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc:89:22: note: within this loop
     for(int i = 2; i <= maxn; ++i) Pow[i] = Pow[i - 1] * base;
                    ~~^~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 5ms 3.051 MiB
#2 Wrong Answer 10ms 3.055 MiB
#3 Wrong Answer 34ms 1.312 MiB
#4 Runtime Error 21ms 12.316 MiB
#5 Runtime Error 4ms 3.301 MiB
#6 Runtime Error 3ms 3.18 MiB
#7 Runtime Error 3ms 3.43 MiB
#8 Runtime Error 3ms 3.305 MiB
#9 Runtime Error 3ms 3.316 MiB
#10 Runtime Error 3ms 3.176 MiB

信息

递交者
类型
递交
题目
P2027 佳佳的字符串
比赛
金秋重聚模拟赛
语言
C++
递交时间
2017-10-07 20:35:51
评测时间
2017-10-07 20:35:51
评测机
分数
0
总耗时
93ms
峰值内存
12.316 MiB