Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:25: warning: array subscript i is outside array bounds of 'double [0]' [-Warray-bounds]
   14 |                 sum+=b[i]*a[i];
      |                      ~~~^
/in/foo.cc:4:8: note: while referencing 'b'
    4 | double b[]={};
      |        ^
/in/foo.cc:10:25: warning: array subscript i is outside array bounds of 'double [0]' [-Warray-bounds]
   10 |                 cin>>b[i];
      |                      ~~~^
/in/foo.cc:4:8: note: while referencing 'b'
    4 | double b[]={};
      |        ^
# 状态 耗时 内存占用
#1 Accepted 1ms 476.0 KiB
#2 Accepted 2ms 520.0 KiB
#3 Accepted 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P2393 1.6.3计算书费
比赛
2025.4.12中级班练习
语言
C++
递交时间
2025-04-16 19:26:19
评测时间
2025-04-16 19:26:19
评测机
分数
100
总耗时
6ms
峰值内存
520.0 KiB