Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79807 李泽宜 字符串长度判断 C++ Compile Error 0 MS 0 KB 245 2024-07-10 15:24:32

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ char a[150]; cin>>a; char b[150]; cin>>b; int s1 = strlen(a); int s2 = strlen(b); if(s1 == s2){ cout<<"Yes"; }else{ cout<<"No"; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:22: error: 'strlen' was not declared in this scope
     int s1 = strlen(a);
                      ^