Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100587 李禹宸 字符串长度判断 C++ Compile Error 0 MS 0 KB 240 2024-12-08 14:47:42

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char s1[150],s2[150]; int a=0,b=0; cin>>s1>>s2; while(s1[a]!='\0'){ a++; } while(s2[b]!='\0'){ b++; } if(a == b) cout<<"yes"; else cout<<"no;" return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:15:2: error: expected ';' before 'return'
  return 0;
  ^