Its showing error. what is the error pls help me

#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];
	}
}

int sr=0;
int sc=0;
int er=m-1;
int ec=n-1;

while(sr<=er && sc<=ec){
	
	for(int col=sc;col<=ec;col++){
		cout<<arr[sr][col]<<", ";
	}
	sr++;

	for(int row=sr;row<=er;row++){
		cout<<arr[row][ec]<<", ";
	}
	ec--;

	for(int col=ec;col>=sc;col--){
		cout<<arr[er][col]<<", ";
	}
	er--;

	for(int row=er;row>=sr;row--){
		cout<<arr[row][sc]<<", ";
	}
	sc++;
}	
cout<<"END";

return 0;

}

hi @anshul3558_e8c9aa486c392ca3 updated https://ide.codingblocks.com/s/668014

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.