Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82607 赵文浚 如何得到"hello" C++ Compile Error 0 MS 0 KB 317 2024-07-13 14:18:04

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a[1500]; char b[10] = {'h','e','l','l','o'}; cin>>a; int n=0; for (int i=0;i<strlen(a);i++) { if (a[i] == b[n]) { n++; } } if(n==5) { cout<<"YES"; } else { cout<<"NO"【popjiohuih } return 0; }


Run Info:

Main.cc:22:3: error: stray '\343' in program
   cout<<"NO"【popjiohuih }
   ^
Main.cc:22:3: error: stray '\200' in program
Main.cc:22:3: error: stray '\220' in program
Main.cc: In function 'int main()':
Main.cc:8:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i