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

#include<cstdio>
#include<algorithm>
#define NoCE AC
using namespace std;
int n,m;
char Map[105][105];
bool VisLine[105],VisRow[105];
int main(){
	scanf("%d%d",&n,&m);
	for(int i=1;i<=n;i++){
		int sum=0;
		gets(Map[i])
		for(int j=0;j<m;j++){
			sum+=(Map[i][j]=='#');
		}
		if(sum==0)VisRow[i]=1;
	}
	for(int i=0;i<m;i++){
		int sum=0;
		for(int  j=1;j<=n;j++){
			sum+=(Map[j][i]=='#');
		}
		if(sum==0)VisLine[i]=1;
	}
	for(int i=1;i<=n;i++){
		for(int j=0;j<m;j++){
			if(!VisLine[j]&&!VisRow[i])printf("%c",Map[i][j]);
		}
		printf("\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |                 gets(Map[i])
      |                 ^~~~
      |                 getw
a.cc:13:29: error: 'j' was not declared in this scope
   13 |                 for(int j=0;j<m;j++){
      |                             ^
Language: C

#include<cstdio>
#define maxn 105
using namespace std;
char s[maxn][maxn];
bool h[maxn],l[maxn];
int main(){
	int n,m;
	scanf("%d%d",&n,&m);
	for(int i=1;i<=n;i++){
		scanf("%s",s[i]+1);
		bool flag=0;
		for(int j=1;j<=m;j++)if(s[i][j]=='#'){flag=1;break;}
		if(!flag)h[i]=1;
	}
	for(int j=1;j<=m;j++){
		bool flag=0;
		for(int i=1;i<=n;i++)if(s[i][j]=='#'){flag=1;break;}
		if(!flag)l[j]=1;
	}
	for(int i=1;i<=n;i++){
		bool flag=0;
		for(int j=1;j<=m;j++){
			if(!h[i]&&!l[j]){
				flag=1;
				putchar(s[i][j]);
			}
		}
		if(flag)putchar('\n');
	}
	return 0;
}

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

#include<cstdio>
#include<algorithm>
#define NoCE AC
using namespace std;
int n,m;
char Map[105][105];
bool VisLine[105],VisRow[105];
int main(){
	scanf("%d%d",&n,&m);
	for(int i=1;i<=n;i++){
		int sum=0;
		gets(Map[i]);
		for(int j=0;j<m;j++){
			sum+=(Map[i][j]=='#');
		}
		if(sum==0)VisRow[i]=1;
	}
	for(int i=0;i<m;i++){
		int sum=0;
		for(int  j=1;j<=n;j++){
			sum+=(Map[j][i]=='#');
		}
		if(sum==0)VisLine[i]=1;
	}
	for(int i=1;i<=n;i++){
		for(int j=0;j<m;j++){
			if(!VisLine[j]&&!VisRow[i])printf("%c",Map[i][j]);
		}
		printf("\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |                 gets(Map[i]);
      |                 ^~~~
      |                 getw
Language: C++


#include<bits/stdc++.h>
using namespace std;
char a[102][102], usedh[102], usedw[102];
int main(){
    int h, w;
    scanf("%d %d", &h, &w);
    gets(a[0]);
    for(int i = 1; i <= h; i++){
        gets(a[i] + 1);
    }
    for(int i = 1; i <= h; i++){
        bool flag = 0;
        for(int j = 1; j <= w; j++){
            if(a[i][j] == '#') flag = 1;
        }
        if(flag == 0){
            usedh[i] = 1;
        }
    }
    for(int j = 1; j <= w; j++){
        bool flag = 0;
        for(int i = 1; i <= h; i++){
            if(a[i][j] == '#') flag = 1;
        }
        if(flag == 0){
            usedw[j] = 1;
        }
    }
    for(int i = 1; i <= h; i++){
        if(usedh[i]) continue;
        for(int j = 1; j <= w; j++){
            if(usedw[j]) continue;
            printf("%c", a[i][j]);
        }
        printf("\n");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(a[0]);
      |     ^~~~
      |     getw
Language: C++

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

int main(){
	string a[100]
	int ret,gyo; cin >> ret >>gyo;
	for(int i = 0;i<ret;i++){
		getline(cin,a[i]);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'int'
    7 |         int ret,gyo; cin >> ret >>gyo;
      |         ^~~
a.cc:7:29: error: 'ret' was not declared in this scope
    7 |         int ret,gyo; cin >> ret >>gyo;
      |                             ^~~
a.cc:7:35: error: 'gyo' was not declared in this scope
    7 |         int ret,gyo; cin >> ret >>gyo;
      |                                   ^~~
a.cc:9:29: error: 'a' was not declared in this scope
    9 |                 getline(cin,a[i]);
      |                             ^
Language: C++

#include<iostream>
#include<string>
#include<vector>

using namespace std;

int main()
{
  int h;
  cin >> h;
  int w;
  cin >> w;
  vector<string>a(h);
  for(int i = 0; i < h; ++i)
  {
    cin >> a[i]
  }
  
  vector<bool>row(h,false);
  vector<bool> col(w, false);
	for (int i = 0; i < h; i++) 
    {
		for (int j = 0; j < w; j++) 
        {
			if (a[i][j] == '#') 
            {
				row[i] = true;
				col[j] = true;
			}
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected ';' before '}' token
   16 |     cin >> a[i]
      |                ^
      |                ;
   17 |   }
      |   ~             
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
Language: C++

#include <iostream>
 
using namespace std;
 
int main(void)
{
  char a[100][100];
  int H, W;
  cin >> H >> W;
 
  for(int j = 0; j < H; j++){
    for(int i = 0; i < W; i++){
      cin >> a[j][i];
    }
  }
 
  
  for(int j = 0; j < H; j++){
    for(int i = 0; i < W; i++){
      if(a[j][i] == '#' || a[j][i] == '.')
        break;
      if(i == W-1)
        for(int k = 0; k < W; k++){
          a[k][i] = '.';
        }
    }
  }
  
  for(int i = 0; i < W; i++){
    for(int j = 0; j < H; j++){
      if(a[j][i] == '#' || a[j][i] == '.')
        break;
      if(j == H-1)
        for(int k = 0; k < H; k++){
          a[i][k] = '.';
        }
    }
  }
    
  for(int j = 0; j < H; j++){
    for(int i = 0; i < W; i++){
      if(a[j][i] != '.')
        cout << a[j][i];
    cout << endl;
  }
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:2: error: expected '}' at end of input
   48 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
    int a[101][101],k=0,n=0,i,h,w,j,flag;
    scanf("%d%d\n",&h,&w);
    for(i=0;i<h;i++){
            scanf("%s",a[i]);
        }
    for(i=0;i<h;i++){
        for(j=0;j<w;j++){
            if(a[i][j]=='.'){
                k+=1;
            }
            }if(k==w){
                
        for(j=0;j<w;j++){
            a[i][j]='b';
        }
       
      }
        k=0;
    }
        
     for(j=0;j<w;j++){
        for(i=0;i<h;i++){
            if(a[i][j]=='.'||a[i][j]=='b'){
                n+=1;
            }
        }
        if(n==h){
            for(i=0;i<h;i++){
            a[i][j]='b';
        }
        
     }
         n=0;
     }
    for(i=0;i<h;i++){
        
        for(j=0;j<w;j++){
            if(a[i][j]!='b'){
            printf("%c",a[i][j]);
            flag=1;
            }
        }
        iprintf("\n");
    }

    return 0;
}




Compiler output:
main.c: In function 'main':
main.c:48:9: error: implicit declaration of function 'iprintf'; did you mean 'dprintf'? [-Wimplicit-function-declaration]
   48 |         iprintf("\n");
      |         ^~~~~~~
      |         dprintf
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
#include<algorithm>

int main(){
    int H,W;
    std::cin>>H>>W;
    char str[101][101];
    char sub;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            std::cin>>sub;
            if(sub==".")str[i][j]=1;
            else str[i][j]=0;
        }
    }

    int bool_line_all_1=1;
    int num=0;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            bool_line_all_1=bool_line_all_1*str[i][j];
        }
        if(bool_line_all_1==1){
            num++;
            for(int k=i;k<H-num;k++){
                for(int l=0;l<W;l++){
                    str[i][l]=str[i+1][l];
                }
            }
        }
    }

    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            std::cout<<str[i][j];
        }
        std::cout<<"\n";
    }

    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |             if(sub==".")str[i][j]=1;
      |                ~~~^~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
#include<algorithm>

int main(){
    int H,W;
    scanf("%d %d",&H,&W);
    char str[101][101];
    char sub;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            std::cin>>sub;
            if(sub==".")str[i][j]=1;
            else str[i][j]=0;
        }
    }

    int bool_line_all_1=1;
    int num=0;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            bool_line_all_1=bool_line_all_1*str[i][j];
        }
        if(bool_line_all_1==1){
            num++;
            for(int k=i;k<H-num;k++){
                for(int l=0;l<W;l++){
                    str[i][l]=str[i+1][l];
                }
            }
        }
    }

    for(int i=0;i<H;i++){
        for(int j=0;j<W;l++){
            std::cout<<str[i][j];
        }
        std::cout<<"\n";
    }

    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |             if(sub==".")str[i][j]=1;
      |                ~~~^~~~~
a.cc:36:25: error: 'l' was not declared in this scope
   36 |         for(int j=0;j<W;l++){
      |                         ^
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
#include<algorithm>

int main(){
    int H,W;
    scanf("%d %d",&H,&W);
    char str[101][101];
    char sub;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;l++){
            std::cin>>sub;
            if(sub==".")str[i][j]=1;
            else str[i][j]=0;
        }
    }

    int bool_line_all_1=1;
    int num=0;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            bool_line_all_1=bool_line_all_1*str[i][j];
        }
        if(bool_line_all_1==1){
            num++;
            for(int k=i;k<H-num;k++){
                for(int l=0;l<W;l++){
                    str[i][l]=str[i+1][l];
                }
            }
        }
    }

    for(int i=0;i<H;i++){
        for(int j=0;j<W;l++){
            std::cout<<str[i][j];
        }
        std::cout<<"\n";
    }

    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'l' was not declared in this scope
   12 |         for(int j=0;j<W;l++){
      |                         ^
a.cc:14:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |             if(sub==".")str[i][j]=1;
      |                ~~~^~~~~
a.cc:36:25: error: 'l' was not declared in this scope
   36 |         for(int j=0;j<W;l++){
      |                         ^
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
#include<algorithm>

int main(){
    int H,W;
    scanf("%d %d",&H,&W);
    char str[101][101];
    int sub;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;l++){
            std::cin>>sub;
            if(sub==".")str[i][j]=1;
            else str[i][j]=0;
        }
    }

    int bool_line_all_1=1;
    int num=0;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            bool_line_all_1=bool_line_all_1*str[i][j];
        }
        if(bool_line_all_1==1){
            num++;
            for(int k=i;k<H-num;k++){
                for(int l=0;l<W;l++){
                    str[i][j]=str[i+1][j];
                }
            }
        }
    }

    for(int i=0;i<H;i++){
        for(int j=0;j<W;l++){
            std::cout<<str[i][j];
        }
        std::cout<<"\n";
    }

    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'l' was not declared in this scope
   12 |         for(int j=0;j<W;l++){
      |                         ^
a.cc:14:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |             if(sub==".")str[i][j]=1;
      |                ~~~^~~~~
a.cc:29:28: error: 'j' was not declared in this scope
   29 |                     str[i][j]=str[i+1][j];
      |                            ^
a.cc:36:25: error: 'l' was not declared in this scope
   36 |         for(int j=0;j<W;l++){
      |                         ^
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
#include<algorithm>

int main(){
    int H,W;
    scanf("%d",&H,&W);
    char str[101][101];
    int sub;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;l++){
            std::cin>>sub;
            if(sub==".")str[i][j]=1;
            else str[i][j]=0;
        }
    }

    int bool_line_all_1=1;
    int num=0;
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            bool_line_all_1=bool_line_all_1*str[i][j];
        }
        if(bool_line_all_1==1){
            num++;
            for(int k=i;k<H-num;k++){
                for(int l=0;l<W;l++){
                    str[i][j]=str[i+1][j];
                }
            }
        }
    }

    for(int i=0;i<H;i++){
        for(int j=0;j<W;l++){
            std::cout<<str[i][j];
        }
        std::cout<<"\n";
    }

    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'l' was not declared in this scope
   12 |         for(int j=0;j<W;l++){
      |                         ^
a.cc:14:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |             if(sub==".")str[i][j]=1;
      |                ~~~^~~~~
a.cc:29:28: error: 'j' was not declared in this scope
   29 |                     str[i][j]=str[i+1][j];
      |                            ^
a.cc:36:25: error: 'l' was not declared in this scope
   36 |         for(int j=0;j<W;l++){
      |                         ^
Language: C++

import macros, algorithm, tables, sets, lists, queues, intsets, critbits, sequtils, strutils, math, future

var
  H, W: int
  a: seq[string]

(H, W) = stdin.readLine.split.map(parseInt)
a = mapIt(0..<H, stdin.readLine)

var
  tate = newSeq[bool](H)
  yoko = newSeq[bool](W)

for i in 0..<H:
  var allWhite = true
  for j in 0..<W:
    if a[i][j] != '.': allWhite = false
  if allWhite: tate[i] = true
for j in 0..<W:
  var allWhite = true
  for i in 0..<H:
    if a[i][j] != '.': allWhite = false
  if allWhite: yoko[j] = true

var ans = newSeq[string]()
for i in 0..<H:
  if tate[i]: continue
  var tmp = ""
  for j in 0..<W:
    if yoko[j]: continue
    tmp.add(a[i][j])
  ans.add(tmp)
for i, v in ans:
  echo v

Compiler output:
a.cc:8:11: error: too many decimal points in number
    8 | a = mapIt(0..<H, stdin.readLine)
      |           ^~~
a.cc:14:10: error: too many decimal points in number
   14 | for i in 0..<H:
      |          ^~~
a.cc:16:12: error: too many decimal points in number
   16 |   for j in 0..<W:
      |            ^~~
a.cc:19:10: error: too many decimal points in number
   19 | for j in 0..<W:
      |          ^~~
a.cc:21:12: error: too many decimal points in number
   21 |   for i in 0..<H:
      |            ^~~
a.cc:26:10: error: too many decimal points in number
   26 | for i in 0..<H:
      |          ^~~
a.cc:29:12: error: too many decimal points in number
   29 |   for j in 0..<W:
      |            ^~~
a.cc:1:1: error: 'import' does not name a type
    1 | import macros, algorithm, tables, sets, lists, queues, intsets, critbits, sequtils, strutils, math, future
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define EACH(i, c) for (typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
#define EXIST(s, e) ((s).find(e) != (s).end())
#define SORT(c) sort((c).begin(), (c).end())
#define dump(x) cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" \
                      << " " << __FILE__ << endl;
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())

using namespace std;

signed main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);

    int H, W;
    cin >> H >> W;

    vector<vector<char>> map;
    REP(_, H)
    {
        vector<char> line;
        REP(_, W)
        {
            char ch;
            cin >> ch;
            line.PB(ch);
        }
        if (find(ALL(line), (int)'#') != line.end()) //found '#' thus insert line
            map.PB(line);
    }

    REP(l, (int)map[0].size()){
        bool flg = true;
        REP(m, (int)map.size())
        {
            if (map[m][l] == (int)'#'){
                flg = false;
                break;
            }

            if(flg){
                REP(mm, (int)map.size())
                {
                    map[mm].erase(l);
                }
            }
        }

    }

    REP(m, (int)map.size())
    {
        REP(l, (int)map[m].size())
        {
            cout << map[m][l];
        }

        cout << "\n";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:52:34: error: no matching function for call to 'std::vector<char>::erase(int&)'
   52 |                     map[mm].erase(l);
      |                     ~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = char; _Alloc = std::allocator<char>; iterator = std::vector<char>::iterator; const_iterator = std::vector<char>::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from 'int' to 'std::vector<char>::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = char; _Alloc = std::allocator<char>; iterator = std::vector<char>::iterator; const_iterator = std::vector<char>::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
Language: C++


#include <cstdio>

int main(){
    int h,w;
    scanf("%d %d",&h,&w);
    char a[h][w];
    bool b[h][w];
    for(int i = 0; i < h; i++){
        for(int j = 0; j < w; j++){
            scanf("\n%c",&a[i][j]);
            b[i][j] = true;
        }
    }

    int count_a_r;
    int count_b_r;
    for(int j = 0; j < h; j++){
        count_a_r = 0;
        count_b_r = 0;
        for(int k = 0; k < w; k++){
            if(b[j][k] == true){
                count_b_r++;
                if(a[j][k] == '.'){
                    count_a_r++;
                    continue;
                }else if(a[j][k] == '#'){
                    break;
                }
            }
        }
        if(count_a_r == count_b_r){
            for(int l = 0; l < w; l++){
                b[j][l] = false;
            }
            H--;
        }
    }

    int W = w;
    int count_a_c;
    int count_b_c;
    for(int j = 0; j < w; j++){
        count_a_c = 0;
        count_b_c = 0;
        for(int k = 0; k < h; k++){
            if(b[k][j] == true){
                count_b_c++;
                if(a[k][j] == '.'){
                    count_a_c++;
                    continue;
                }else if(a[k][j] == '#'){
                    break;
                }
            }
        }
        if(count_a_c == count_b_c){
            for(int l = 0; l < h; l++){
                b[l][j] = false;
            }
            W--;
        }
    }

    int count_w = 0;
    for(int i = 0; i < h; i++){
        count_w = 0;
        for(int j = 0; j < w; j++){
            if(b[i][j]){
                printf("%c",a[i][j]);
                count_w++;
            }
            if(count_w == W){
                printf("\n");
                break;
            }
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:13: error: 'H' was not declared in this scope
   36 |             H--;
      |             ^
Language: C


#include <stdio.h>

int main(){
    int h,w;
    scanf("%d %d",&h,&w);
    char a[h][w];
    bool b[h][w];
    for(int i = 0; i < h; i++){
        for(int j = 0; j < w; j++){
            scanf("\n%c",&a[i][j]);
            b[i][j] = true;
        }
    }

    int count_a_r;
    int count_b_r;
    for(int j = 0; j < h; j++){
        count_a_r = 0;
        count_b_r = 0;
        for(int k = 0; k < w; k++){
            if(b[j][k] == true){
                count_b_r++;
                if(a[j][k] == '.'){
                    count_a_r++;
                    continue;
                }else if(a[j][k] == '#'){
                    break;
                }
            }
        }
        if(count_a_r == count_b_r){
            for(int l = 0; l < w; l++){
                b[j][l] = false;
            }
        }
    }

    int W = w;
    int count_a_c;
    int count_b_c;
    for(int j = 0; j < w; j++){
        count_a_c = 0;
        count_b_c = 0;
        for(int k = 0; k < h; k++){
            if(b[k][j] == true){
                count_b_c++;
                if(a[k][j] == '.'){
                    count_a_c++;
                    continue;
                }else if(a[k][j] == '#'){
                    break;
                }
            }
        }
        if(count_a_c == count_b_c){
            for(int l = 0; l < h; l++){
                b[l][j] = false;
            }
            W--;
        }
    }

    int count_w = 0;
    for(int i = 0; i < h; i++){
        count_w = 0;
        for(int j = 0; j < w; j++){
            if(b[i][j]){
                printf("%c",a[i][j]);
                count_w++;
            }
            if(count_w == W){
                printf("\n");
                break;
            }
        }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: unknown type name 'bool'
    8 |     bool b[h][w];
      |     ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:12:23: error: 'true' undeclared (first use in this function)
   12 |             b[i][j] = true;
      |                       ^~~~
main.c:12:23: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:12:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:34:27: error: 'false' undeclared (first use in this function)
   34 |                 b[j][l] = false;
      |                           ^~~~~
main.c:34:27: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C


#include <cstdio>

int main(){
    int h,w;
    scanf("%d %d",&h,&w);
    char a[h][w];
    bool b[h][w];
    for(int i = 0; i < h; i++){
        for(int j = 0; j < w; j++){
            scanf("\n%c",&a[i][j]);
            b[i][j] = true;
        }
    }

    int count_a_r;
    int count_b_r;
    for(int j = 0; j < h; j++){
        count_a_r = 0;
        count_b_r = 0;
        for(int k = 0; k < w; k++){
            if(b[j][k] == true){
                count_b_r++;
                if(a[j][k] == '.'){
                    count_a_r++;
                    continue;
                }else if(a[j][k] == '#'){
                    break;
                }
            }
        }
        if(count_a_r == count_b_r){
            for(int l = 0; l < w; l++){
                b[j][l] = false;
            }
        }
    }

    int W = w;
    int count_a_c;
    int count_b_c;
    for(int j = 0; j < w; j++){
        count_a_c = 0;
        count_b_c = 0;
        for(int k = 0; k < h; k++){
            if(b[k][j] == true){
                count_b_c++;
                if(a[k][j] == '.'){
                    count_a_c++;
                    continue;
                }else if(a[k][j] == '#'){
                    break;
                }
            }
        }
        if(count_a_c == count_b_c){
            for(int l = 0; l < h; l++){
                b[l][j] = false;
            }
            W--;
        }
    }

    int count_w = 0;
    for(int i = 0; i < h; i++){
        count_w = 0;
        for(int j = 0; j < w; j++){
            if(b[i][j]){
                printf("%c",a[i][j]);
                count_w++;
            }
            if(count_w == W){
                printf("\n");
                break;
            }
        }
    }

    return 0;
}

Compiler output:
main.c:2:10: fatal error: cstdio: No such file or directory
    2 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<sstream>
#include<vector>
#include<iterator>
using namespace std;

#define WHITE '.'
#define BLACK '#'
#define NONE ' '

int main(void)
{
	int H, W;
	cin >> H >> W;

	vector<string> a(H);
	for(int i=0; i<H; i++)
		cin >> a[i];

	vector<bool> h(H, true), w(W, true);
	for(int i=0; i<H; i++){
		int cnt = count(a[i].begin(), a[i].end(), BLACK);
		if(cnt == 0)
			h[i] = false;
	}
	for(int i=0; i<W; i++){
		int cnt = 0;
		for(int j=0; j<H; j++)
			cnt += (a[j][i] == BLACK);
		if(cnt == 0)
			w[i] = false;
	}

	for(int i=0; i<H; i++){
		if(h[i] == false)
			continue;

		for(int j=0; j<W; j++)
			if(w[j] == true) cout << a[i][j];

		cout << endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:27: error: 'count' was not declared in this scope; did you mean 'cnt'?
   22 |                 int cnt = count(a[i].begin(), a[i].end(), BLACK);
      |                           ^~~~~
      |                           cnt
Language: C++

int main() {
  int H,W;
  cin >> H >> W;

  char A[H][W];
  for (int i=0; i<H; ++i) {
    for (int j=0; j<W; ++j) cin >> A[i][j];
  }

  int H_rest[H];
  int W_rest[W];

  for (int i=0; i<H; ++i) H_rest[i]=i;
  for (int j=0; j<W; ++j) W_rest[j]=j;

  bool isWhite;

  //行チェック
  for (int i=0; i<H; ++i) {
    isWhite = true;
    for (int j=0; j<W; ++j) {
      if (A[i][j] == '#') {
        isWhite = false;
        break;
      }
    }
    if (isWhite) {
      H_rest[i] = -1;
    }
  }
  //列チェック
  for (int j=0; j<W; ++j) {
    isWhite = true;
    for (int i=0; i<H; ++i) {
      if (A[i][j] == '#') {
        isWhite = false;
        break;
      }
    }
    if (isWhite) {
      W_rest[j] = -1;
    }
  }

  //Output
  for (int i=0; i<H; ++i) {
    if (H_rest[i] == -1) {
      continue;
    }
    else {
      for (int j=0; j<W; ++j) {
        if (W_rest[j] == -1) {
          continue;
        }
        else {
          cout << A[i][j];
        }
      }
      cout << endl;
    }
  }

  return(0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> H >> W;
      |   ^~~
a.cc:56:11: error: 'cout' was not declared in this scope
   56 |           cout << A[i][j];
      |           ^~~~
a.cc:59:7: error: 'cout' was not declared in this scope
   59 |       cout << endl;
      |       ^~~~
a.cc:59:15: error: 'endl' was not declared in this scope
   59 |       cout << endl;
      |               ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(void){
	int h,w;
	string a[100];
	int flagh[100] = {0};
	int flagw[100] = {0};
	int dh=0,dw=0;
	cin >> h >> w;
	int i,j;
	for(i=0;i<h;i++) cin >> a[i];
	//行ごとに見ていく
	int count;
	for(i=0;i<h;i++){
		count = 0;
		for(j=0;j<w;j++){
			if(a[i][j]=="#"){
				count = 1;
				break;
			}
		}
		if(count == 0){
			flagh[i] = 1; //i行目は全部白
			dh++;
		}
	}
	//列ごとに見ていく
	for(j=0;j<w;j++){
		count = 0;
		for(i=0;i<h;i++){
			if(a[i][j]=="#"){
				count = 1;
				break;
			}
		}
		if(count == 0){
			flagw[i] = 1; //i行目は全部白
			dw++;
		}
	}
	for(i=0;i<h;i++){
		for(j=0;j<w;j++){
			if(flagh[i] == 0 && flagw[j] == 0) cout << a[i][j];
		}
		cout << endl;
	}
	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |                         if(a[i][j]=="#"){
a.cc:34:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   34 |                         if(a[i][j]=="#"){
Language: C++

#include <bits/stdc++.h>
#define int long long
#define r(i,n) for(int i=0;i<n;i++)
using namespace std;
signed main(){
  int h,w;
  cin>>h>>w;
  int a[h]={},b[w]={}
  string s[h];
  r(i,h)cin>>s[i];
  r(i,h){
    int s=0;
    r(j,w)if(s[i][j]=='#')s++;
    if(!s)a[i]=1;
  }
  r(i,w){
    int s=0;
    r(j,h)if(s[j][i]=='#')s++;
    if(!s)b[i]=1;
  }
  r(i,h){
    if(a[i]==0)continue;
    r(j,w)if(b[j]==0)cout<<s[i][j];
    cout<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'string'
    9 |   string s[h];
      |   ^~~~~~
a.cc:10:14: error: 's' was not declared in this scope
   10 |   r(i,h)cin>>s[i];
      |              ^
a.cc:13:15: error: invalid types 'long long int[long long int]' for array subscript
   13 |     r(j,w)if(s[i][j]=='#')s++;
      |               ^
a.cc:18:15: error: invalid types 'long long int[long long int]' for array subscript
   18 |     r(j,h)if(s[j][i]=='#')s++;
      |               ^
a.cc:23:28: error: 's' was not declared in this scope
   23 |     r(j,w)if(b[j]==0)cout<<s[i][j];
      |                            ^
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class ABC107B {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int w = sc.nextInt();

        ArrayList<String> arr = new ArrayList<String>();
        for(int i = 0; i < h; i++) {
        	String s = sc.next();
        	arr.add(s);
        }

        for (int i = 0; i < h ;) {
        	boolean flag = false;
        	String q = arr.get(i);
        	for(int j = 0; j < w ; j++) {
        		if (q.charAt(j) != '.') {
        			flag = true;
        		}
        	}
        	if(!flag) {
        		arr.remove(i);
        		h--;
        	}else {
        		i++;
        	}
        }

        for (int j = 0; j < w;) {
        	boolean flag = false;
        	for(int i = 0; i < h ; i++) {
        		String q = arr.get(i);
        		if (q.charAt(j) != '.') {
        			flag = true;
        		}
        	}
        	if(!flag) {
        		for(int k = 0; k < h; k ++) {
        			String p = arr.get(k);
        			arr.set(k, p.substring(0, j) + p.substring(j + 1, p.length()));
        		}
        		w--;
        	}else {
        		j++;
        	}
        }
        for(String s: arr) {
        	System.out.println(s);
        }
	}
}


Compiler output:
Main.java:4: error: class ABC107B is public, should be declared in a file named ABC107B.java
public class ABC107B {
       ^
1 error
Language: C

#include<stdio.h>
int main(void){
	int i,j,flag;
	char m[100][100];
	int H,W;

	scanf("%d %d",&H,&W);

	for(i=0;i<H;++i){
		flag=0;
		for(j=0;j<W;++j){
			if(m[i][j]=='#')flag=1;
			break;
		}
		if(flag==0){
			for(j=0;j<W;++j){
				m[i][j]=m[i+1][j]
			}
		}
	}
	for(j=0;j<H;++j){
		flag=0;
		for(i=0;i<H;++i){
			if(m[i][j]=='#')flag=1;
			break;
		}
		if(flag==0){
			for(i=0;j<H;++i){
				m[i][j]=m[i][j+1]
			}
		}
	}


	for(i=0;i<H;++i){
		for(j=0;j<W;++j){
			printf("%c",m[i][j])
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:17:50: error: expected ';' before '}' token
   17 |                                 m[i][j]=m[i+1][j]
      |                                                  ^
      |                                                  ;
   18 |                         }
      |                         ~                         
main.c:29:50: error: expected ';' before '}' token
   29 |                                 m[i][j]=m[i][j+1]
      |                                                  ^
      |                                                  ;
   30 |                         }
      |                         ~                         
main.c:37:45: error: expected ';' before '}' token
   37 |                         printf("%c",m[i][j])
      |                                             ^
      |                                             ;
   38 |                 }
      |                 ~
Language: C++

#include <bits/stdc++.h>

using namespace std ;

int a  b ;

int main ()
{
    cin >> a >> b ;
    char c [ a * b ] ;
    int d [ a ] , e [ b ] , cnt1 = 0 , cnt2 = 0 ;
    for ( int i = 0 ; i < a * b ; ++ i ){
        cin >> c [ i ] ;
    }
    for ( int i = 0 ; i < a ; ++ i ){
        for ( int j = 0 ; j < b ; ++ j ){
            if ( c [ b * i + j ] == '#' ){
                d [ cnt1 ] = i ;
                cnt1 ++ ;
                break ;
            }
        }
    }
    for ( int i = 0 ; i < b ; ++ i ){
        for ( int j = 0 ; j < a ; ++ j ){
            if ( c [ b * i + j ] == '#' ){
                e [ cnt2 ] = j ;
                cnt2 ++ ;
                break ;
            }
        }
    }
    for ( int i = 0 ; i < cnt1 ; ++ i ){
        for ( int j = 0 ; j < cnt2 ; ++ j ){
            cout << c [ b * d [ i ] + e [ j ] ] ;
        }
        cout << endl ;
    }
}


Compiler output:
a.cc:5:8: error: expected initializer before 'b'
    5 | int a  b ;
      |        ^
a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
    9 |     cin >> a >> b ;
      |            ^
a.cc:9:17: error: 'b' was not declared in this scope
    9 |     cin >> a >> b ;
      |                 ^
a.cc:13:16: error: 'c' was not declared in this scope
   13 |         cin >> c [ i ] ;
      |                ^
a.cc:17:18: error: 'c' was not declared in this scope
   17 |             if ( c [ b * i + j ] == '#' ){
      |                  ^
a.cc:18:17: error: 'd' was not declared in this scope
   18 |                 d [ cnt1 ] = i ;
      |                 ^
a.cc:26:18: error: 'c' was not declared in this scope
   26 |             if ( c [ b * i + j ] == '#' ){
      |                  ^
a.cc:27:17: error: 'e' was not declared in this scope
   27 |                 e [ cnt2 ] = j ;
      |                 ^
a.cc:35:21: error: 'c' was not declared in this scope
   35 |             cout << c [ b * d [ i ] + e [ j ] ] ;
      |                     ^
a.cc:35:29: error: 'd' was not declared in this scope
   35 |             cout << c [ b * d [ i ] + e [ j ] ] ;
      |                             ^
a.cc:35:39: error: 'e' was not declared in this scope
   35 |             cout << c [ b * d [ i ] + e [ j ] ] ;
      |                                       ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main(){
    int H,W,cnti=0,cntj=0;
    cin>>H>>W;
    char c[H*W];
    fint a[H],b[W];
    for(int i=0;i<H*W;i++){
        cin>>c[i];
    }
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            if(c[W*i+j]=='#'){
                a[cnti]=i;
                cnti++;
                break;
            }
        }
    }
    cout<<"\n";
    for(int j=0;j<W;j++){
        for(int i=0;i<H;i++){
            if(c[W*i+j]=='#'){
                b[cntj]=j;
                cntj++;
                break;
            }
        }
    }
    for(int i=0;i<cnti;i++){
        for(int j=0;j<cntj;j++){
            cout<<c[W*a[i]+b[j]];
        }
        cout<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'fint' was not declared in this scope; did you mean 'uint'?
    9 |     fint a[H],b[W];
      |     ^~~~
      |     uint
a.cc:16:17: error: 'a' was not declared in this scope
   16 |                 a[cnti]=i;
      |                 ^
a.cc:26:17: error: 'b' was not declared in this scope
   26 |                 b[cntj]=j;
      |                 ^
a.cc:34:23: error: 'a' was not declared in this scope
   34 |             cout<<c[W*a[i]+b[j]];
      |                       ^
a.cc:34:28: error: 'b' was not declared in this scope
   34 |             cout<<c[W*a[i]+b[j]];
      |                            ^
Language: C++

There is a grid of squares with H horizontal rows and W vertical columns. The square at the i-th row from the top and the j-th column from the left is represented as (i,j). Each square is black or white. The color of the square is given as an H-by-W matrix (ai,j). If ai,j is ., the square (i,j) is white; if ai,j is #, the square (i,j) is black.

Snuke is compressing this grid. He will do so by repeatedly performing the following operation while there is a row or column that consists only of white squares:

Operation: choose any one row or column that consists only of white squares, remove it and delete the space between the rows or columns.
It can be shown that the final state of the grid is uniquely determined regardless of what row or column is chosen in each operation. Find the final state of the grid.

Compiler output:
a.cc:1:318: error: stray '#' in program
    1 | There is a grid of squares with H horizontal rows and W vertical columns. The square at the i-th row from the top and the j-th column from the left is represented as (i,j). Each square is black or white. The color of the square is given as an H-by-W matrix (ai,j). If ai,j is ., the square (i,j) is white; if ai,j is #, the square (i,j) is black.
      |                                                                                                                                                                                                                                                                                                                              ^
a.cc:1:1: error: 'There' does not name a type
    1 | There is a grid of squares with H horizontal rows and W vertical columns. The square at the i-th row from the top and the j-th column from the left is represented as (i,j). Each square is black or white. The color of the square is given as an H-by-W matrix (ai,j). If ai,j is ., the square (i,j) is white; if ai,j is #, the square (i,j) is black.
      | ^~~~~
a.cc:1:307: error: expected unqualified-id before 'if'
    1 | There is a grid of squares with H horizontal rows and W vertical columns. The square at the i-th row from the top and the j-th column from the left is represented as (i,j). Each square is black or white. The color of the square is given as an H-by-W matrix (ai,j). If ai,j is ., the square (i,j) is white; if ai,j is #, the square (i,j) is black.
      |                                                                                                                                                                                                                                                                                                                   ^~
Language: C++

#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main(){
  int H,W;
  cin >> H >> W;
  vector<string>a(H);
  for(int i=0;i<H;i++){
    cin >> a[i];
  }

  vector<bool>row(H,false);
  vector<bool>col(W,false);

  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      if(a[i][j]=='#'){
	row[i] = true;
	col[j] = true;
      }
    }
]

    for(int i=0;i<H;i++){
      if(row[i]){
	for(int j=0;j<W;j++){
	  if(col[j]){
	    cout << a[i][j];
	  }
	}
	cout << endl;
      }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:1: error: expected primary-expression before ']' token
   23 | ]
      | ^
a.cc:25:24: error: expected ';' before ')' token
   25 |     for(int i=0;i<H;i++){
      |                        ^
      |                        ;
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<stdio.h>
#include<stdlib.h>

void irekae(char **a,int i,int h,int w);
void irekae2(char **a,int i,int h,int w);

int main(void)
{
        int h,w,hh;
        int i,j;
        char **a;

        scanf("%d%d",&h,&w);

        hh = h;


        //領域確保
        a = malloc(sizeof(char *)*h);
        for(i=0;i<h;i++)
                *(a+i) = malloc(sizeof(char)*w);


        //文字の読み込み
        for(i=0;i<h;i++){
                scanf("%s",*(a+i));
        }


        //取り除く
        for(i=0;i<h;i++){
                for(j=0;j<w;j++){
                        if(*(*(a+i)+j)=='#')
                                j = 102;
                }
                if(j<102){
                        irekae(a,i,h,w);
                        i--;
                        h--;
                }
        }
        for(i=0;i<w;i++){
                for(j=0;j<h;j++){
                        if(*(*(a+j)+i)=='#')
                                j=102;
                }
                if(j<102){
                        irekae2(a,i,h,w);
                        i--;
                        w--;
                }
        }



        //文字の書き出し
        printf("\n");
        for(i=0;i<h;i++){
                for(j=0;j<w;j++)
                        printf("%c",*(*(a+i)+j));
                printf("\n");
        }


        //領域の開放
        for(i=0;i<hh;i++)
                free(*(a+i));
        free(a);


        return 0;
}

void irekae(char **a,int i,int h,int w)
{
        int ii,jj;

        for(ii=i;ii<h-1;ii++){
                for(jj=0;jj<w;jj++){
                        a[ii][jj] = a[ii+1][jj];
                }
        }

        return;
}

void irekae2(char **a,int i,int h,int w)
{
        int ii,jj;

        for(ii=i;ii<w-1;ii++){
                for(jj=0;jj<h;jj++){
                        a[jj][ii] = a[jj][ii+1];
                }
        }

        return;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
   19 |         a = malloc(sizeof(char *)*h);
      |             ~~~~~~^~~~~~~~~~~~~~~~~~
      |                   |
      |                   void*
a.cc:21:32: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
   21 |                 *(a+i) = malloc(sizeof(char)*w);
      |                          ~~~~~~^~~~~~~~~~~~~~~~
      |                                |
      |                                void*
Language: C++

#include <iostream>
#include <string>
#include <vector>

int main(void) {
  int h, w;
  std::string line;
  
  std::cin >> h >> w;
  
  int **a;
  a = new *int[h];
  for(int i = 0; i < h; i++) 
    a[i] = new int[w];
  
  for(int i = 0; i < h; i++) {
    std::cin >> line;
    for(int j = 0; j < w; j++) {
      if(line[i] == '.') a[i][j] = 0;
      else a[i][j] = 1;
    }
  }
  
 
  std::vector <bool> col(w, true);
  std::vector <bool> row(h, true);

  
  for(int i = 0; i < h; i++) {
    for (int j = 0; j < w; j++) {
      if(a[i][j] == 1){
        col[j] = false;
        row[i] = false;
      }
    }
  }
  
  for(int i = 0; i < h; i++){
    for(int j = 0; j < w; j++) {
      if(row[i] && col[j]){
        if(a[i][j] == 1) std::cout << '#';
        else '.';
      }
    std::cout << std::endl;
    }
  }
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected type-specifier before '*' token
   12 |   a = new *int[h];
      |           ^
a.cc:12:12: error: expected primary-expression before 'int'
   12 |   a = new *int[h];
      |            ^~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int H, W;
string s[100];
bool a[100], b[100];
int main() {
  cin >> H >> W;
  for (int i = 0; i < H; ++i) {
    cin >> s[i];
  }
  
  for (int i = 0; i < H; ++i) {
    for (int j = 0; j < W; ++j) {
      if (s[i][j] == "#") {
        a[i] = true;
        b[j] = true;
      }
    }
  }
  
  for (int i = 0; i < H; ++i) {
    if (!a[i]) continue;
    for (int j = 0; j < W; ++j) {
      if (!b[j]) continue;
      cout << s[i][j];
    }
    cout << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       if (s[i][j] == "#") {
Language: C++

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

int main(){
    int H, W; cin >> H >> W;
    vector<string> A(H);
    for(string &s:A) cin >> s;

    vector<int> d_row;
    vector<int> d_col;

    for(int i=0; i<H; i++){
        int cr = 0;
        for(int j=0; j<W; j++) if(A[i][j]=='.') cr++;
        if(cr==W) d_row.push_back(i);
    }

    for(int i=0; i<W; i++){
        int cc = 0;
        for(int j=0; j<H; j++) if(A[j][i]=='.') cc++;
        if(cc==H) d_col.push_back(i);
    }

    for(int i=0; i<H; i++){
        if(find(d_row.begin(), d_row.end(), i)!=d_row.end()) continue;
        for(int j=0; j<W; j++){
            if(find(d_col.begin(), d_col.end(), j)!=d_col.end()) continue;
            cout << A[i][j];
        }
        cout << endl;
    }
    
    

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:16: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   26 |         if(find(d_row.begin(), d_row.end(), i)!=d_row.end()) continue;
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:26:16: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   26 |         if(find(d_row.begin(), d_row.end(), i)!=d_row.end()) continue;
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:28:20: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   28 |             if(find(d_col.begin(), d_col.end(), j)!=d_col.end()) continue;
      |                ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:28:20: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   28 |             if(find(d_col.begin(), d_col.end(), j)!=d_col.end()) continue;
      |                ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~