记录详情

Wrong Answer

/in/foo.cc: In function 'void Unique(std::vector<int>&)':
/in/foo.cc:12:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     while (i < arr.size() - 1) {
      |            ~~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'void PrintArray(const std::vector<int>&, int)':
/in/foo.cc:22:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |     if (index == arr.size()) return;
      |         ~~~~~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 468.0 KiB
#2 Wrong Answer 2ms 480.0 KiB
#3 Wrong Answer 1ms 324.0 KiB
#4 Wrong Answer 1ms 472.0 KiB
#5 Wrong Answer 1ms 532.0 KiB

信息

递交者
类型
递交
题目
A10-3 数组的去重
比赛
2025年春 南师大《程序设计与竞赛》作业赛第三场
语言
C++
递交时间
2025-03-22 14:34:24
评测时间
2025-03-22 14:34:24
评测机
分数
0
总耗时
9ms
峰值内存
532.0 KiB