记录详情

Accepted

foo.cc: In function 'void Add(std::vector<int>&, std::vector<int>&, std::vector<int>&)':
foo.cc:23:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   23 |         for(i=0; i<a1.size() && i<a2.size() ; i++)
      |                  ~^~~~~~~~~~
foo.cc:23:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   23 |         for(i=0; i<a1.size() && i<a2.size() ; i++)
      |                                 ~^~~~~~~~~~
foo.cc:28:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         for(; i<a1.size(); i++)
      |               ~^~~~~~~~~~
foo.cc:33:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |         for(; i<a2.size(); i++)
      |               ~^~~~~~~~~~
foo.cc: In function 'void Mul(std::vector<int>&, std::vector<int>&, std::vector<int>&)':
foo.cc:45:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   45 |         for(int i=0; i<a1.size(); i++)
      |                      ~^~~~~~~~~~
foo.cc:46:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   46 |                 for(int j=0; j<a2.size(); j++)
      |                              ~^~~~~~~~~~
foo.cc:51:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   51 |         for(int i=0; i<a3.size(); i++)
      |                      ~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 4ms 412.0 KiB

信息

递交者
类型
递交
题目
A11-3 高精度整数的加法
比赛
2023暑期青少年社团(训练赛)
语言
C++
递交时间
2023-08-16 15:12:54
评测时间
2023-08-16 15:12:54
评测机
分数
100
总耗时
20ms
峰值内存
412.0 KiB