Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132858 郑景文 字符串相等判断 C++ Compile Error 0 MS 0 KB 204 2025-10-12 14:23:06

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:6: error: expected '(' before 'else'
   if else{
      ^