What is wrong in this code?

/******************************************************************************

                          Online C++ Compiler.
           Code, Compile, Run and Debug C++ program online.

Write your code in this editor and press “Run” button to compile and execute it.

*******************************************************************************/

#include
#include
using namespace std;
void waveform(int a[][10],int m, int n){
int i;
for (int i=0; i<m; i++){
if (i%2!=0){
for (int j=0; j<n; j++){
cout<<a[i][j]<<",";
}
}
else{
for(int j=n-1;j>=0;j–){
cout<<a[i][j]<<",";
}
}
}
}

int main(){
int m;
int n;

cin>>m>>n;
int a[][10]
for(int i=0;i<m;i++){
for(int j=0;j<m;j++){
cin>>a[i][j];
}
}
waveform(a,m,n);

return 0;
}

Copy and paste your code in a coding blocks IDE. Save it and send me the link. This way it is easier to debug.

I am unable to share link of code from coding blocks IDE.

This code is showing error that ’ i is not defined in this scope;

Copy and paste your code in the link below. Save it and send me the 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.