记录详情

Wrong Answer

foo.cc: In function 'std::vector<int> MergeSubs(std::vector<int>&)':
foo.cc:8:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |     for (int i = 1; i < arr.size(); i++) {
      |                     ~~^~~~~~~~~~~~
foo.cc:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |     for (int i = 0; i < sorted_subs.size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:42:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   42 |     for (int i = 0; i < merged_a1.size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~
foo.cc:46:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   46 |     for (int i = 0; i < merged_a2.size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 4, expect 1. 4ms 412.0 KiB
#2 Wrong Answer Read 8, expect 1. 4ms 412.0 KiB
#3 Wrong Answer Read 20, expect 1. 4ms 412.0 KiB
#4 Wrong Answer Read 40, expect 1. 4ms 412.0 KiB
#5 Wrong Answer Read 2, expect 1. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
A10-2 有序子序列的合并
比赛
2023 程序设计与基础(数组的世界)
语言
C++
递交时间
2023-11-28 16:56:20
评测时间
2023-11-28 16:56:20
评测机
分数
0
总耗时
22ms
峰值内存
412.0 KiB