记录详情

Runtime Error

foo.cc: In function ‘int mco(int*, int, int)’:
foo.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
   27 | }
      | ^
In function ‘int FindMax(int*, int, int)’,
    inlined from ‘int mco(int*, int, int)’ at foo.cc:21:20:
foo.cc:5:9: warning: ‘b’ may be used uninitialized [-Wmaybe-uninitialized]
    5 |     int max = a[x];
      |         ^~~
foo.cc: In function ‘int mco(int*, int, int)’:
foo.cc:16:9: note: ‘b’ declared here
   16 |     int b[10005];
      |         ^
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 504.0 KiB
#2 Runtime Error Segmentation fault 2ms 504.0 KiB
#3 Runtime Error Segmentation fault 4ms 504.0 KiB
#4 Runtime Error Segmentation fault 3ms 504.0 KiB
#5 Runtime Error Segmentation fault 4ms 524.0 KiB

信息

递交者
类型
递交
比赛
2025年春 南师大《程序设计与竞赛》作业赛第五场
语言
C++
递交时间
2025-04-11 23:44:21
评测时间
2025-04-11 23:44:21
评测机
分数
0
总耗时
17ms
峰值内存
524.0 KiB