Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113594 李朋秦 18高度为k的树 C++ Runtime Error 0 MS 264 KB 411 2025-03-16 10:27:54

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){ c+=1; } } return 0; }


Run Info:

Runtime Error:Segmentation fault