| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160812 | 鸡哥 | 18高度为k的树 | C++ | Runtime Error | 1 MS | 268 KB | 238 | 2026-09-26 14:30:33 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[100]={0},n,x,s=0; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } cin>>x; for(int i = 0;i<n;i++){ if(a[i] == x){ s++; } } cout<<s; return 0; }
Runtime Error:Segmentation fault