/in/foo.cc: In function 'int main()':
/in/foo.cc:7:12: error: 'string' was not declared in this scope
7 | vector<string> g(R);
| ^~~~~~
/in/foo.cc:4:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
3 | #include <queue>
+++ |+#include <string>
4 | using namespace std;
/in/foo.cc:7:18: error: template argument 1 is invalid
7 | vector<string> g(R);
| ^
/in/foo.cc:7:18: error: template argument 2 is invalid
/in/foo.cc:9:45: error: invalid types 'int[int]' for array subscript
9 | for(int i=0;i<R;i++){ scanf("%s",buf); g[i]=string(buf); }
| ^
/in/foo.cc:15:13: error: invalid types 'int[int]' for array subscript
15 | if(g[i][j]=='#' && !vis[i][j]){
| ^
/in/foo.cc:21:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
21 | if(r<minr)minr=r; if(r>maxr)maxr=r;
| ^~
/in/foo.cc:21:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
21 | if(r<minr)minr=r; if(r>maxr)maxr=r;
| ^~
/in/foo.cc:22:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
22 | if(c<minc)minc=c; if(c>maxc)maxc=c;
| ^~
/in/foo.cc:22:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
22 | if(c<minc)minc=c; if(c>maxc)maxc=c;
| ^~
/in/foo.cc:26:25: error: invalid types 'int[int]' for array subscript
26 | if(g[nr][nc]=='#' && !vis[nr][nc]){ vis[nr][nc]=1; q.push({nr,nc}); }
| ^