记录详情

Accepted

foo.c: In function 'main':
foo.c:20:25: warning: iteration 9998 invokes undefined behavior [-Waggressive-loop-optimizations]
   20 |                 xulie[i]=0;
      |                 ~~~~~~~~^~
foo.c:19:18: note: within this loop
   19 |         for(i=2;i<=10000;i++)
      |                 ~^~~~~~~
foo.c:38:29: warning: iteration 9998 invokes undefined behavior [-Waggressive-loop-optimizations]
   38 |                 if(max<xulie[i])
      |                        ~~~~~^~~
foo.c:36:18: note: within this loop
   36 |         for(i=2;i<=10000;i++)
      |                 ~^~~~~~~
foo.c:43:30: warning: iteration 9998 invokes undefined behavior [-Waggressive-loop-optimizations]
   43 |                 if(max==xulie[i])
      |                         ~~~~~^~~
foo.c:41:18: note: within this loop
   41 |         for(i=2;i<=10000;i++)
      |                 ~^~~~~~~
foo.c:20:25: warning: '__builtin_memset' forming offset [40000, 40003] is out of the bounds [0, 40000] of object 'xulie' with type 'int[10000]' [-Warray-bounds]
   20 |                 xulie[i]=0;
      |                 ~~~~~~~~^~
foo.c:17:15: note: 'xulie' declared here
   17 |         int x,xulie[10000],i,max=0;
      |               ^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 284.0 KiB
#2 Accepted 3ms 284.0 KiB
#3 Accepted 3ms 328.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Accepted 2ms 284.0 KiB

信息

递交者
类型
递交
题目
5-5 统计素数因子
比赛
2023 程序设计与竞赛(作业3:中秋和国庆)
语言
C
递交时间
2023-10-01 16:30:42
评测时间
2023-10-01 16:30:42
评测机
分数
100
总耗时
15ms
峰值内存
328.0 KiB