Runtime Error

foo.cc: In function ‘int main()’:
foo.cc:9:23: warning: comparison of integer expressions of different signedness: ‘std::queue<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
    9 |         while(q.size()<n)
      |               ~~~~~~~~^~
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 760.0 KiB
#2 Runtime Error Segmentation fault 2ms 764.0 KiB
#3 Runtime Error Segmentation fault 3ms 760.0 KiB
#4 Runtime Error Segmentation fault 2ms 760.0 KiB
#5 Runtime Error Segmentation fault 3ms 760.0 KiB
#6 Runtime Error Segmentation fault 2ms 872.0 KiB
#7 Runtime Error Segmentation fault 2ms 760.0 KiB
#8 Runtime Error Segmentation fault 2ms 788.0 KiB
#9 Runtime Error Segmentation fault 3ms 1.242 MiB
#10 Runtime Error Segmentation fault 2ms 760.0 KiB

信息

递交者
类型
递交
题目
P2056 Blah数集
语言
C++
递交时间
2025-07-22 21:08:30
评测时间
2025-07-22 21:08:30
评测机
分数
0
总耗时
29ms
峰值内存
1.242 MiB