记录详情

Accepted

/in/foo.cc: In function 'std::vector<bool> turn(std::vector<bool>, int)':
/in/foo.cc:38:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 1; i < ans.size() - 1; i++)
                  ~~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:58:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i = 0; i < 2 * n + 3; i++)  ans.push_back(0);  ans[n + 1] = 1;
  ^~~
/in/foo.cc:58:58: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int i = 0; i < 2 * n + 3; i++)  ans.push_back(0);  ans[n + 1] = 1;
                                                          ^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 376.0 KiB
#2 Accepted 4ms 428.0 KiB
#3 Accepted 4ms 332.0 KiB
#4 Accepted 6ms 384.0 KiB
#5 Accepted 2ms 380.0 KiB
#6 Accepted 17ms 380.0 KiB
#7 Accepted 17ms 328.0 KiB
#8 Accepted 16ms 360.0 KiB
#9 Accepted 16ms 380.0 KiB
#10 Accepted 16ms 364.0 KiB

信息

递交者
类型
递交
比赛
2024春 悬赏令第五周
语言
C++
递交时间
2024-05-15 19:50:44
评测时间
2024-05-16 23:38:12
评测机
分数
100
总耗时
107ms
峰值内存
428.0 KiB