Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62512 胡家豪 字符串长度判断 C++ Compile Error 0 MS 0 KB 201 2023-12-24 11:14:25

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(A = B){
          ^
Main.cc:10:9: error: 'yes' was not declared in this scope
   cout<