| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74626 | 孙嘉言 | 奇怪的国家 | C++ | Compile Error | 0 MS | 0 KB | 234 | 2024-05-25 16:42:37 |
# include<iostream> # include<string> 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; }
Main.cc: In function 'int main()':
Main.cc:7:15: error: 'strlen' was not declared in this scope
int l=strlen(a);
^