| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129549 | 王梓轩 | 回文字符串I | C++ | Compile Error | 0 MS | 0 KB | 291 | 2025-08-28 11:03:11 |
#include<iostream> #include<cstring> using namespace std; int maim() { char a[7891]; 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; }
Main.cc: In function 'int maim()':
Main.cc:9:23: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=0,j=len-1;i=0;i++,j--)
^
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status