/in/foo.cc:1:1: error: 'include' does not name a type
include <iostream>
^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:2: error: 'cin' was not declared in this scope
cin>>n>>m;
^~~
/in/foo.cc:9:24: error: 'memset' was not declared in this scope
memset(a, 0, sizeof(a));
^
/in/foo.cc:11:20: error: 'min' was not declared in this scope
a[i][min(i-1,31-i)]=1;
^
/in/foo.cc:20:2: error: 'cout' was not declared in this scope
cout<<a[1][m]<<endl;
^~~~
/in/foo.cc:20:17: error: 'endl' was not declared in this scope
cout<<a[1][m]<<endl;
^~~~