| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134270 | 杨登博 | 找错误 | C++ | Runtime Error | 0 MS | 256 KB | 523 | 2025-10-26 14:57:04 |
#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,a[1000000001],max=-1,z=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ if(a[i]<max){ z++; } else{ max=a[i]; } } cout<<z; return 0; }
Runtime Error:Segmentation fault