Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99900 | 杨一诺 | 31回文字符串II | C++ | Compile Error | 0 MS | 0 KB | 397 | 2024-12-01 10:31:50 |
#include<bits/stdc++.h> using namespace std; strang a; int c=0,d=0,e=0; bool f(int l,int r){ for(int i=0;i<=((l+r)/2);i++){ if(s[i+l]l=s[r-l]){ return false; } } return true; } int main() { cin>>a; int len=a.size(); for(int j=0;j<c-1;j++){ for(int i=len-1;i>j;i--){ if(f(j,i)){ cout<<"Yes"; return 0; } } } cout<<"No"; return 0; }
Main.cc:3:1: error: 'strang' does not name a type strang a; ^ Main.cc: In function 'bool f(int, int)': Main.cc:7:6: error: 's' was not declared in this scope if(s[i+l]l=s[r-l]){ ^ Main.cc:7:12: error: expected ')' before 'l' if(s[i+l]l=s[r-l]){ ^ Main.cc: In function 'int main()': Main.cc:15:7: error: 'a' was not declared in this scope cin>>a; ^