/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:19:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
19 | auto [r,c]=q.front(); q.pop(); area++;
| ^
/in/foo.cc:20:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
20 | if(r<minr)minr=r; if(r>maxr)maxr=r;
| ^~
/in/foo.cc:20:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
20 | if(r<minr)minr=r; if(r>maxr)maxr=r;
| ^~
/in/foo.cc:21:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
21 | if(c<minc)minc=c; if(c>maxc)maxc=c;
| ^~
/in/foo.cc:21:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
21 | if(c<minc)minc=c; if(c>maxc)maxc=c;
| ^~
/in/foo.cc:25:25: error: invalid types 'int[int]' for array subscript
25 | if(g[nr][nc]=='#' && !vis[nr][nc]){ vis[nr][nc]=1; q.push({nr,nc}); }
| ^