Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130732 黄芃硕 31回文字符串 C++ Compile Error 0 MS 0 KB 318 2025-09-15 18:28:55

Tests(0/0):


Code:

#include<iomanip> #include<iostream> #include<cstring> using namespace std; int main() { char a[1005]; cin>>a; int len=strlen(a); for(int i=0,j=len-1;i<len,j>=0;i++,j--) { if(a[i]==a[j]) { continue; } else { cout<<"No"; return 0 ; } } cout<<Yes; return 0 ; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:23: warning: left operand of comma operator has no effect [-Wunused-value]
  for(int i=0,j=len-1;i=0;i++,j--)
                       ^
Main.cc:22:8: error: 'Yes' was not declared in this scope
  cout<