Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111829 | 张智博 | 字符串长度判断 | C++ | Compile Error | 0 MS | 0 KB | 273 | 2025-03-06 22:19:07 |
#include <iostream> #include <string> using namespace std; int main() { string,a,b; cin >> a >> b; if (a.length() == b.length()) { cout << "yes" << endl; } else { cout << "no" << endl; } return 0; }
Main.cc: In function 'int main()': Main.cc:6:11: error: expected unqualified-id before ',' token string,a,b; ^