记录详情

Wrong Answer

/in/foo.cc: In function 'std::vector<int> MergeSubs(const std::vector<int>&)':
/in/foo.cc:11:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < arr.size(); i++) {
                     ~~^~~~~~~~~~~~
/in/foo.cc:14:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i == arr.size() - 1 || arr[i] >= arr[i + 1]) {
             ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:25:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < subs.size() - 1; i++) {
                         ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:32:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < subs.size(); i++) {
                         ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:60:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < result1.size(); i++) {
                     ~~^~~~~~~~~~~~~~~~
/in/foo.cc:64:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < result2.size(); i++) {
                     ~~^~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 324.0 KiB

信息

递交者
类型
自测
题目
A10-2 有序子序列的合并
语言
C++
递交时间
2024-10-13 15:40:20
评测时间
2024-10-13 15:40:20
评测机
分数
0
总耗时
2ms
峰值内存
324.0 KiB