记录详情

Runtime Error

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

信息

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