cin >> n; int arr[n] = new {}; for(int i=0;i<n;i++) {int value; cin>>value;arr[i] = value;}
额,我是这样拿到的,前端的题~好久没写c++了,写得好慢