Runtime Error

foo.cc: In function ‘int main()’:
foo.cc:14:26: warning: ‘c’ may be used uninitialized [-Wmaybe-uninitialized]
   14 |                         c++;
      |                         ~^~
foo.cc:6:15: note: ‘c’ was declared here
    6 |         int a,c,x;
      |               ^
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 504.0 KiB
#2 Runtime Error Segmentation fault 2ms 504.0 KiB
#3 Runtime Error Segmentation fault 2ms 544.0 KiB
#4 Runtime Error Segmentation fault 2ms 504.0 KiB
#5 Runtime Error Segmentation fault 3ms 760.0 KiB
#6 Runtime Error Segmentation fault 2ms 504.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 508.0 KiB
#10 Runtime Error Segmentation fault 2ms 504.0 KiB

信息

递交者
类型
递交
题目
P1450 明明的随机数
语言
C++
递交时间
2025-07-18 09:37:11
评测时间
2025-07-18 09:37:11
评测机
分数
0
总耗时
26ms
峰值内存
760.0 KiB