Runtime Error

foo.cc: In function ‘int main()’:
foo.cc:12:22: warning: comparison of integer expressions of different signedness: ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
   12 |     while(nums.size()<n)
      |           ~~~~~~~~~~~^~
foo.cc:22:27: warning: comparison of integer expressions of different signedness: ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
   22 |             if(nums.size()==n)break;
      |                ~~~~~~~~~~~^~~
foo.cc:29:28: warning: comparison of integer expressions of different signedness: ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
   29 |             if(nums.size() == n) break;
      |                ~~~~~~~~~~~~^~~~
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 508.0 KiB
#2 Runtime Error Segmentation fault 2ms 504.0 KiB
#3 Runtime Error Segmentation fault 2ms 504.0 KiB
#4 Runtime Error Segmentation fault 3ms 600.0 KiB
#5 Runtime Error Segmentation fault 3ms 752.0 KiB
#6 Runtime Error Segmentation fault 2ms 764.0 KiB
#7 Runtime Error Segmentation fault 2ms 504.0 KiB
#8 Runtime Error Segmentation fault 2ms 504.0 KiB
#9 Runtime Error Segmentation fault 2ms 504.0 KiB
#10 Runtime Error Segmentation fault 2ms 760.0 KiB

信息

递交者
类型
递交
题目
P2056 Blah数集
语言
C++
递交时间
2025-07-22 21:47:33
评测时间
2025-07-22 21:47:33
评测机
分数
0
总耗时
28ms
峰值内存
764.0 KiB