记录详情

Accepted

foo.cc: In function 'std::string fun(std::string, std::string)':
foo.cc:16:17: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   16 |   if (v1.size() < len1 - i)v1.push_back(mult);
      |       ~~~~~~~~~~^~~~~~~~~~
foo.cc:20:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |  for (int i = 0; i < v1.size(); i++)while (v1[i].size() < v1[v1.size() - 1].size())v1[i].push_back(0);
      |                  ~~^~~~~~~~~~~
foo.cc:26:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |   for (int j = 0; j < v1.size(); j++)sum += v1[j][i];
      |                   ~~^~~~~~~~~~~
foo.cc:21:6: warning: unused variable 'temp' [-Wunused-variable]
   21 |  int temp = v1[0].size();
      |      ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 8ms 384.0 KiB
#5 Accepted 14ms 640.0 KiB

信息

递交者
类型
递交
题目
P1023 OO6-1 高精度整数类的乘法运算
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-12 16:22:10
评测时间
2022-05-12 16:22:10
评测机
分数
100
总耗时
31ms
峰值内存
640.0 KiB