/ OPS /

记录详情

Accepted

/in/foo.cc: In function 'bool containJudge(std::string, std::string, int)':
/in/foo.cc:12:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for (int i = index; i < a.length() && i < index + b.length(); i++) {
      |                         ~~^~~~~~~~~~~~
/in/foo.cc:12:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for (int i = index; i < a.length() && i < index + b.length(); i++) {
      |                                           ~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:28:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         for (int i = 0; i <= a.length()-b.length();) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 6ms 352.0 KiB

信息

递交者
类型
递交
比赛
2024通关考基础练习
语言
C++
递交时间
2024-03-19 15:47:24
评测时间
2024-03-19 15:47:24
评测机
分数
10
总耗时
6ms
峰值内存
352.0 KiB