/ 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:24:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |         for (int i = 0; i <= a.length()-b.length();) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:23:22: warning: unused variable 'j' [-Wunused-variable]
   23 |         int cnt = 0, j = 0;
      |                      ^
# 状态 耗时 内存占用
#1 Accepted 3ms 356.0 KiB

信息

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