记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = num; i < tree.size(); i++)
                    ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'void CreatTree(std::vector<Node>&, std::vector<Node>&)':
/in/foo.cc:34:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = n; i < tree.size(); i++)
                  ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'void Select(const std::vector<Node>&, int&, int&, int)':
/in/foo.cc:57:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (i = 0; i < n; i++)
  ^~~
/in/foo.cc:63:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for (int i = 0; i < n; i++)//找到次小权值的下标
   ^~~
# 状态 耗时 内存占用
#1 Accepted 662ms 780.0 KiB
#2 Accepted 1ms 196.0 KiB
#3 Accepted 4ms 328.0 KiB
#4 Accepted 5ms 324.0 KiB
#5 Accepted 87ms 456.0 KiB
#6 Accepted 135ms 456.0 KiB
#7 Accepted 642ms 784.0 KiB
#8 Accepted 600ms 784.0 KiB
#9 Accepted 649ms 784.0 KiB
#10 Accepted 596ms 780.0 KiB

信息

递交者
类型
递交
题目
P1124 合并果子
比赛
南京师范大学算法竞赛之2020年寒假战“疫”系列赛Round1 总第71期赛
语言
C++
递交时间
2020-02-04 15:22:39
评测时间
2020-02-04 15:22:39
评测机
分数
100
总耗时
3386ms
峰值内存
784.0 KiB