Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70936 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 字符串包含判断 C++ Compile Error 0 MS 0 KB 205 2024-04-20 16:08:04

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string s1,s2; getline(cin,s1); getline(cin,s2); if(s1.find(s2)<s1.size){ cout<<"yes"; } else { cout<<"no"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:20: error: invalid use of member function (did you forget the '()' ?)
  if(s1.find(s2)