记录详情

Accepted

foo.cc: In function 'std::string Add(std::string, std::string)':
foo.cc:37:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |                 if(i < x.length())
      |                    ~~^~~~~~~~~~~~
foo.cc:39:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   39 |                 if(i < y.length())
      |                    ~~^~~~~~~~~~~~
foo.cc: In function 'std::string Mul(std::string, std::string)':
foo.cc:70:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   70 |         for(int i=0; i<x.length(); i++)
      |                      ~^~~~~~~~~~~
foo.cc:71:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   71 |                 for(int j=0; j<y.length(); j++)
      |                              ~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 11ms 1.145 MiB
#2 Accepted 11ms 1.145 MiB
#3 Accepted 11ms 1.145 MiB
#4 Accepted 11ms 1.145 MiB
#5 Accepted 9ms 1.145 MiB

信息

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