QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#774157 | #9548. The Fool | welikestudying# | Compile Error | / | / | C++20 | 359b | 2024-11-23 12:10:03 | 2024-11-23 12:10:05 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:16:39: error: could not convert ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int](((std::__cxx11::basic_string<char>::size_type)j), ((std::__cxx11::basic_string<char>::size_type)m))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’ 16 | if(s[i].substr(j,m)) | ~~~~~~~~~~~^~~~~ | | | std::__cxx11::basic_string<char>