| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155857 | 王晏林 | 如何得到"hello" | C++ | Compile Error | 0 MS | 0 KB | 345 | 2026-06-14 11:13:52 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[1501]; cin>>a; int b[5]={'h','e','l','l','o'}; int c=0; int h=strlen(a); for(int i=0;i<h;i++){ if(a[i]==b[c]){ c++; } } if(c==5){ cout<<"YES" }else{ cout<<"NO"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:16:5: error: expected ';' before '}' token
}else{
^