/in/foo.cc:1:1: error: 'include' does not name a type
include<bits/stdc++.h>
^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:8:22: error: 'a' was not declared in this scope
scanf("%d",&a[i][j]);
^
/in/foo.cc:8:29: error: 'scanf' was not declared in this scope
scanf("%d",&a[i][j]);
^
/in/foo.cc:12:15: error: 'a' was not declared in this scope
while(a[i][j]!=1&&j<=10)
^
/in/foo.cc:18:18: error: 'a' was not declared in this scope
while(a[i][j]!=1&&j>=1)
^
/in/foo.cc:26:12: error: 'a' was not declared in this scope
if(a[i][j]==0&&(a[i][j+1]==2||a[i][j-1]==2||a[i+1][j]==2||a[i-1][j]==2))
^
/in/foo.cc:30:14: error: 'a' was not declared in this scope
if(a[i][j]==0)
^
/in/foo.cc:32:18: error: 'printf' was not declared in this scope
printf("%d",k);
^