Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6246 | 郑元泰 | 字符串长度判断 | C++ | Compile Error | 0 MS | 0 KB | 195 | 2025-01-14 15:49:10 |
# include<iostream> using namespace std; int main(){ char s[151],a[151]; cin>>a>>s; if(strlen(s)==strlen(a)){ cout<<"yes"; } else cout<<"no"; return 0; }
Main.cc: In function 'int main()': Main.cc:6:16: error: 'strlen' was not declared in this scope if(strlen(s)==strlen(a)){ ^