| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153218 | 卢语宸 | 字符串长度判断 | C++ | Compile Error | 0 MS | 0 KB | 325 | 2026-05-10 14:13:14 |
#include<bits/stdc++.h> using namespace std; int main() { char a[160],b[160],n=0,m=0; cin>>a>>b; for(int i=0;;i++){ if(a[i]==0){ break; }else{ n++; } for(int i=0;;i++){ if(b[i]==0){ break; }else{ m++; } } if(n==m){ cout<<"yes"; }else{ cout<<"no"; } return 0; }
Main.cc: In function 'int main()': Main.cc:25:1: error: expected '}' at end of input } ^