记录详情

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 3ms 512.0 KiB
#2 Accepted 7ms 384.0 KiB
#3 Accepted 6ms 384.0 KiB
#4 Accepted 104ms 1.062 MiB
#5 Accepted 9ms 384.0 KiB

信息

递交者
类型
递交
题目
P1024 OO6-2 高精度整数类的加法运算
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-12 17:22:07
评测时间
2022-05-12 17:22:07
评测机
分数
100
总耗时
132ms
峰值内存
1.062 MiB