/in/foo.cc: In function 'int mov(int, int)':
/in/foo.cc:5:10: error: 'a' was not declared in this scope
if ((h==a)&&(v==b))
^
/in/foo.cc:5:18: error: 'b' was not declared in this scope
if ((h==a)&&(v==b))
^
/in/foo.cc:7:3: error: 'nfr' was not declared in this scope
nfr++;
^~~
/in/foo.cc:8:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
return;
^~~~~~
/in/foo.cc:11:7: error: 'board' was not declared in this scope
if (board[h+1])
^~~~~
/in/foo.cc:22:15: error: return-statement with no value, in function returning 'int' [-fpermissive]
else return;
^~~~~~
/in/foo.cc:23:2: error: return-statement with no value, in function returning 'int' [-fpermissive]
return;
^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:13: error: 'c' was not declared in this scope
cin>>a>>b>>c>>d;
^
/in/foo.cc:29:16: error: 'd' was not declared in this scope
cin>>a>>b>>c>>d;
^
/in/foo.cc:28:10: warning: unused variable 'n' [-Wunused-variable]
int a,b,n,m,i,j,nfr=0; // nfr denotes the number of routes
^
/in/foo.cc:28:12: warning: unused variable 'm' [-Wunused-variable]
int a,b,n,m,i,j,nfr=0; // nfr denotes the number of routes
^