Accepted

foo.cc: In function ‘int main()’:
foo.cc:7:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
    7 |         for(int i=t;i<=n;i++)
      |         ^~~
foo.cc:9:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    9 |                 int sum=0;
      |                 ^~~
foo.cc:10:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   10 |         for(int i=0;i<a.size();i++)
      |                     ~^~~~~~~~~
foo.cc:10:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   10 |         for(int i=0;i<a.size();i++)
      |         ^~~
foo.cc:12:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
   12 |                 cout<<sum;
      |                 ^~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 552.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 3ms 324.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1038 xf2-3爸爸的爱
比赛
春季班初级4.4
语言
C++
递交时间
2024-04-04 13:05:37
评测时间
2024-04-04 13:05:37
评测机
分数
100
总耗时
14ms
峰值内存
552.0 KiB