Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150435 任艺宸 31回文字符串 C++ Compile Error 0 MS 0 KB 459 2026-03-28 10:46:37

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string a; int l; cin>>a; l=s.size(); for(int i=0;i<l;i++){ if(s[i]!=s[l-i-1]){ cout<<"No"; return 0; } }cout<<"Yes"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:7: error: 's' was not declared in this scope
     l=s.size();
       ^