Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120870 | 袁龙浩 | 18高度为k的树 | C++ | Runtime Error | 0 MS | 268 KB | 481 | 2025-06-01 15:17:48 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long n,a[101],x=0,k; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } cin>>k; for(int i=1;i<=n;i++){ if(a[i]==k){ x+=1; } } cout<<x; return 0; }
Runtime Error:Segmentation fault