Arrays-Spiral Print Anticlockwise

#include
using namespace std;
int spiral(int a[][10000],int r,int c){
int srow=0,scol=0,erow=r-1,ecol=c-1;
while(srow<=erow&&scol<=ecol){
for(int i=srow;i<=erow;i++){
cout<<a[i][scol]<<", “;
}
scol++;
for(int j=scol;j<=ecol;j++){
cout<<a[erow][j]<<”, ";
}
erow–;

	if(ecol>scol){
	
			for(int i=erow;i>=srow;i--){
				cout<<a[i][ecol]<<", ";
			}ecol--;	}
			if(erow>srow){
		for(int j=ecol;j>=scol;j--){
			cout<<a[srow][j]<<", ";
		}srow++;
	}

}cout<<“END”;
return 0;}

int main(){
int a[10000][10000]={0},r,c;
cin>>r>>c;
int value=11;
for(int i=0;i<r;i++){
for(int j=0;j<c;j++){
a[i][j]=value++;
}value=value+6;}

spiral(a,r,c);

}
why this code is showing errors?

@tishya_goyal hey tishya please share the code using ide.codingblcoks.com just copy your code on the link and press the save button it will generate a link post that link here so that I can debug your code asap.

@tishya_goyal hey tishya see this link

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.