| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 121508 | 胡汪兵-小胡老师 | 数组输出 | C++ | Runtime Error | 1 MS | 264 KB | 230 | 2025-06-07 15:18:03 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[101],n,gd,cnt=0; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; cin>>gd; for(int i=1;i<=n;i++) if(a[i]==gd) cnt++; cout<<cnt; return 0; }
Runtime Error:Segmentation fault