记录详情

Wrong Answer

/in/foo.cc: In function 'std::vector<int> MergeSubs(const std::vector<int>&)':
/in/foo.cc:7:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < arr.size(); i++) {
                     ~~^~~~~~~~~~~~
/in/foo.cc:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i == arr.size() - 1 || arr[i] >= arr[i + 1]) {
             ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:17:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < subs.size() - 1; i++) {
                         ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:22: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:41:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < result1.size(); i++) {
                     ~~^~~~~~~~~~~~~~~~
/in/foo.cc:45:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < result2.size(); i++) {
                     ~~^~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 364.0 KiB

信息

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