| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71751 | sh25_ganzy | 查找特定的值 | C++ | Compile Error | 0 MS | 0 KB | 310 | 2025-10-28 10:40:38 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,c=-1; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; } cin>>x; for(int i=0;i<n;i++){ if(a[i]==x){ c=i+1; break; } } cout<<c; return 0;