/in/foo.cc:6:1: error: expected initializer before 'int'
int i,k;
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:16: error: 'M' was not declared in this scope
memset(M, '0', sizeof(M));
^
/in/foo.cc:14:33: error: 'memset' was not declared in this scope
memset(M, '0', sizeof(M));
^
/in/foo.cc:15:13: error: 'i' was not declared in this scope
for(i=0;i<n;i++)
^
/in/foo.cc:18:21: error: 'k' was not declared in this scope
for(k=x;k<=y;k++)M[k]='1';
^
/in/foo.cc:21:13: error: 'i' was not declared in this scope
for(i=0;i<m;i++)
^