Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81716 刘慕莀 回文字符串I C++ Compile Error 0 MS 0 KB 241 2024-07-12 15:16:47

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; char a[1000]; int main(){ cin>>a; int a_len=stlen(a); for(int i=0;i<=a_len/2;i++){ if(a[i]!=a[s_len-1-i]){ cout<<"No"; return 0; }else{ cout<<"Yes" ; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:18: error: 'stlen' was not declared in this scope
 int a_len=stlen(a);
                  ^
Main.cc:9:13: error: 's_len' was not declared in this scope
  if(a[i]!=a[s_len-1-i]){
             ^