Accepted

foo.cc: In function 'int main()':
foo.cc:12:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ~~~~~^~~~~~~~~~~~
foo.cc:42:6: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<ans;
  ~~~~^~~~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 408.0 KiB
#3 Accepted 15ms 1.148 MiB
#4 Accepted 14ms 1.18 MiB
#5 Accepted 16ms 1.141 MiB

信息

递交者
类型
递交
题目
「一本通 1.2 练习 1」数列分段 II
语言
C++
递交时间
2021-02-07 11:34:46
评测时间
2021-02-07 11:34:46
评测机
分数
100
总耗时
51ms
峰值内存
1.18 MiB