My issue
How should i approach to write a code for these problem I have been stuck in these .
Please Help me out apart from the code that I have been written
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t ;
cin>>t ;
while(t--){
int n ,x ;
cin>>n>>x>>endl ;
int A[n] ;
for(int i =0 ;i<=n ; i++){
cin >>A[i] ;
}
}
return 0;
}
Learning course: Sorting using C++
Problem Link: CodeChef: Practical coding for everyone