-++++++#include<bits/stdc++.h> using namespace std; int main() { int n,k; cin>>n>>k; int h[n]; for(int i=0;i<n;i++) cin>>h[i]; sort(h,h+n); if(k<n) { int y; if(n%2==0) y=(n/k); else y=(n/k)+1; // cout<<y<<endl; int u=0; for(int i=0;i<y-1;i++) u=u+h[i]; cout<<u+h[n-1]<<endl; } else cout<<h[n-1]<<endl; return 0; } which test case it if failing?
whatb issecond test case which it is fsailing?