Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68678 殷震博 31回文字符串II C++ Compile Error 0 MS 0 KB 327 2024-03-24 12:15:46

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; int q=asi.ze(); for(int i=0;i<=q;i++){ if(a[i]==a[i+2] && i+2<n){ cout<<"Yes"; return 0; } if(a[i]==a[i+3] && a[i+1]==a[i+2] && i+3<n){ cout<<"Yes"; return 0; } } cout<<"No"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:11: error: 'asi' was not declared in this scope
     int q=asi.ze();
           ^
Main.cc:8:29: error: 'n' was not declared in this scope
      if(a[i]==a[i+2] && i+2