Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134096 刘益梵 回文字符串I C++ Compile Error 0 MS 0 KB 252 2025-10-25 16:42:34

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:14:4: error: expected ';' before 'return'
    return 0;
    ^