Runtime Error

foo.cc: In function 'int main()':
foo.cc:11:6: warning: unused variable 'inuy' [-Wunused-variable]
   11 |  int inuy=i;
      |      ^~~~
foo.cc:16:20: warning: 'ibuy' may be used uninitialized in this function [-Wmaybe-uninitialized]
   16 |    ans+=a[i]-a[ibuy];
      |              ~~~~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 6ms 384.0 KiB
#2 Runtime Error Segmentation fault 4ms 384.0 KiB
#3 Runtime Error Segmentation fault 4ms 384.0 KiB
#4 Runtime Error Segmentation fault 9ms 504.0 KiB
#5 Runtime Error Segmentation fault 6ms 512.0 KiB

信息

递交者
类型
递交
题目
P1324 3-3 炒股发财
语言
C++
递交时间
2022-06-20 09:29:24
评测时间
2022-06-20 09:29:24
评测机
分数
0
总耗时
31ms
峰值内存
512.0 KiB