记录详情

Runtime Error

/in/foo.cc: In function 'int main(int, char**)':
/in/foo.cc:24:20: warning: 'bi.BigInt::value' may be used uninitialized in this function [-Wmaybe-uninitialized]
    value[bitNum++] = x % 10;
    ~~~~~~~~~~~~~~~~^~~~~~~~
/in/foo.cc:220:9: note: 'bi.BigInt::value' was declared here
  BigInt bi(x), ans(1);
         ^~
/in/foo.cc:24:20: warning: 'ans.BigInt::value' is used uninitialized in this function [-Wuninitialized]
    value[bitNum++] = x % 10;
    ~~~~~~~~~~~~~~~~^~~~~~~~
/in/foo.cc:220:16: note: 'ans.BigInt::value' was declared here
  BigInt bi(x), ans(1);
                ^~~
/in/foo.cc:67:14: warning: 'res.BigInt::value' may be used uninitialized in this function [-Wmaybe-uninitialized]
     value[i] = bi.value[i];
     ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:78:10: note: 'res.BigInt::value' was declared here
   BigInt res(0);
          ^~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 480.0 KiB

信息

递交者
类型
自测
题目
P1023 OO6-1 高精度整数类的乘法运算
语言
C++
递交时间
2024-05-02 10:16:50
评测时间
2024-05-02 10:16:50
评测机
分数
0
总耗时
1ms
峰值内存
480.0 KiB