| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151868 | 岑思烁 | 18高度为k的树 | C++ | Compile Error | 0 MS | 0 KB | 298 | 2026-04-19 11:37:23 |
}#include<bits/stdc++.h> using namespace std; int main(){ int n,x,,s=0,a[1000000]; cin>>n; int a[n+1]; for(int i=1;i<=n;i--){ cin>>a[i]; } cin>>x; for(int i=n;i>=x;i++){ if(a[i]==x){ s++; } } cout<<s; return 0; }
Main.cc:2:2: error: stray '#' in program }#include ^ Main.cc:2:1: error: expected declaration before '}' token }#include ^