Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
110545 | 秦浩然 | 字符串长度判断 | C++ | Compile Error | 0 MS | 0 KB | 294 | 2025-02-22 11:47:39 |
#include<iostream> using namespace std; int main(){ char a[150],b[150]; int len1=0,len2=0; cin>>a>>b; len1 = strlen(a); len2 = strlen(b); if(len1==len2){ cout<<"yes"; } else{ cout<<"no"; } return 0; }
Main.cc: In function 'int main()': Main.cc:8:20: error: 'strlen' was not declared in this scope len1 = strlen(a); ^