| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62680 | 张江鹏 | 字符串相等判断 | C++ | Compile Error | 0 MS | 0 KB | 335 | 2023-12-24 17:37:47 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[1001],b[1000]; cin>>a>>b; int le=strlen(a); int la=strlen(b); if(le!=la){ cout<<"no"; }else{ int sum=0; for(int i=0;i<le;i++){ if(a[i]==b[i]){ sum++; } } } if(sum==le){ coubt<<"yes"; }else{ cout<<"no"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:18:5: error: 'sum' was not declared in this scope
if(sum==le){
^
Main.cc:19:2: error: 'coubt' was not declared in this scope
coubt<<"yes";
^