criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main() {
  
  int H, W;
  char A;
  cin >> H, W;
  cin >> A;
  
  vector<vector<char>> A (H, vector<char>(W))
  
 int N;
  
    for(int i = 0; i< N; i++) {
    if(1 <= H, W <= 1000) {
      if(A == '#'||'.') {
      if(data.at(i-1).(j)=='#'
         ||data.at(i+1).at(j)=='#'
         ||data.at(i).at(j-1)=='#'
         ||data.at(i).at(j+1)=='#'){
        data.at(i).at(j)=='#'
     }
   }
    }
    }
  
  cout << N <<endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: conflicting declaration 'std::vector<std::vector<char> > A'
   11 |   vector<vector<char>> A (H, vector<char>(W))
      |                        ^
a.cc:7:8: note: previous declaration as 'char A'
    7 |   char A;
      |        ^
a.cc:15:23: error: 'N' was not declared in this scope
   15 |     for(int i = 0; i< N; i++) {
      |                       ^
a.cc:18:15: error: overloaded function with no contextual type information
   18 |       if(data.at(i-1).(j)=='#'
      |               ^~
a.cc:18:23: error: expected unqualified-id before '(' token
   18 |       if(data.at(i-1).(j)=='#'
      |                       ^
a.cc:18:24: error: 'j' was not declared in this scope
   18 |       if(data.at(i-1).(j)=='#'
      |                        ^
a.cc:19:17: error: overloaded function with no contextual type information
   19 |          ||data.at(i+1).at(j)=='#'
      |                 ^~
a.cc:20:17: error: overloaded function with no contextual type information
   20 |          ||data.at(i).at(j-1)=='#'
      |                 ^~
a.cc:21:17: error: overloaded function with no contextual type information
   21 |          ||data.at(i).at(j+1)=='#'){
      |                 ^~
a.cc:22:14: error: overloaded function with no contextual type information
   22 |         data.at(i).at(j)=='#'
      |              ^~
a.cc:28:11: error: 'N' was not declared in this scope
   28 |   cout << N <<endl;
      |           ^
Language: C++



def check():
    for i in range(H):
        if '.' in A[i]:
            return False
    return True


if __name__ == "__main__":
    H, W = map(int, input().split())
    A = []
    a_row_flame = ['!'] * (W+2)
    A.append(a_row_flame)
    for i in range(H):
        row = input()
        a_row = []
        a_row.append('!')
        for j in range(W):
            if row[j] == '.':
                a_row.append('.')
            else:
                a_row.append('#')
        a_row.append('!')
        A.append(a_row)
    A.append(a_row_flame)

    count = 0
    while(check() == False):
        stocks = []
        for i in range(1, H+1):
            for j in range(1, W+1):
                # print('i:' + str(i) + ', j:' + str(j))
                if A[i][j] == '#':
                    if A[i-1][j] == '.':
                        stocks.append((i-1, j))
                    if A[i+1][j] == '.':
                        stocks.append((i+1, j))
                    if A[i][j-1] == '.':
                        stocks.append((i, j-1))
                    if A[i][j+1] == '.':
                        stocks.append((i, j+1))
        # print('stocks')
        # print(stocks)
        for stock in stocks:
            A[stock[0]][stock[1]] = '#'
        count += 1

    print(count)


Compiler output:
a.cc:33:19: error: invalid preprocessing directive #print
   33 |                 # print('i:' + str(i) + ', j:' + str(j))
      |                   ^~~~~
a.cc:43:11: error: invalid preprocessing directive #print
   43 |         # print('stocks')
      |           ^~~~~
a.cc:44:11: error: invalid preprocessing directive #print
   44 |         # print(stocks)
      |           ^~~~~
a.cc:3:1: error: 'def' does not name a type
    3 | def check():
      | ^~~
Language: C++

#include<cstdio>
#include<utility>
#include<string>
#include<vector>
#define INF 100000000
using namespace std;
int main(){
  int h,w,w_cnt,cnt=0,tx,ty,c;
  vector<pair<int,int>> p;
  char a;
  pair<int,int> tmp;
  scanf("%d%d",&h,&w);
  w_cnt=h*w;
  int brack[1000][1000];
  for(int i=0;i<h;i++){
    string s;
    cin >> s;
    for(int j=0;j<w;j++){
      if(s[j]=='#'){
        brack[i][j]=0;
        w_cnt--;
        p.push_back(make_pair(i,j));
      }else{
        brack[i][j]=INF;
      }
    }
  }
   while(w_cnt!=0){
    tmp = *(p.end()-1);
    p.erase(p.end()-1);
    tx=tmp.first;
    ty=tmp.second-1;
    if(ty>=0){
      if(brack[tx][ty]==INF){
        p.push_back(make_pair(tx,ty));
        brack[tx][ty]=brack[tmp.first][tmp.second]+1;
        w_cnt--;
      }
    }
    ty=tmp.second+1;
    if(ty<=w-1){
      if(brack[tx][ty]==INF){
        p.push_back(make_pair(tx,ty));
        brack[tx][ty]=brack[tmp.first][tmp.second]+1;
        w_cnt--;
      }
    }
    ty=tmp.second;
    tx=tmp.first-1;
    if(tx>=0){
      if(brack[tx][ty]==INF){
        p.push_back(make_pair(tx,ty));
        brack[tx][ty]=brack[tmp.first][tmp.second]+1;
        w_cnt--;
      }
    }
    tx=tmp.first+1;
    if(tx<=h-1){
      if(brack[tx][ty]==INF){
        p.push_back(make_pair(tx,ty));
        brack[tx][ty]=brack[tmp.first][tmp.second]+1;
        w_cnt--;
      }
    }
        cnt = (cnt > brack[tmp.first][tmp.second]+1)?cnt:brack[tmp.first][tmp.second]+1;
  }
  printf("%d\n",cnt);

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'cin' was not declared in this scope
   17 |     cin >> s;
      |     ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<vector>
  +++ |+#include <iostream>
    5 | #define INF 100000000
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
	int h,w;
	cin >> h >> w;
	vector<vector <char> > a(h,vector<char>(w));
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			cin >> a.at(i)(j);
		}
	}

	int count=1,ans=0;
	while(count!=0){
	count=0;
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			if(a.at(i)(j)=='.')
				count++;
			if(a.at(i)(j)=='#'){
				if(i-1>=0)
					a.at(i-1)(j)=='#';
				if(j-1>=0)
					a.at(i)(j-1)=='#';
				if(i+1<h)
					a.at(i+1)(j)=='#';
				if(j+1<w)
					a.at(i)(j+1)=='#';
			}

			}
		}
	ans++;
	}
	cout <<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:39: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   10 |                         cin >> a.at(i)(j);
      |                                ~~~~~~~^~~
a.cc:19:35: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   19 |                         if(a.at(i)(j)=='.')
      |                            ~~~~~~~^~~
a.cc:21:35: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   21 |                         if(a.at(i)(j)=='#'){
      |                            ~~~~~~~^~~
a.cc:23:50: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   23 |                                         a.at(i-1)(j)=='#';
      |                                         ~~~~~~~~~^~~
a.cc:25:48: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int)'
   25 |                                         a.at(i)(j-1)=='#';
      |                                         ~~~~~~~^~~~~
a.cc:27:50: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   27 |                                         a.at(i+1)(j)=='#';
      |                                         ~~~~~~~~~^~~
a.cc:29:48: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int)'
   29 |                                         a.at(i)(j+1)=='#';
      |                                         ~~~~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
	int h,w;
	cin >> h >> w;
	vector<vector <char> > a(h)(vector<char>(w));
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			cin >> a.at(i)(j);
		}
	}

	int count=1,ans=0;
	while(count!=0){
	count=0;
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			if(a.at(i)(j)=='.')
				count++;
			if(a.at(i)(j)=='#'){
				if(i-1>=0)
					a.at(i-1)(j)=='#';
				if(j-1>=0)
					a.at(i)(j-1)=='#';
				if(i+1<h)
					a.at(i+1)(j)=='#';
				if(j+1<w)
					a.at(i)(j+1)=='#';
			}

			}
		}
	ans++;
	}
	cout <<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ',' or ';' before '(' token
    7 |         vector<vector <char> > a(h)(vector<char>(w));
      |                                    ^
a.cc:10:39: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   10 |                         cin >> a.at(i)(j);
      |                                ~~~~~~~^~~
a.cc:19:35: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   19 |                         if(a.at(i)(j)=='.')
      |                            ~~~~~~~^~~
a.cc:21:35: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   21 |                         if(a.at(i)(j)=='#'){
      |                            ~~~~~~~^~~
a.cc:23:50: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   23 |                                         a.at(i-1)(j)=='#';
      |                                         ~~~~~~~~~^~~
a.cc:25:48: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int)'
   25 |                                         a.at(i)(j-1)=='#';
      |                                         ~~~~~~~^~~~~
a.cc:27:50: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   27 |                                         a.at(i+1)(j)=='#';
      |                                         ~~~~~~~~~^~~
a.cc:29:48: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int)'
   29 |                                         a.at(i)(j+1)=='#';
      |                                         ~~~~~~~^~~~~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<vector>
#include<algorithm>
#define pb push_back
#define rep(i, a, b) for(int i=(a); i<(b); i++)

int main(){
  int H,W;
  cin>> H >> W;
  char A[1000][1000]={};
  vector<pair<int,int> > wPos;
  vector<pair<int,int> > bPos;
  bool flag = false;
  int white = 0;
  int result = 0;
  int dist = 1000000;
  rep(i, 0, H){
    rep(j, 0, W){
      cin >> A[i][j];
      if(A[i][j] == '.') {
	wPos.pb(make_pair(i,j));
      }else{
	bPos.pb(make_pair(i,j));
      }
    }
  }
  

  rep(j, 0, bPos.size()){
  
  }
  result = max(result, dist);
  dist = 1000000;
  }
  cout<<result<<endl;
  return 0;
}


Compiler output:
a.cc:37:3: error: 'cout' does not name a type
   37 |   cout<<result<<endl;
      |   ^~~~
a.cc:38:3: error: expected unqualified-id before 'return'
   38 |   return 0;
      |   ^~~~~~
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

bool kt(char a[1001][1001], int h,int w)
{
    int i,j;
    for(i=0;i<h;i++)
        for(j=0;j<w;j++)
            if(a[i][j]=='.')
                return false;
    return true;
}

int main()
{
    char a[1001][1001];
    int i,j;
    int h,w,
        dem=0;

    cin>>h>>w;
    for(i=1;i<=h;i++)
        for(j=1;j<=w;j++)
            cin>>a[i][j];

    while(kt(a,h,w)==false)
    {
        for(i=1;i<=h;i+=3)
            for(j=1;j<=w;j+=)
                if(a[i][j]=='#')
                {
                    a[i][j+1]='#';
                    a[i][j-1]='#';
                    a[i+1][j]='#';
                    a[i-1][j]='#';
                }
        dem++;
    }
    cout<<dem;

return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:29: error: expected primary-expression before ')' token
   30 |             for(j=1;j<=w;j+=)
      |                             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int H, W;
  cin >> H >> W;
  int white = 0;
  int i, j
  vector<vector<char>> A(H + 2, vector<char>(W + 2));
  for(i = 0; i < H + 2; i++){
    if(i == 0 || i == H + 1){
      for(j = 0; j < W + 2; j++) A.at(i).at(j) = 'o';
      continue;
    }
    for(j = 0; j < W + 2; j++){
      if(j == 0 || j == W + 1){
        A.at(i).at(j) = 'o';
        continue;
      }
      cin >> A.at(i).at(j);
      if(A.at(i).at(j) == '.') white += 1;
    }
  }
  vector<vector<char>> B(H + 2, vector<char>(W + 2));
  B = A;
  
  int count = 0;
  while(true){
    if(white == 0) break;
    for(i = 1; i < H + 1; i++){
      for(j = 1; j < W + 1; j++){
        if(A.at(i).at(j) == '.'){
          if(B.at(i - 1).at(j) == '#' || B.at(i).at(j - 1) == '#' || B.at(i).at(j + 1) == '#' || B.at(i + 1).at(j) == '#'){
            A.at(i).at(j) = '#';
            white -= 1;
          }
        }
      }
    }
    count += 1;
    B = A;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'vector'
    9 |   vector<vector<char>> A(H + 2, vector<char>(W + 2));
      |   ^~~~~~
a.cc:12:11: error: 'j' was not declared in this scope
   12 |       for(j = 0; j < W + 2; j++) A.at(i).at(j) = 'o';
      |           ^
a.cc:12:34: error: 'A' was not declared in this scope
   12 |       for(j = 0; j < W + 2; j++) A.at(i).at(j) = 'o';
      |                                  ^
a.cc:15:9: error: 'j' was not declared in this scope
   15 |     for(j = 0; j < W + 2; j++){
      |         ^
a.cc:17:9: error: 'A' was not declared in this scope
   17 |         A.at(i).at(j) = 'o';
      |         ^
a.cc:20:14: error: 'A' was not declared in this scope
   20 |       cin >> A.at(i).at(j);
      |              ^
a.cc:25:7: error: 'A' was not declared in this scope
   25 |   B = A;
      |       ^
a.cc:31:11: error: 'j' was not declared in this scope
   31 |       for(j = 1; j < W + 1; j++){
      |           ^
Language: C++

#include <bits/stdc++.h>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
    int h,w,c=0,d=0;
    cin >> h >> w;
    vector<int> a(h*w);
    for(int i=0;i<h*w;i++){
            cin >> a[i];
            if(a[i]!='#') d++;
    }
    while(d>0){
    for(int i=0;i<h*w;i++){
        if(a[i]=='#'){
            if(a[i-w]!='#'){a[i-w]='#'; d--+}
            if(a[i+w]!='#'){a[i+w]='#'; d--;}
            if(i%(w-1)!=0||i!=0||i%w!=0){
                if(a[i-1]!='#'){a[i-1]='#'; d--;}
                if(a[i+1]!='#'){a[i+1]='#'; d--;}
            }
            c++;
        }
    }
    }
    cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:45: error: expected primary-expression before '}' token
   19 |             if(a[i-w]!='#'){a[i-w]='#'; d--+}
      |                                             ^
Language: C++

#include<iostream>
#include<cmath>
#include<queue>
#include<algorithm>
#include<string>
using namespace std;
const int INF=100000000;
typedef pair<int,int> P;
int d[1001][1001];
int i,j;
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
int n,m;
char maze[1001][1001];
int cnt=0;

int bfs(){
  queue<P> que;
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
        d[i][j]=INF;
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
      if(maze[i][j]=='#'){
        int sx=i,sy=j;
        que.push(P(sx,sy)); d[sx][sy]=0;
      }
    }
  }
        while(que.size()){
          P p=que.front(); que.pop();

          for(i=0;i<4;i++){
            int nx=p.first+dx[i];
            int ny=p.second+dy[i];
            if(0<=nx and nx<n and 0<=ny and ny<m and maze[nx][ny]=='.' and d[nx][ny]==INF){
              que.push(P(nx,ny));
              d[nx][ny]=d[p.first][p.second]+1;
              maze[nx][ny]=='#'
            }
          }
        }
    int ans;
    for(i=0;i<n;i++){
      for(j=0;j<m;j++){
        ans=max(0,d[i][j]);
      }
    }
    return ans;
}

int main(){
  cin>>n>>m;
  for(i=0;i<n;i++){
    for(j=0;j<m;j++){
      cin>>maze[i][j];
    }
  }
  int cnt=bfs();
  cout<<cnt<<endl;
}


Compiler output:
a.cc: In function 'int bfs()':
a.cc:41:32: error: expected ';' before '}' token
   41 |               maze[nx][ny]=='#'
      |                                ^
      |                                ;
   42 |             }
      |             ~
Language: C++

#include <iostream>
namespace std

int main(){
	char grid[50][50];
  	int x;
  	int y;
  	int maxX;
  	int maxY;
  	int steps = 0;
  	bool LightYet = true;
  	cin>>maxX;
  	cin>>maxY;
  	while(LightYet){
    	for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '#'){
                  if(grid[y + 1][x] == '.'){
                    grid[y + 1][x] = '!';
                  }
                 if(grid[y - 1][x] == '.'){
                    grid[y - 1][x] = '!';
                  }
                  if(grid[y][x + 1] == '.'){
                    grid[y][x + 1] = '!';
                  }
                  if(grid[y][x- 1] == '.'){
                    grid[y][x - 1] = '!';
                  }
                    steps++;
              	}
          	}
      	}
      	
      for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '!'){
                    grid[y][x] = '#';
              	}
          	}
      	}
      
      LightYet = false;
      for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '.'){
                    LightYet = true;
              	}
          	}
      	}
    }
  	
  cout<<steps;
}

Compiler output:
a.cc:4:1: error: expected '{' before 'int'
    4 | int main(){
      | ^~~
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |         cin>>maxX;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:53:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   53 |   cout<<steps;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
namespace std;

int main(){
	char grid[50][50];
  	int x;
  	int y;
  	int maxX;
  	int maxY;
  	int steps = 0;
  	bool LightYet = true;
  	cin>>maxX;
  	cin>>maxY;
  	while(LightYet){
    	for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '#'){
                  if(grid[y + 1][x] == '.'){
                    grid[y + 1][x] = '!';
                  }
                 if(grid[y - 1][x] == '.'){
                    grid[y - 1][x] = '!';
                  }
                  if(grid[y][x + 1] == '.'){
                    grid[y][x + 1] = '!';
                  }
                  if(grid[y][x- 1] == '.'){
                    grid[y][x - 1] = '!';
                  }
                    steps++;
              	}
          	}
      	}
      	
      for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '!'){
                    grid[y][x] = '#';
              	}
          	}
      	}
      
      LightYet = false;
      for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '.'){
                    LightYet = true;
              	}
          	}
      	}
    }
  	
  cout<<steps;
}

Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |         cin>>maxX;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:53:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   53 |   cout<<steps;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

//#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;


int main() {
	int H, W;
	cin >> H >> W;
	vector<vector<char>> A(H, vector<char>(W));

	vector<vector<int>> black;
	vector<vector<int>> white;
	for (int i = 0; i < H; i++) {
		for (int j = 0; j < W; j++) {
			cin >> A[i][j];
			if (A[i][j] == '#') black.emplace_back(vector<int>({ i,j }));
			else {
				white.emplace_back(vector<int>({ i,j }));
			}
		}
	}

	if (black.size() == H * W) {
		cout << 0 << endl;
		return 1;
	}

	int res = INT_MIN;

	for(int i=0;i < white.size();i++){
		int tmp = INT_MAX;
		for (int k = 0; k < black.size(); k++) {
			tmp = min(tmp, abs(white[i][0] - black[k][0]) + abs(white[i][1] - black[k][1]));
		}	
		res = max(res, tmp);
	}

	cout << res << endl;
	return 1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:19: error: 'INT_MIN' was not declared in this scope
   30 |         int res = INT_MIN;
      |                   ^~~~~~~
a.cc:5:1: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include <vector>
  +++ |+#include <climits>
    5 | using namespace std;
a.cc:33:27: error: 'INT_MAX' was not declared in this scope
   33 |                 int tmp = INT_MAX;
      |                           ^~~~~~~
a.cc:33:27: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
Language: C

#include<stdio.h>
int main(){
int h;
int w;
scanf("%d %d",&h,&w);
char a[h];
for(int j=0;j<h;j++){scanf("%s",a[j]);}
int b[h*w];
int ans=0;
for(int j=0;j<h;j++){for(int k=0;k<w;k++){
int p=0,q=0;
while(a[j+p][k]=="." || a[j][k+q]=="."){p++;q++;}
if(p<q){b[j*h+k]=p;}else{b[j*h+k]=q;}
if(ans<b[j*h+k]){ans=b[j*h+k];}
}}
printf("%d",ans);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:13: error: subscripted value is neither array nor pointer nor vector
   12 | while(a[j+p][k]=="." || a[j][k+q]=="."){p++;q++;}
      |             ^
main.c:12:29: error: subscripted value is neither array nor pointer nor vector
   12 | while(a[j+p][k]=="." || a[j][k+q]=="."){p++;q++;}
      |                             ^
Language: C++

#ifdef __GNUC__ 
#include <bits/stdc++.h>
#pragma GCC optimize ("O3") 
#pragma GCC target ("avx")

#endif
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/dynamic_bitset.hpp>
using namespace std;
vector<pair<int, int> > pointbuf[4][4];

int main() {
	int h, w;
	string s;
	cin >> h >> w;
	boost::dynamic_bitset<> buf(h*w);
	boost::dynamic_bitset<> mask1(h*w);
	boost::dynamic_bitset<> mask2(h*w);
	int linetmp = 0, n = 0;
	int col = 0;
	for (int i = 0; i < h; ++i) {
		cin >> s;
		//n = 0;
		col = 0;
		mask1.set(n);
		for (auto c : s) {
			if (c == '#') {
				buf.set(n);
				//pointbuf[linetmp / 250][col / 250].emplace_back(linetmp, col);
			}
			++n; ++col;
		}
		mask2.set(n - 1);
		linetmp++;
	}
	/*
	unsigned int bucketcount = 0;
	for (int i = 0; i < 4; ++i) {
		for (int j = 0; j < 4; ++j) {
			if (pointbuf[i][j].size() > 0) {
				bucketcount |= 1 << (i * 4 + j);
			}
		}
	}*/
	//if (bucketcount == 0xffff) {
		n = 0;
		mask1.flip();
		mask2.flip();
		while (!buf.all()) {
			//boost::dynamic_bitset<> tmp(buf&mask);
			buf |= (mask1 << 1) | (mask2 >> 1) | (buf >> w) | (buf << w);
			++n;
	//}
	cout << n << endl;
	//}
	//else {
	//}
}


Compiler output:
a.cc:7:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    7 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<studio.h>
int main(){
int h;
int w;
scanf("%d %d",&h,&w);
char a[h];
for(int j=0;j<h;j++){scanf("%s",a[j]);}
int b[h*w];
int ans=0;
for(int j=0;j<h;j++){for(int k=0;k<w;k++){
int p=0,q=0;
while(a[j+p][k]=="." || a[j][k+q]=="."){p++;q++;}
if(p<q){b[j*h+k]=p;}else{b[j*h+k]=q;}
if(ans<b[j*h+k]){ans=b[j*h+k];}
}}
printf("%d",ans);
return 0;
}

Compiler output:
main.c:1:9: fatal error: studio.h: No such file or directory
    1 | #include<studio.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

int main(){
	char grid[50][50];
  	int x;
  	int y;
  	int maxX;
  	int maxY;
  	int steps = 0;
  	bool LightYet = true;
  	cin>>maxX;
  	cin>>maxY;
  	while(LightYet){
    	for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '#'){
                  if(grid[y + 1][x] == '.'){
                    grid[y + 1][x] = '!';
                  }
                 if(grid[y - 1][x] == '.'){
                    grid[y - 1][x] = '!';
                  }
                  if(grid[y][x + 1] == '.'){
                    grid[y][x + 1] = '!';
                  }
                  if(grid[y][x- 1] == '.'){
                    grid[y][x - 1] = '!';
                  }
                    steps++;
              	}
          	}
      	}
      	
      for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '!'){
                    grid[y][x] = '#';
              	}
          	}
      	}
      
      LightYet = false;
      for(y=0;y<maxY;y++){
          	for(x=0;x<maxX;x++){
              	if(grid[y][x] == '.'){
                    LightYet = true;
              	}
          	}
      	}
    }
  	
  cout<<steps;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin>>maxX;
      |         ^~~
a.cc:50:3: error: 'cout' was not declared in this scope
   50 |   cout<<steps;
      |   ^~~~
Language: C++

#include "pch.h"
#include<iostream>
#include<string>
#include<algorithm>
#define LIMIT 1003
using namespace std;
int main()
{
	int h, w;
	char a[LIMIT][LIMIT];
	char tugi[LIMIT][LIMIT];
	int num[LIMIT][LIMIT];
	char tmp[LIMIT];
	int i, j, ans = 0;

	cin >> h >> w;
	for (i = 0; i < h; i++) {
		cin >> tmp;
		for (j = 0; j < w; j++) {
			if (tmp[j] == '#') {
				num[i+1][j + 1] = 0;
			}
			else {
				num[i+1][j + 1] = LIMIT * LIMIT;
			}
		}
	}

	while (1) {
		bool check = true;
		for (i = 1; i <= h; i++) {
			for (j = 1; j <= w; j++) {
				if (num[i][j] == ans) {
					num[i - 1][j] = min(num[i-1][j],ans + 1);
					num[i][j - 1] = min(num[i][j-1], ans + 1);
					num[i + 1][j] = min(num[i + 1][j], ans + 1);
					num[i][j + 1] = min(num[i][j+1], ans + 1);
					check = false;
				}
			}
		}
		if(check==true){
			cout << ans-1 << endl;
			return 0;
		}
		else {
			ans++;
		}
	}

	/*
	cin >> h >> w;
	for (i = 0; i < h; i++) {
		cin >> tmp;
		for (j = 0; j <= w; j++) {
			tugi[i+1][j+1] = a[i+1][j+1]=tmp[j];
		}
	}

	bool check;
	while (1) {
		check = true;
		for (i = 1; i <= h; i++) {
			for (j = 1; j <= w; j++) {
				if (a[i][j] == '#') {
					tugi[i - 1][j] = '#';
					tugi[i][j - 1] = '#';
					tugi[i + 1][j] = '#';
					tugi[i][j + 1] = '#';
				}
				else {
					check = false;
				}
			}
		}
		if (check == true) {
			cout << ans << endl;
			return 0;
		}
		else {
			for (i = 1; i <= h; i++) {
				for (j = 1; j <= w; j++) {
					a[i][j] = tugi[i][j];
				}
			}
			ans++;
		}
	}
	*/
	
	return 0;
}


Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
	int h,w;
	cin >> h >> w;
	vector<vector <char> > a(h)(vector<int>(w,0));
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			cin >> a.at(i)(j);
		}
	}

	int count=1,ans=0;
	while(count!=0){
	count=0;
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			if(a.at(i)(j)=='.')
				count++;
			if(a.at(i)(j)=='#'){
				if(i-1>=0)
					a.at(i-1)(j)=='#';
				if(j-1>=0)
					a.at(i)(j-1)=='#';
				if(i+1<h)
					a.at(i+1)(j)=='#';
				if(j+1<w)
					a.at(i)(j+1)=='#';
			}

			}
		}
	ans++;
	}
	cout <<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ',' or ';' before '(' token
    7 |         vector<vector <char> > a(h)(vector<int>(w,0));
      |                                    ^
a.cc:10:39: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   10 |                         cin >> a.at(i)(j);
      |                                ~~~~~~~^~~
a.cc:19:35: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   19 |                         if(a.at(i)(j)=='.')
      |                            ~~~~~~~^~~
a.cc:21:35: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   21 |                         if(a.at(i)(j)=='#'){
      |                            ~~~~~~~^~~
a.cc:23:50: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   23 |                                         a.at(i-1)(j)=='#';
      |                                         ~~~~~~~~~^~~
a.cc:25:48: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int)'
   25 |                                         a.at(i)(j-1)=='#';
      |                                         ~~~~~~~^~~~~
a.cc:27:50: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   27 |                                         a.at(i+1)(j)=='#';
      |                                         ~~~~~~~~~^~~
a.cc:29:48: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int)'
   29 |                                         a.at(i)(j+1)=='#';
      |                                         ~~~~~~~^~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
char s;
int main(){
  int H,W;
  cin>>H>>W;
  char A[H][W];
  int ai[H*W];
  int aj[H*W];
  int tm=0;
  
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cin>>s;
      A[i][j]=s;
      if(s=='#'){
	ai[tm]=i;
	aj[tm]=j;
	tm++;
      }
    }
  }

  int max=0;
  int min;
  int tmpi,tmpj;
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      s=A[i][j];
      if(s=='.'){
	min=H*W;
	for(int f=0;f<tm;f++){
	  if()
	  tmpi=abs(ai[f]-i);
	  tmpj=abs(aj[f]-j);
	  if(tmpi+tmpj<min)min=tmpi+tmpj;
	}
	if(min>max)max = min;
      }
    }
  }
 
  
  cout<<max<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:14: error: expected primary-expression before ')' token
   34 |           if()
      |              ^
Language: C++

#include<iostream>
using namespace std;

int Number(int A[][][],int H,int W){
    int l=0;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            if(A[i][j][]=="#"){
                l++;
            }
        }
    }
    cout<<l<<endl;
    return 0;
}

int Darker( int A[][][],int H,int W){
    int k = 0;
    while(1){
        if(Number( int A[][][],int H,int W)==H*W)break;
        for(int i=0;i<H;i++){
            for(int j=0;j<W;j++){
                if(A[i-1][j][k]=="#"){
                    A[i][j][k+1]="#";
                }else if(A[i+1][j][k]=="#"){
                    A[i][j][k+1]="#";
                }else if(A[i][j-1][k]=="#"){
                    A[i][j][k+1]="#";
                }else if(A[i][j-1][k]=="#"){
                    A[i][j][k+1]="#";
                }else{
                    A[i][j][k]=".";
                }
            }
        k++;
        }
    }
    cout << k <<endl;
    return 0;
}

int main(){
    int H,W,A[1000][1000][2000],k=0;
    cin >> H, W;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            cin>>A[i][j][0];
        }
    }
    Dacker(A,H,W)
    return 0;
}

Compiler output:
a.cc:4:16: error: declaration of 'A' as multidimensional array must have bounds for all dimensions except the first
    4 | int Number(int A[][][],int H,int W){
      |                ^
a.cc:4:23: error: expected ')' before ',' token
    4 | int Number(int A[][][],int H,int W){
      |           ~           ^
      |                       )
a.cc:4:24: error: expected unqualified-id before 'int'
    4 | int Number(int A[][][],int H,int W){
      |                        ^~~
a.cc:17:17: error: declaration of 'A' as multidimensional array must have bounds for all dimensions except the first
   17 | int Darker( int A[][][],int H,int W){
      |                 ^
a.cc:17:24: error: expected ')' before ',' token
   17 | int Darker( int A[][][],int H,int W){
      |           ~            ^
      |                        )
a.cc:17:25: error: expected unqualified-id before 'int'
   17 | int Darker( int A[][][],int H,int W){
      |                         ^~~
a.cc: In function 'int main()':
a.cc:50:5: error: 'Dacker' was not declared in this scope; did you mean 'Darker'?
   50 |     Dacker(A,H,W)
      |     ^~~~~~
      |     Darker
Language: C++

#include <iostream>
const int maxn = 1010;
char map[maxn][maxn];
char tempmap[maxn][maxn];
int x1[4]={1,-1,0,0};
int y1[4]={0,0,1,-1}
int num=0;
void dfs(int i,int j)
{
    int x,y;
    for(int i=0;i<4;i++)
    {
        x=i+x1[i];
        y=j+y1[i];
        if(map[x][y]=='.')
              {
                  map[x][y]='#';
                  num--;
              } 
    }
}
using namespace std;

int main()
{
    int h,w;
    cin>>h>>w;
    int ans=0;
    for(int i=1;i<=h;i++)
        for(int j=1;j<=w;j++)
    {
        char temp;
        cin>>temp;
        map[i][j]=tempmap[i][j]=temp;
        if(map[i][j]=='.')
            num++;
    }
    while(num)
    {
     for(int i=1;i<=h;i++)
        for(int j=1;j<=w;j++)
        {
            if(tempmap[i][j]=='#')
               {
                   dfs(i,j);
               } 
        }
       for(int i=1;i<=h;i++)
        for(int j=1;j<=w;j++)
            tempmap[i][j] = map[i][j];
        ans++;
    }
    cout<<ans;
    return 0;
}


Compiler output:
a.cc:6:5: warning: built-in function 'y1' declared as non-function [-Wbuiltin-declaration-mismatch]
    6 | int y1[4]={0,0,1,-1}
      |     ^~
a.cc:7:1: error: expected ',' or ';' before 'int'
    7 | int num=0;
      | ^~~
a.cc: In function 'void dfs(int, int)':
a.cc:18:19: error: 'num' was not declared in this scope; did you mean 'enum'?
   18 |                   num--;
      |                   ^~~
      |                   enum
a.cc: In function 'int main()':
a.cc:36:13: error: 'num' was not declared in this scope; did you mean 'enum'?
   36 |             num++;
      |             ^~~
      |             enum
a.cc:38:11: error: 'num' was not declared in this scope; did you mean 'enum'?
   38 |     while(num)
      |           ^~~
      |           enum
Language: C++

#include <iostream>
#include <cstdio>
#include <queue>
#include <vector>
#include <stack>
#include <string>
#include <tuple>
#include <random>
#include <map>
#include <set>
#include <complex>
#include <algorithm>
#include <cassert>
#include <iterator>
#include <numeric>
#include <cmath>
#include <stdio.h>
#include <functional>

#define REP(i,a) for(int (i)=0;(i)<(a);i++)
#define RREP(i,a,b) for(int (i)=(a);(i)<(b);i++)
#define all(c) (c).begin(),(c).end()
#define sz(v) (int)(v).size()
#define vi vector<int> 
typedef long long ll;
using namespace std;

int main(void){
    ll H,W;
    cin>>H>>W;
    char A[H+2][W+2];
    ll ans=0;
    RREP(i,1,H+1){
        RREP(j,1,W+1){
            cin>>A[i][j];
            if(A[i][j]=='#'){
                B[i][j]=0;
            }
        }
    }
    int count=0;
    bool flg=false;
    int C[H+2][W+2]={};
    
    while(1){
        RREP(i,1,H+1){
            RREP(j,1,W+1){
                if(A[i][j]=='#'){
                    C[i][j-1]=1;
                    C[i][j+1]=1;  
                    C[i-1][j]=1; 
                    C[i+1][j]=1;
                }
            }
        }
        flg=true;
      	RREP(i,1,H+1){
      	  RREP(j,1,W+1){
      	    if(C[i][j]==1){
      	      A[i][j]='#';
      	      C[i][j]=0;
            }
            if(A[i][j]=='.'){
                     flg=false;
            }
      	  }
     	}
        count++;
        if(flg)break;
    }
    cout<<count;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:17: error: 'B' was not declared in this scope
   37 |                 B[i][j]=0;
      |                 ^
Language: C++

#include<iostream>
#include<queue>
using namespace std;

string S[1001];
int h,w;
queue<pair<int ,int > > yotei;
int matrix_n;
int black_n;

void paint(int x, int y){
    if(x+1<h && S[x+1][y]=='.'){S[x+1][y]='#';black_n++;}
    if(y+1<w && S[x][y+1]=='.'){S[x][y+1]='#';black_n++;}
    if(x-1>=0 && S[x-1][y]=='.'){S[x-1][y]='#';black_n++;}
    if(y-1>=0 && S[x][y-1]=='.'){S[x][y-1]='#';black_n++;}
}

int main(){
    int ans=0;
    black_n=0;
    int black_x, black_y;
    cin>>h>>w;
    matrix_n=h*w;
    for(int i=0; i<h; i++){
        cin>>S[i];
        for(int j=0; j<w; j++){
            if(S[i][j]=='#')black_n++;
            black_x=i;
            black_y=j;
        }
    }
    if(black_n==1 && h>500&&w>500){
        maxi=black_x+black_y;
        maxi=max(maxi, h-1-black_x+black_y);
        maxi=max(maxi, black_x+w-1-black_y);
        maxi=max(maxi, h-1-black_x+w-1-black_y);
        return 0;
    }
    while(black_n<matrix_n){
        //cout<<black_n<<' '<<matrix_n<<endl;
        for(int i=0; i<h; i++){
            for(int j=0; j<w; j++){
                if(S[i][j]=='#'){
                    yotei.push(make_pair(i,j));
                }
            }
        }
        while(!yotei.empty()){
            auto e=yotei.front();
            paint(e.first, e.second);
            yotei.pop();
        }
        ans++;
    }
    cout<<ans<<endl;

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:33:9: error: 'maxi' was not declared in this scope
   33 |         maxi=black_x+black_y;
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;

int number(A[],H,W){
    int l=0;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            if(A[i][j]=="#"){
                l++;
            }
        }
    }
    cout<<l<<endl;
    return 0;
}

int Darker(A[],H,W){
    while(1){
        if(number(A[],H,W)==H*W)break;
        for(int i=0;i<H;i++){
            for(int j=0;j<W;j++){
                if(A[i-1][j][k]=="#"){
                    A[i][j][k+1]="#";
                }else if(A[i+1][j][k]=="#"){
                    A[i][j][k+1]="#";
                }else if(A[i][j-1][k]=="#"){
                    A[i][j][k+1]="#";
                }else if(A[i][j-1][k]=="#"){
                    A[i][j][k+1]="#";
                }else{
                    A[i][j][k]=".";
                }
            }
        k++;
        }
    }
    cout << k <<endl;
    return 0;
}

int main(){
    int H,W,A[1000][1000][2000],k=0;
    cin >> H, W;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            cin>>A[i][j][0];
        }
    }
    Dacker(A,H,W)
    return 0;
}

Compiler output:
a.cc:4:12: error: 'A' was not declared in this scope
    4 | int number(A[],H,W){
      |            ^
a.cc:4:14: error: expected primary-expression before ']' token
    4 | int number(A[],H,W){
      |              ^
a.cc:4:16: error: 'H' was not declared in this scope
    4 | int number(A[],H,W){
      |                ^
a.cc:4:18: error: 'W' was not declared in this scope
    4 | int number(A[],H,W){
      |                  ^
a.cc:4:19: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | int number(A[],H,W){
      |                   ^
a.cc:17:12: error: 'A' was not declared in this scope
   17 | int Darker(A[],H,W){
      |            ^
a.cc:17:14: error: expected primary-expression before ']' token
   17 | int Darker(A[],H,W){
      |              ^
a.cc:17:16: error: 'H' was not declared in this scope
   17 | int Darker(A[],H,W){
      |                ^
a.cc:17:18: error: 'W' was not declared in this scope
   17 | int Darker(A[],H,W){
      |                  ^
a.cc:17:19: error: expression list treated as compound expression in initializer [-fpermissive]
   17 | int Darker(A[],H,W){
      |                   ^
a.cc: In function 'int main()':
a.cc:49:5: error: 'Dacker' was not declared in this scope; did you mean 'Darker'?
   49 |     Dacker(A,H,W)
      |     ^~~~~~
      |     Darker
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    int h,w;
	cin >> h >> w;
	vector<vector <char> > a(h)(w);
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			cin >> a.at(i)(j);
		}
	}

	int count=1,ans=0;
	while(count!=0){
	count=0;
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			if(a.at(i)(j)=='.')
				count++;
			if(a.at(i)(j)=='#'){
				if(i-1>=0)
					a.at(i-1)(j)=='#';
				if(j-1>=0)
					a.at(i)(j-1)=='#';
				if(i+1<h)
					a.at(i+1)(j)=='#';
				if(j+1<w)
					a.at(i)(j+1)=='#';
			}

			}
		}
	ans++;
	}
	cout <<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ',' or ';' before '(' token
    7 |         vector<vector <char> > a(h)(w);
      |                                    ^
a.cc:10:39: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   10 |                         cin >> a.at(i)(j);
      |                                ~~~~~~~^~~
a.cc:19:35: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   19 |                         if(a.at(i)(j)=='.')
      |                            ~~~~~~~^~~
a.cc:21:35: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   21 |                         if(a.at(i)(j)=='#'){
      |                            ~~~~~~~^~~
a.cc:23:50: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   23 |                                         a.at(i-1)(j)=='#';
      |                                         ~~~~~~~~~^~~
a.cc:25:48: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int)'
   25 |                                         a.at(i)(j-1)=='#';
      |                                         ~~~~~~~^~~~~
a.cc:27:50: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int&)'
   27 |                                         a.at(i+1)(j)=='#';
      |                                         ~~~~~~~~~^~~
a.cc:29:48: error: no match for call to '(__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type {aka std::vector<char>}) (int)'
   29 |                                         a.at(i)(j+1)=='#';
      |                                         ~~~~~~~^~~~~
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
//#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,a,b) for(int i=0;i<b;i++)
#define REP(i,a,b) for(int i=0;i<=b;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
//#define inf (1ll<<60)
#define Yes(f) cout <<(f?"Yes":"No")<<endl//fが真の場合Yesを出力、偽の場合Noを出力
#define yes(f) cout <<(f?"yes":"no")<<endl
#define YES(f) cout <<(f?"YES":"NO")<<endl
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())

using namespace std;

const　int inf=1e9;
const int mod=1e9+7;

//num今の場所の数字
int ans;
void change(int x, int y,int h,int w,int num){
    int hen=0;
    if(x<0||x>=w||y<0||y>=h)
    {
        //hen++;
        return;
    }

    field[y][x]=min(field[y][x],num);

    change(x-1,y,h,w,num+1);
    change(x+1,y,h,w,num+1);
    change(x,y-1,h,w,num+1);
    change(x,y+1,h,w,num+1);
/*
    change[y][x-1];
    change[y][x+1];
    change[y-1][x];
    change[y+1][x];
*/
}

vvi field;
//wをｘ座標として考える
int main(){
    int h,w;
    cin >> h >> w;
    vvi field(h*w,inf);
    int black=0;
    char a;
    int x,y;
    vp black_place(h*w);
    rep(i,h)
    {
        rep(j,w)
        {
            cin >> a;
            if(a=='#'){
                field[i][j]=1;
                black_place[black].fi=j;
                black_place[black].se=i;
                black++;
            }
        }
    }

    //処理
    rep(i,black)
    {
        change(black_place[i].fi,black_place[i].se,h,w,2);
    }

    cout << ans << endl;
}

Compiler output:
a.cc:27:1: error: extended character 　 is not valid in an identifier
   27 | const　int inf=1e9;
      | ^
a.cc:27:1: error: 'const\U00003000int' does not name a type
   27 | const　int inf=1e9;
      | ^~~~~~~~~~
a.cc: In function 'void change(int, int, int, int, int)':
a.cc:40:5: error: 'field' was not declared in this scope
   40 |     field[y][x]=min(field[y][x],num);
      |     ^~~~~
a.cc: In function 'int main()':
a.cc:59:19: error: 'inf' was not declared in this scope; did you mean 'ynf'?
   59 |     vvi field(h*w,inf);
      |                   ^~~
      |                   ynf