记录详情

Compile Error

foo.cc: In member function 'void ds::str::AC_automaton::insert(std::string)':
foo.cc:326:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  326 |         for (int i = 0; i < s.length(); i++) {
      |                         ~~^~~~~~~~~~~~
foo.cc: In member function 'int ds::str::AC_automaton::query(std::string)':
foo.cc:352:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  352 |         for (int i = 0; i < s.length(); i++) {
      |                         ~~^~~~~~~~~~~~
foo.cc: At global scope:
foo.cc:404:1: error: expected '}' at end of input
  404 | }
      | ^
foo.cc:74:14: note: to match this '{'
   74 | namespace ds {
      |              ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1300 I. RBS Checking
语言
C++
递交时间
2021-12-23 15:48:28
评测时间
2021-12-23 15:48:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes