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

Tests(0/0):


Code:

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


Run Info:

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