/ Vijos /

记录详情

Accepted

foo.cc: In function ‘bool checked1(std::string, std::string)’:
foo.cc:14:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   14 |         while (a[i]=='0' && i<a.size()) // 找 a的非 0位
      |                             ~^~~~~~~~~
foo.cc:18:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   18 |         while (b[j]=='0' && j<b.size()) // 找 b的非 0位
      |                             ~^~~~~~~~~
foo.cc:22:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   22 |         if (i==a.size())
      |             ~^~~~~~~~~~
foo.cc: In function ‘bool checked2(std::string, std::string)’:
foo.cc:46:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   46 |         while (a[i]=='0' && i<a.size()) // 找 a的非 0位
      |                             ~^~~~~~~~~
foo.cc:50:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   50 |         while (b[j]=='0' && j<b.size()) // 找 b的非 0位
      |                             ~^~~~~~~~~
foo.cc:54:14: 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==a.size())
      |             ~^~~~~~~~~~
foo.cc: In function ‘bool checked1(std::string, std::string)’:
foo.cc:42:1: warning: control reaches end of non-void function [-Wreturn-type]
   42 | }
      | ^
foo.cc: In function ‘bool checked2(std::string, std::string)’:
foo.cc:74:1: warning: control reaches end of non-void function [-Wreturn-type]
   74 | }
      | ^
# 状态 耗时 内存占用
#1 Accepted 3ms 504.0 KiB
#2 Accepted 3ms 504.0 KiB
#3 Accepted 3ms 512.0 KiB
#4 Accepted 3ms 504.0 KiB
#5 Accepted 3ms 500.0 KiB
#6 Accepted 3ms 504.0 KiB
#7 Accepted 2ms 504.0 KiB
#8 Accepted 2ms 784.0 KiB
#9 Accepted 3ms 504.0 KiB
#10 Accepted 2ms 504.0 KiB
#11 Accepted 3ms 504.0 KiB
#12 Accepted 2ms 504.0 KiB
#13 Accepted 3ms 500.0 KiB
#14 Accepted 2ms 504.0 KiB
#15 Accepted 2ms 504.0 KiB
#16 Accepted 3ms 504.0 KiB
#17 Accepted 2ms 504.0 KiB
#18 Accepted 2ms 504.0 KiB
#19 Accepted 3ms 504.0 KiB
#20 Accepted 3ms 504.0 KiB

信息

递交者
类型
递交
题目
P1306 递增序列
语言
C++
递交时间
2025-04-08 20:28:39
评测时间
2025-04-08 20:28:39
评测机
分数
100
总耗时
60ms
峰值内存
784.0 KiB