| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82567 | 石晋骁 | 奇怪的国家 | C++ | Compile Error | 0 MS | 0 KB | 241 | 2024-07-13 14:13:32 |
#include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin >> a; cin >> b; int abl = strlen(a); for(int i = 0;i < abl;i++){ if(a[i] == b[i]){ cout << "1"; }else { cout << "0"; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:20: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
int abl = strlen(a);
^