Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111308 秦浩然 如何得到"hello" C++ Compile Error 0 MS 0 KB 293 2025-03-01 11:47:56

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a; string b="hello"; cin>>a; int i=0; int ien=a.size(); for(int j=0;j<len;j++){ if(a[j]==b[i]){ i++; if(i==5){ break; } } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:19: error: 'len' was not declared in this scope
     for(int j=0;j