/in/foo.cc: In function 'int main()':
/in/foo.cc:30:6: error: redeclaration of 'int n'
int n, k;
^
/in/foo.cc:6:6: note: 'int n' previously declared here
int n, k;
^
/in/foo.cc:30:9: error: redeclaration of 'int k'
int n, k;
^
/in/foo.cc:6:9: note: 'int k' previously declared here
int n, k;
^
/in/foo.cc:31:6: error: redeclaration of 'int cnt'
int cnt = 0;
^~~
/in/foo.cc:7:6: note: 'int cnt' previously declared here
int cnt = 0;
^~~
/in/foo.cc:33:19: error: redeclaration of 'std::vector<int> num'
vector<int> num(n);
^
/in/foo.cc:9:14: note: 'std::vector<int> num' previously declared here
vector<int> num(n);
^~~
/in/foo.cc:34:6: error: redeclaration of 'int i'
int i, j;
^
/in/foo.cc:10:6: note: 'int i' previously declared here
int i, j;
^
/in/foo.cc:34:9: error: redeclaration of 'int j'
int i, j;
^
/in/foo.cc:10:9: note: 'int j' previously declared here
int i, j;
^
/in/foo.cc:40:26: error: redeclaration of 'std::vector<std::vector<int> > dp'
vector<vector<int> > dp(n, vector<int>(n, 0));
^
/in/foo.cc:16:23: note: 'std::vector<std::vector<int> > dp' previously declared here
vector<vector<int> > dp(n, vector<int>(n, 0));
^~