Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4135 | 李伟和 | 字符串长度判断 | C++ | Runtime Error | 0 MS | 268 KB | 220 | 2024-08-04 15:04:28 |
#include <iostream> #include <cstring> using namespace std; int main(){ char a[12],b[12]; int n,s; cin>>a>>b; n=strlen(a); s=strlen(b); if(n==s){ cout<<"yes"; }else{ cout<<"no"; } return 0; }
Runtime Error:Segmentation fault