| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128066 | 唐诗阳 | 如何得到"hello" | C++ | Compile Error | 0 MS | 0 KB | 441 | 2025-07-31 19:14:57 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char a[11501],b[]={hello}; cin>>a; int s1=strlen(N),s=0; for(int i=0;i<s1;i++){ if(a[i]==b[s]){ s++; } } if(s==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:24: error: 'hello' was not declared in this scope
char a[11501],b[]={hello};
^
Main.cc:9:19: error: 'N' was not declared in this scope
int s1=strlen(N),s=0;
^
Main.cc:11:20: error: 's' was not declared in this scope
if(a[i]==b[s]){
^
Main.cc:15:8: error: 's' was not declared in this scope
if(s==5){
^