记录详情

Accepted

foo.cc: In function ‘void back(std::string&)’:
foo.cc:16:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   16 |     for (int i = 0; i < s.length() / 2; i++)
      |                     ~~^~~~~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:34:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   34 |         for (int i = 0; i < s2.length(); i++)
      |                         ~~^~~~~~~~~~~~~
foo.cc:36:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   36 |             if (i >= s1.length())
      |                 ~~^~~~~~~~~~~~~~
foo.cc:54:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   54 |             if (i >= s1.length())
      |                 ~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 320.0 KiB

信息

递交者
类型
自测
题目
P1566 Problem 1D. 又是高精度?!
语言
C++
递交时间
2024-04-09 21:46:39
评测时间
2024-04-09 21:46:39
评测机
分数
10
总耗时
2ms
峰值内存
320.0 KiB