Error in the solution

can you please check my code it runs sucessfully in local machine
#include
using namespace std;
int main(){

int m,n;
cin>>m>>n;
int arr[m][n];

for(int i=0;i<m;i++){
	for(int j=0;j<n;j++){
		cin>>arr[i][j];
	}
}

//first column
int start_col =0;
int start_row =0;
int end_row = m-1;
int end_col = n-1;

while(start_row<=start_col and end_row>=end_col){
	
	for(int i=start_row;i<=end_row;i++){
		cout<<arr[i][start_col]<<", ";
	}
	start_col++;
	
	for(int i=start_col;i<=end_col;i++){
		cout<<arr[end_row][i]<<", ";
	}
	end_row--;
	
	for(int i=end_row;i>=start_row;i--){
		cout<<arr[i][end_col]<<", ";
	}
	end_col--;
	for(int i=end_col;i>=start_col;i--){
		cout<<arr[start_row][i]<<", ";
		
	}
	start_row++;	
}

}

u are not writing END at the end of output as it is given in sample output.
refer this https://ide.codingblocks.com/s/588978

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.