Accepted
foo.cc: In function ‘int main()’:
foo.cc:9:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    9 | for(int i=0;i<a.size();i++) sum+=a[i];
      |             ~^~~~~~~~~
  信息
- 递交者
 - 类型
 - 自测
 - 题目
 - P1628 A2-1 循环结构入门:数列求和
 - 语言
 - C++
 - 递交时间
 - 2024-04-04 17:24:02
 - 评测时间
 - 2024-04-04 17:24:02
 - 评测机
 
- 分数
 - 10
 - 总耗时
 - 2ms
 - 峰值内存
 - 536.0 KiB