记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:12:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |         while(i<a.size()&&j<b.size()) ans+=(a[i++]-'0')+(b[j++]-'0');
      |               ~^~~~~~~~~
foo.cc:12:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |         while(i<a.size()&&j<b.size()) ans+=(a[i++]-'0')+(b[j++]-'0');
      |                           ~^~~~~~~~~
foo.cc:13:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         while(i<a.size()) ans+=a[i++]-'0';
      |               ~^~~~~~~~~
foo.cc:14:16: 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(j<b.size()) ans+=b[j++]-'0';
      |               ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 412.0 KiB
#2 Accepted 3ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB
#6 Accepted 3ms 284.0 KiB
#7 Accepted 3ms 412.0 KiB
#8 Accepted 3ms 412.0 KiB
#9 Accepted 2ms 412.0 KiB
#10 Accepted 3ms 412.0 KiB
#11 Accepted 3ms 412.0 KiB
#12 Accepted 5ms 412.0 KiB
#13 Accepted 8ms 668.0 KiB
#14 Accepted 18ms 612.0 KiB
#15 Accepted 12ms 668.0 KiB
#16 Accepted 11ms 668.0 KiB
#17 Accepted 11ms 624.0 KiB
#18 Accepted 12ms 668.0 KiB
#19 Accepted 17ms 668.0 KiB
#20 Accepted 12ms 668.0 KiB

信息

递交者
类型
递交
题目
P1511 Problem 2D. A+B,但是人生苦短...
比赛
2023秋 悬赏令第二周
语言
C++
递交时间
2023-10-16 15:50:22
评测时间
2023-10-16 15:50:22
评测机
分数
100
总耗时
148ms
峰值内存
668.0 KiB