foo.cc:8:9: error: 'vector' was not declared in this scope
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
foo.cc:8:9: note: suggested alternative: 'perror'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
perror
foo.cc:8:16: error: 'vector' was not declared in this scope
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
foo.cc:8:16: note: suggested alternative: 'perror'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
perror
foo.cc:8:23: error: expected primary-expression before 'int'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~
foo.cc:8:33: error: expected primary-expression before 'int'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~
foo.cc:8:39: error: expected primary-expression before 'int'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~
foo.cc:8:45: error: 'vector' was not declared in this scope
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
foo.cc:8:45: note: suggested alternative: 'perror'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
perror
foo.cc:8:52: error: 'vector' was not declared in this scope
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
foo.cc:8:52: note: suggested alternative: 'perror'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
perror
foo.cc:8:59: error: expected primary-expression before 'int'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~
foo.cc:8:70: error: 'vector' was not declared in this scope
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
foo.cc:8:70: note: suggested alternative: 'perror'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
perror
foo.cc:8:77: error: 'vector' was not declared in this scope
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
foo.cc:8:77: note: suggested alternative: 'perror'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~~~
perror
foo.cc:8:84: error: expected primary-expression before 'bool'
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^~~~
foo.cc:8:94: error: expression list treated as compound expression in initializer [-fpermissive]
int dfs(vector<vector<int> > &M,int i,int j,vector<vector<int> > &dp,vector<vector<bool> > &v)
^
foo.cc: In function 'int main()':
foo.cc:29:2: error: 'vector' was not declared in this scope
vector<vector<int> > M(n, vector<int>(m) );
^~~~~~
foo.cc:29:2: note: suggested alternative: 'perror'
vector<vector<int> > M(n, vector<int>(m) );
^~~~~~
perror
foo.cc:29:16: error: expected primary-expression before 'int'
vector<vector<int> > M(n, vector<int>(m) );
^~~
foo.cc:30:16: error: expected primary-expression before 'int'
vector<vector<int> > dp(n, vector<int>(m,0) );
^~~
foo.cc:31:16: error: expected primary-expression before 'bool'
vector<vector<bool> > v(n, vector<bool>(m,false) );
^~~~
foo.cc:34:12: error: 'M' was not declared in this scope
cin>>M[i][j];
^
foo.cc:32:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<n;i++)
^~~
foo.cc:35:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=0;i<n;i++)
^~~
foo.cc:37:8: error: 'M' was not declared in this scope
dfs(M,0,0,dp,v);
^
foo.cc:37:14: error: 'dp' was not declared in this scope
dfs(M,0,0,dp,v);
^~
foo.cc:37:14: note: suggested alternative: 'dy'
dfs(M,0,0,dp,v);
^~
dy
foo.cc:37:17: error: 'v' was not declared in this scope
dfs(M,0,0,dp,v);
^
foo.cc:37:18: error: 'dfs' cannot be used as a function
dfs(M,0,0,dp,v);
^
foo.cc:38:8: error: 'dp' was not declared in this scope
cout<<dp[0][0];
^~
foo.cc:38:8: note: suggested alternative: 'dy'
cout<<dp[0][0];
^~
dy
[Hydro](https://hydro.ac)提供评测服务