| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134812 | 欧阳俊懿 | 指针遍历数组 | C++ | Runtime Error | 1 MS | 264 KB | 415 | 2025-11-01 16:05:52 |
#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 n[101]={},a; cin>>a; int *p; for(int i=0;i<a;i++){ cin>>n[i]; cout<<*p<<endl; p++; } return 0; }
Runtime Error:Segmentation fault