Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74619 孙嘉言 奇怪的国家 C++ Compile Error 0 MS 0 KB 207 2024-05-25 16:38:22

Tests(0/0):


Code:

# include<iostream> using namespace std; int main(){ char a[51],b[51]; cin>>a>>b; int l=strlen(a); for(int i=0;i<l;i++){ if(a[i]==b[i]){ cout<<1;} else{ cout<<0;} } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:15: error: 'strlen' was not declared in this scope
 int l=strlen(a);
               ^