prog.cpp:1:1: error: 'vector' does not name a type
vector< string > arr;
^
prog.cpp: In function 'bool check(int, int)':
prog.cpp:8:64: error: 'arr' was not declared in this scope
if( x >= 0 && x < n && y >=0 && y < m && vis[x][y] == 0 && arr[x][y] == 'X' )
^
prog.cpp: At global scope:
prog.cpp:27:11: error: 'vector' was not declared in this scope
int black(vector<string> &A) {
^
prog.cpp:27:18: error: 'string' was not declared in this scope
int black(vector<string> &A) {
^
prog.cpp:27:27: error: 'A' was not declared in this scope
int black(vector<string> &A) {
^
prog.cpp:27:30: error: expected ',' or ';' before '{' token
int black(vector<string> &A) {
^