/ Vijos /

记录详情

Accepted

foo.cc: In function 'std::string add(std::string, std::string)':
foo.cc:38:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |                 if(i<a.size()){sum=sum+a[i]-'0';}
      |                    ~^~~~~~~~~
foo.cc:39:21: 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<b.size()){sum=sum+b[i]-'0';}
      |                    ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 412.0 KiB
#2 Accepted 4ms 540.0 KiB
#3 Accepted 4ms 332.0 KiB
#4 Accepted 4ms 408.0 KiB
#5 Accepted 5ms 380.0 KiB
#6 Accepted 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1192 星际青蛙(木木版)
语言
C++
递交时间
2023-07-28 18:05:50
评测时间
2023-07-28 18:05:50
评测机
分数
100
总耗时
28ms
峰值内存
540.0 KiB