Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110548 秦浩然 字符串长度判断 C++ Compile Error 0 MS 0 KB 306 2025-02-22 11:48:49

Tests(0/0):


Code:

#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"<<endl; } else{ cout<<"no"<<andl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:20: error: 'strlen' was not declared in this scope
     len1 = strlen(a);
                    ^
Main.cc:15:21: error: 'andl' was not declared in this scope
         cout<<"no"<