Runtime Error

foo.cc: In function 'bool f(int)':
foo.cc:14:1: warning: control reaches end of non-void function [-Wreturn-type]
   14 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:26:21: warning: iteration 10004 invokes undefined behavior [-Waggressive-loop-optimizations]
   26 |                 if(f(a[i])==false)
      |                    ~^~~~~~
foo.cc:24:22: note: within this loop
   24 |         for(int i=1;i<=10005;i++)
      |                     ~^~~~~~~
foo.cc:33:23: warning: iteration 10004 invokes undefined behavior [-Waggressive-loop-optimizations]
   33 |                 if(a[i]>=m)
      |                    ~~~^
foo.cc:31:22: note: within this loop
   31 |         for(int i=1;i<=10005;i++)
      |                     ~^~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 408.0 KiB
#2 Runtime Error Segmentation fault 3ms 408.0 KiB
#3 Runtime Error Segmentation fault 2ms 412.0 KiB
#4 Runtime Error Segmentation fault 2ms 412.0 KiB
#5 Runtime Error Segmentation fault 2ms 412.0 KiB
#6 Runtime Error Segmentation fault 1ms 412.0 KiB
#7 Runtime Error Segmentation fault 1ms 412.0 KiB
#8 Runtime Error Segmentation fault 2ms 412.0 KiB
#9 Runtime Error Segmentation fault 3ms 412.0 KiB
#10 Runtime Error Segmentation fault 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1754 质因数分解
比赛
2023.5.20中级班期中测试赛
语言
C++
递交时间
2023-05-20 08:30:42
评测时间
2023-05-20 08:30:42
评测机
分数
0
总耗时
27ms
峰值内存
412.0 KiB