#include
#include
using namespace std;
int main() {
int T;
int N,D,arr[100];
for( ;T>0;T–)
{
cin>>N>>D;
for(int i=0;i<N;i++)
{
cin>>arr[i];
}
rotate(arr,arr+n,arr+N);
for(int i=0;i<N;i++)
{
cout<<arr[i];
}
}
//code
return 0;
}
This is my code in which T is no of test cases , N = size of array , D=the elements from which array has to be rotated.
The problem here is no output is coming , whats wrong here ??