Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105480 | 欧阳俊懿 | 奇怪的国家 | C++ | Compile Error | 0 MS | 0 KB | 348 | 2025-01-13 16:54:52 |
#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ main(){ int c=0; char a[1000],b[1000]; cin>>a>>b; c=strlen(a); for(int i=0;i<c;i++) { if(a[i]==b[i]) { cout<<"1"; } else { cout<<"0"; } } return 0; }
Main.cc: In function 'int main()': Main.cc:6:8: error: expected ';' before '{' token main(){ ^ Main.cc:24:1: error: expected '}' at end of input } ^