Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81748 石依灵 31回文字符串 C++ Compile Error 0 MS 0 KB 260 2024-07-12 15:21:03

Tests(0/0):


Code:

# include<iostream> using namespace std; char a[1000]; int main(){ cin>>a; int b=strlen(a); for(int i=0;i<b/2;i++){ if(a[i]!=a[b-1-i]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:19: error: 'strlen' was not declared in this scope
     int b=strlen(a);
                   ^