| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132863 | 颜学俊逸 | 字符串相等判断 | C++ | Compile Error | 0 MS | 0 KB | 549 | 2025-10-12 14:29:55 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[1000],b[1000]; cin>>a>>b; if(strcmp(a,b) == 0){ cout<<"yes"; }else{ cout<<"no"; } return 0; } #include<bits/stdc++.h> using namespace std; int main(){ char a[1000],b[1000]; cin>>a>>b; if(strcmp(a,b) == 0){ cout<<"yes"; }else{ cout<<"no"; } return 0; } #include<bits/stdc++.h> using namespace std; int main(){ char a[1000],b[1000]; cin>>a>>b; if(strcmp(a,b) == 0){ cout<<"yes"; }else{ cout<<"no"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:16:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: In function 'int main()':
Main.cc:29:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^