prog.cpp:5:35: error: ‘vector’ has not been declared
int swapcol(lli i,lli j,lli n,vector<vector<int> > &a)
^~~~~~
prog.cpp:5:41: error: expected ‘,’ or ‘...’ before ‘<’ token
int swapcol(lli i,lli j,lli n,vector<vector<int> > &a)
^
prog.cpp:14:35: error: ‘vector’ has not been declared
int swaprow(lli i,lli j,lli n,vector<vector<int> > &a)
^~~~~~
prog.cpp:14:41: error: expected ‘,’ or ‘...’ before ‘<’ token
int swaprow(lli i,lli j,lli n,vector<vector<int> > &a)
^
prog.cpp:23:21: error: ‘vector’ has not been declared
lli solve(lli n,vector<vector<int> > &a,vector<vector<int> > &b)
^~~~~~
prog.cpp:23:27: error: expected ‘,’ or ‘...’ before ‘<’ token
lli solve(lli n,vector<vector<int> > &a,vector<vector<int> > &b)
^
prog.cpp:70:27: error: ‘vector’ has not been declared
int movesToChessboard(vector<vector<int>>& boards) {
^~~~~~
prog.cpp:70:33: error: expected ‘,’ or ‘...’ before ‘<’ token
int movesToChessboard(vector<vector<int>>& boards) {
^
prog.cpp: In member function ‘int Solution::swapcol(lli, lli, lli, int)’:
prog.cpp:10:18: error: ‘a’ was not declared in this scope
swap(a[k][j],a[k][i]);
^
prog.cpp:10:13: error: ‘swap’ was not declared in this scope
swap(a[k][j],a[k][i]);
^~~~
prog.cpp:10:13: note: suggested alternative: ‘swapcol’
swap(a[k][j],a[k][i]);
^~~~
swapcol
prog.cpp: In member function ‘int Solution::swaprow(lli, lli, lli, int)’:
prog.cpp:19:18: error: ‘a’ was not declared in this scope
swap(a[j][k],a[i][k]);
^
prog.cpp:19:13: error: ‘swap’ was not declared in this scope
swap(a[j][k],a[i][k]);
^~~~
prog.cpp:19:13: note: suggested alternative: ‘swapcol’
swap(a[j][k],a[i][k]);
^~~~
swapcol
prog.cpp: In member function ‘lli Solution::solve(lli, int)’:
prog.cpp:29:16: error: ‘a’ was not declared in this scope
if(a[0][i]!=b[0][i])
^
prog.cpp:29:25: error: ‘b’ was not declared in this scope
if(a[0][i]!=b[0][i])
^
prog.cpp:44:16: error: ‘a’ was not declared in this scope
if(a[i][0]!=b[i][0])
^
prog.cpp:44:25: error: ‘b’ was not declared in this scope
if(a[i][0]!=b[i][0])
^
prog.cpp:62:20: error: ‘a’ was not declared in this scope
if(a[i][j]!=b[i][j])
^
prog.cpp:62:29: error: ‘b’ was not declared in this scope
if(a[i][j]!=b[i][j])
^
prog.cpp: In member function ‘int Solution::movesToChessboard(int)’:
prog.cpp:71:9: error: ‘vector’ was not declared in this scope
vector<vector<int>> a=boards;
^~~~~~
prog.cpp:71:23: error: expected primary-expression before ‘int’
vector<vector<int>> a=boards;
^~~
prog.cpp:72:15: error: ‘a’ was not declared in this scope
int n=a[0].size();
^
prog.cpp:80:17: error: ‘cin’ was not declared in this scope
cin>>a[i][j];
^~~
prog.cpp:90:20: error: ‘abs’ was not declared in this scope
if(abs(cnt[1]-cnt[0])!=1)
^~~
prog.cpp:109:20: error: ‘abs’ was not declared in this scope
if(abs(cnt[1]-cnt[0])!=1)
^~~
prog.cpp:114:23: error: expected primary-expression before ‘int’
vector<vector<int> > b;
^~~
prog.cpp:117:20: error: expected primary-expression before ‘int’
vector<int> v;
^~~
prog.cpp:120:17: error: ‘v’ was not declared in this scope
v.push_back((i+j)%2);
^
prog.cpp:122:13: error: ‘b’ was not declared in this scope
b.push_back(v);
^
prog.cpp:122:25: error: ‘v’ was not declared in this scope
b.push_back(v);
^
prog.cpp:124:23: error: expected primary-expression before ‘int’
vector<vector<int> > c=a;
^~~
prog.cpp:125:27: error: ‘b’ was not declared in this scope
lli ans=solve(n,a,b);
^
prog.cpp:132:25: error: ‘c’ was not declared in this scope
a[i][j]=c[i][j];
^
prog.cpp:135:13: error: ‘min’ was not declared in this scope
ans=min(ans,solve(n,a,b));
^~~