Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88293 倪士燊 字符串长度判断 C++ Compile Error 0 MS 0 KB 250 2024-08-19 10:37:54

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; char s[150]; char s2[150] int main(){ cin >> s; int n = strlen(s); int n = strlen(s); if(n == n2) { cout >> "YES"; } else { cout >> "NO" } } return 0; }


Run Info:

Main.cc:5:1: error: expected initializer before 'int'
 int main(){
 ^