Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113597 李朋秦 18高度为k的树 C++ Runtime Error 1 MS 272 KB 422 2025-03-16 10:31:50

Tests(0/10):


Code:

#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(){ int a[100],b,c,d=0; cin>>b; for(int e=0;e<b;e++){ cin>>a[e]; } cin>>c; for(int i=0;i<b;i++){ if(a[i]==c){ d+=1; } } cout<<d; return 0; }


Run Info:

Runtime Error:Segmentation fault