Runtime Error

foo.cc:20:1: warning: "/*" within comment [-Wcomment]
   20 | /*
      |  
foo.cc: In function 'int main()':
foo.cc:666:11: warning: array subscript 0 is above array bounds of 'int [0]' [-Warray-bounds]
  666 |   cin>>s[i];
      |        ~~~^
foo.cc:662:8: note: while referencing 's'
  662 |  int n,s[0],i,min;
      |        ^
foo.cc:668:9: warning: array subscript 0 is above array bounds of 'int [0]' [-Warray-bounds]
  668 |  min=s[0];
      |      ~~~^
foo.cc:662:8: note: while referencing 's'
  662 |  int n,s[0],i,min;
      |        ^
foo.cc:671:9: warning: array subscript 0 is above array bounds of 'int [0]' [-Warray-bounds]
  671 |   if(s[i]<min)
      |      ~~~^
foo.cc:662:8: note: while referencing 's'
  662 |  int n,s[0],i,min;
      |        ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Aborted 3ms 384.0 KiB
#2 Runtime Error Aborted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1057 求n个数的最小值
语言
C++
递交时间
2022-04-13 19:09:59
评测时间
2022-04-13 19:09:59
评测机
分数
0
总耗时
5ms
峰值内存
384.0 KiB