| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74621 | 刘焕群 | 奇怪的国家 | C++ | Compile Error | 0 MS | 0 KB | 234 | 2024-05-25 16:39:13 |
# include<stdio.h> # include<iostream> using namespace std; int main(){ char a[650],b[650]; cin>>a>>b; int n=strlen(a); for(int i=0;i<n;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 n=strlen(a);
^