记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:22:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |                 if(a[j]<0&&a[i]>=0||a[j]>=0&&a[i]<0){
      |                    ~~~~~~^~~~~~~~~
foo.cc:10:48: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations]
   10 |                 for(int i=1;i<=100005;i++) g[i]=0;
      |                                            ~~~~^~
foo.cc:10:30: note: within this loop
   10 |                 for(int i=1;i<=100005;i++) g[i]=0;
      |                             ~^~~~~~~~
foo.cc:10:48: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [800040, 800047] is out of the bounds [0, 800040] of object 'g' with type 'long long int [100005]' [-Warray-bounds]
   10 |                 for(int i=1;i<=100005;i++) g[i]=0;
      |                                            ~~~~^~
foo.cc:5:11: note: 'g' declared here
    5 | long long g[100005];
      |           ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 57, expect 158. 5ms 1.152 MiB
#2 Wrong Answer Read 68, expect 296. 4ms 1.152 MiB
#3 Time Exceeded ≥1101ms ≥1.703 MiB
#4 Time Exceeded ≥1100ms ≥1.594 MiB
#5 Runtime Error Segmentation fault 36ms 1.91 MiB
#6 Wrong Answer Read -4589056820, expect 18258789261. 312ms 1.195 MiB
#7 Wrong Answer Read 1068585003, expect 1449582277. 576ms 1.152 MiB
#8 Wrong Answer Read -2695965464, expect 3538189524. 342ms 1.176 MiB
#9 Wrong Answer Read 1171598781, expect 2757803495. 255ms 1.172 MiB
#10 Wrong Answer Read 397401111, expect 503328993. 369ms 1.152 MiB

信息

递交者
类型
递交
题目
P1507 3. Concate and count
比赛
2023秋 苏州青少年科技馆(吴江计算机协会)CSP-J/S模拟赛(1)
语言
C++
递交时间
2023-10-07 20:52:01
评测时间
2023-10-07 20:52:01
评测机
分数
0
总耗时
4105ms
峰值内存
1.91 MiB