Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115936 吴梓玄 字符串长度判断 C++ Compile Error 0 MS 0 KB 197 2025-04-05 17:15:12

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main() { char a[1005]; char b[1005]; cin>>a>>b; if(strlen(a)=strlen(b)){ cout<<"yes"; } else{ cout<<"no"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:14: error: lvalue required as left operand of assignment
  if(strlen(a)=strlen(b)){
              ^