记录详情

Accepted

foo.cc: In function 'bool cmp(std::string, std::string)':
foo.cc:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |     for (int i = 0; i < a.size(); i ++ )
      |                     ~~^~~~~~~~~~
foo.cc: In function 'std::string add(std::string, std::string)':
foo.cc:31:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   31 |     for (int i = 0; i < A.size(); i ++ )
      |                     ~~^~~~~~~~~~
foo.cc:34:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   34 |         if (i < B.size()) t += B[i];
      |             ~~^~~~~~~~~~
foo.cc: In function 'std::string sub(std::string, std::string)':
foo.cc:56:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   56 |     for (int i = 0, t = 0; i < A.size(); i ++ )
      |                            ~~^~~~~~~~~~
foo.cc:59:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   59 |         if (i < B.size()) t -= B[i];
      |             ~~^~~~~~~~~~
foo.cc: In function 'std::string mul(std::string, std::string)':
foo.cc:83:51: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   83 |         for (int j = 0; j <= i; j ++ ) C[i] += (j < a.size() ? A[j] : 0) * ((i - j) < b.size() ? B[i - j] : 0);
      |                                                 ~~^~~~~~~~~~
foo.cc:83:85: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   83 |         for (int j = 0; j <= i; j ++ ) C[i] += (j < a.size() ? A[j] : 0) * ((i - j) < b.size() ? B[i - j] : 0);
      |                                                                             ~~~~~~~~^~~~~~~~~~
foo.cc: In function 'std::string mul(std::string, int)':
foo.cc:107:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  107 |     for(int i = 0; i < A.size() || t; i ++ )
      |                    ~~^~~~~~~~~~
foo.cc:109:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  109 |         if(i < A.size()) t += A[i] * b;
      |            ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 512.0 KiB
#2 Accepted 8ms 640.0 KiB
#3 Accepted 7ms 896.0 KiB
#4 Accepted 12ms 1.0 MiB
#5 Accepted 10ms 1.125 MiB
#6 Accepted 10ms 1.23 MiB
#7 Accepted 28ms 1.344 MiB
#8 Accepted 17ms 1.297 MiB
#9 Accepted 20ms 1.496 MiB
#10 Accepted 26ms 1.574 MiB

信息

递交者
类型
递交
题目
巴蜀中学签到题
语言
C++
递交时间
2022-07-12 16:11:37
评测时间
2022-07-12 16:11:37
评测机
分数
100
总耗时
150ms
峰值内存
1.574 MiB