记录详情

Accepted

/in/foo.cc: In function 'Iv Mul(Iv, int)':
/in/foo.cc:39:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0;i<A.size() || t;i++)
                ~^~~~~~~~~
/in/foo.cc:41:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i<A.size())
      ~^~~~~~~~~
/in/foo.cc: In function 'Iv sum(Iv, Iv)':
/in/foo.cc:53:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(i<A.size()||i<B.size()||t)
        ~^~~~~~~~~
/in/foo.cc:53:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(i<A.size()||i<B.size()||t)
                    ~^~~~~~~~~
/in/foo.cc:55:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i<A.size()) t+= A[i];
      ~^~~~~~~~~
/in/foo.cc:56:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i<B.size()) t+= B[i];
      ~^~~~~~~~~
/in/foo.cc: In function 'Iv Vsum(Iv, Iv)':
/in/foo.cc:19:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define _for(i, a, b) for ( int i = (a); i < (b); ++i)
                                            ^
/in/foo.cc:66:2: note: in expansion of macro '_for'
  _for(i,0,B.size())
  ^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 360.0 KiB
#2 Accepted 2ms 360.0 KiB
#3 Accepted 2ms 352.0 KiB
#4 Accepted 2ms 360.0 KiB
#5 Accepted 2ms 400.0 KiB

信息

递交者
类型
递交
题目
A11-4 高精度整数之间的乘法
比赛
2021(四) 作业第四场:加速赛
语言
C++
递交时间
2021-12-07 01:41:00
评测时间
2021-12-07 01:41:00
评测机
分数
100
总耗时
10ms
峰值内存
400.0 KiB