记录详情

Runtime Error

foo.cc: In function ‘int gbs(int, int)’:
foo.cc:10:16: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
   10 |         return res;
      |                ^~~
foo.cc:4:19: note: ‘res’ was declared here
    4 |         int small,res;
      |                   ^~~
foo.cc: In function ‘int gys(int, int)’:
foo.cc:20:16: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
   20 |         return res;
      |                ^~~
foo.cc:14:17: note: ‘res’ was declared here
   14 |         int big,res;
      |                 ^~~
foo.cc: In function ‘int main()’:
foo.cc:28:20: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
   28 |         cout<<Gbs<<" "<<Gys<<endl;
      |                    ^~~
foo.cc:4:19: note: ‘res’ was declared here
    4 |         int small,res;
      |                   ^~~
# 状态 耗时 内存占用
#1 Runtime Error Illegal instruction 2ms 288.0 KiB
#2 Runtime Error Illegal instruction 2ms 552.0 KiB
#3 Runtime Error Illegal instruction 2ms 536.0 KiB
#4 Runtime Error Illegal instruction 2ms 288.0 KiB
#5 Runtime Error Illegal instruction 2ms 536.0 KiB
#6 Runtime Error Illegal instruction 2ms 320.0 KiB
#7 Runtime Error Illegal instruction 2ms 536.0 KiB
#8 Runtime Error Illegal instruction 2ms 320.0 KiB
#9 Runtime Error Illegal instruction 2ms 288.0 KiB
#10 Runtime Error Illegal instruction 2ms 536.0 KiB

信息

递交者
类型
递交
题目
公约数公倍数
语言
C++
递交时间
2024-05-06 16:13:09
评测时间
2024-05-06 16:13:09
评测机
分数
0
总耗时
26ms
峰值内存
552.0 KiB