prog.cpp: In function ‘bool check(std::vector<std::vector<bool> >, int, int, int)’:
prog.cpp:21:41: error: expected ‘)’ before ‘;’ token
for(int i=row;int j=col;i>=0 && j>=0;i--,j--)
^
prog.cpp:21:42: error: ‘i’ was not declared in this scope
for(int i=row;int j=col;i>=0 && j>=0;i--,j--)
^
prog.cpp:21:46: error: ‘j’ was not declared in this scope
for(int i=row;int j=col;i>=0 && j>=0;i--,j--)
^
prog.cpp:29:41: error: expected ‘)’ before ‘;’ token
for(int i=row;int j=col;i>=0 &&j<col;i--,j++)
^
prog.cpp: In function ‘bool bck(std::vector<std::vector<bool> >, int, int)’:
prog.cpp:44:13: error: ‘N’ was not declared in this scope
if(row<=N)
^
prog.cpp:54:18: error: ‘col’ was not declared in this scope
arr[row][col] = true;
^~~
prog.cpp: In function ‘int main()’:
prog.cpp:73:48: error: template argument 1 is invalid
vector< <vector<bool> >arr(n,vector<bool>(n));
^
prog.cpp:73:48: error: template argument 2 is invalid
prog.cpp:74:11: error: ‘arr’ was not declared in this scope
if(bck(arr,n,0)==true)
^~~