| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62703 | 邸礼诚 | 奇怪的国家 | C++ | Compile Error | 0 MS | 0 KB | 260 | 2023-12-24 18:02:12 |
#include<bits/stdc++.h> using namespace std; int main() { char a[50],b[50]; cin>>a>>b; int c=strlen(a); int c=strlen(b); 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:8:6: error: redeclaration of 'int c'
int c=strlen(b);
^
Main.cc:7:6: note: 'int c' previously declared here
int c=strlen(a);
^