| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151464 | 杨金卓 | 18高度为k的树 | C++ | Runtime Error | 1 MS | 272 KB | 235 | 2026-04-12 14:48:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,b=0; cin>>n; int a[105]; for(int i=0;i<n;i++){ cin>>a[i]; } cin>>x; for(int i=0;i<n;i++){ if(a[i]==x){ b++; } } cout<<b; return 0; }
Runtime Error:Segmentation fault