Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78947 石依灵 字符串长度判断 C++ Compile Error 0 MS 0 KB 279 2024-06-29 14:39:16

Tests(0/0):


Code:

# include<iostream> using namespace std; char a[150]; char b[150]; int main(){ cin.getline(a,150); cin.getline(b,150); int n,m; m=strlen(b); n=strlen(a); if(n==m){ cout<<"yes"; } else{ cout<<"no"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:15: error: 'strlen' was not declared in this scope
     m=strlen(b);
               ^