• + 4 comments
    int main() {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT */   
        int i,d,k,n,temp,j;
        cin>>n;
        int a[n];
        
        for(i=0;i<n;i++)
            cin>>a[i];
            
        cin>>d;
                
                for(i=0;i<n;i++)
               cout<<" "<<a[(i + (n - d)) % n];
        return 0;
    }
    

    pls let me knw wats wrng in this?