Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135650 李俊博 字符串包含判断 C++ Compile Error 0 MS 0 KB 194 2025-11-08 10:31:02

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a; string b; cin>>a>>b; int c=a.find(b); if(c<=!=-1){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:8: error: expected primary-expression before '!=' token
  if(c<=!=-1){
        ^