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

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int h,w;
  cin>>h>>w;
  
  string board[110];
  
  for(int i=0;i<h;i++)
  {
       cin>>board[i];
  }
 
 bool goodx[110];
 bool goody[110];
  
  for(int =0;i<h;i++)
  {
      for(int j=0;j<w;j++)
      {
          if(board[i][j]=='#')
          {
               goodx[i]=true;
               goody[j]=true;
          }
      }      
  }
  
  
  
  for(int i=0;i<h;i++)
  {
     if(goodx[i])
     {
      for(int j=0;j<w;j++)
      {
        if(goody[j])
        {
          cout<<board[i][j];
        }
       }      
        cout<<endl;
      }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: expected unqualified-id before '=' token
   19 |   for(int =0;i<h;i++)
      |           ^
a.cc:19:10: error: expected ';' before '=' token
   19 |   for(int =0;i<h;i++)
      |          ^~
      |          ;
a.cc:19:11: error: expected primary-expression before '=' token
   19 |   for(int =0;i<h;i++)
      |           ^
a.cc:19:14: error: 'i' was not declared in this scope
   19 |   for(int =0;i<h;i++)
      |              ^
a.cc:19:17: error: expected ')' before ';' token
   19 |   for(int =0;i<h;i++)
      |      ~          ^
      |                 )
a.cc:19:18: error: 'i' was not declared in this scope
   19 |   for(int =0;i<h;i++)
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int h,w;
  cin>>h>>w;
  
  string board[h];
  
  for(int i=0;i<h;i++)
  {
       cin>>board[i];
  }
 
 bool goodx[];
 bool goody[];
  
  for(int =0;i<h;i++)
  {
      for(int j=0;j<w;j++)
      {
          if(board[i][j]=='#')
          {
               goodx[i]=true;
               goody[j]=true;
          }
      }      
  }
  
  
  
  for(int i=0;i<h;i++)
  {
     if(goodx[i])
     {
      for(int j=0;j<w;j++)
      {
        if(goody[j])
        {
          cout<<board[i][j];
        }
       }      
        cout<<endl;
      }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: storage size of 'goodx' isn't known
   16 |  bool goodx[];
      |       ^~~~~
a.cc:17:7: error: storage size of 'goody' isn't known
   17 |  bool goody[];
      |       ^~~~~
a.cc:19:11: error: expected unqualified-id before '=' token
   19 |   for(int =0;i<h;i++)
      |           ^
a.cc:19:10: error: expected ';' before '=' token
   19 |   for(int =0;i<h;i++)
      |          ^~
      |          ;
a.cc:19:11: error: expected primary-expression before '=' token
   19 |   for(int =0;i<h;i++)
      |           ^
a.cc:19:14: error: 'i' was not declared in this scope
   19 |   for(int =0;i<h;i++)
      |              ^
a.cc:19:17: error: expected ')' before ';' token
   19 |   for(int =0;i<h;i++)
      |      ~          ^
      |                 )
a.cc:19:18: error: 'i' was not declared in this scope
   19 |   for(int =0;i<h;i++)
      |                  ^
Language: C++

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

int main()
{
  int h,w;
  cin>>h>>w;
  
  char board[h][w]={};
  
  for(int i=0;i<h;i++)
  { 
    for(int j=0;j<w;j++)
    {
       cin>>board[i][j];
    }
  }

  
  for(int i=0;i<w;i++)
  {
    int ta=0;
    
      for(int j=0;j<h;j++)
      {
        if(board[j][i]=='.')
        {
           ta++;
        }
      }
    if(ta==h)
    {
       for(int ta=0;ta<h;ta++)
       {
          board[ta][i]='0';
       }
    }
  }
  
  
    for(int i=0;i<h;i++)
  {
    int yo=0;
    
      for(int j=0;j<w;j++)
      {
        if(board[i][j]=='.')
        {
           yo++;
        }
      }
    if(yo==w)
    {
       for(int ta=0;ta<h;ta++)
       {
          board[i][yo]='0';
       }
    }
  }
  
  for(int =0;i<h;i++)
  {
      for(int j=0;j<w;j++)
      {
          cout<<board[i][j];
      }
          
        cout<<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:61:11: error: expected unqualified-id before '=' token
   61 |   for(int =0;i<h;i++)
      |           ^
a.cc:61:10: error: expected ';' before '=' token
   61 |   for(int =0;i<h;i++)
      |          ^~
      |          ;
a.cc:61:11: error: expected primary-expression before '=' token
   61 |   for(int =0;i<h;i++)
      |           ^
a.cc:61:14: error: 'i' was not declared in this scope
   61 |   for(int =0;i<h;i++)
      |              ^
a.cc:61:17: error: expected ')' before ';' token
   61 |   for(int =0;i<h;i++)
      |      ~          ^
      |                 )
a.cc:61:18: error: 'i' was not declared in this scope
   61 |   for(int =0;i<h;i++)
      |                  ^
Language: C++

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

int main()
{
  int h,w;
  cin>>h>>w;
  
  char board[h][w]={};
  
  for(int i=0;i<h;i++)
  { 
    for(int j=0;j<w;j++)
    {
       cin>>board[i][j];
    }
  }

  
  for(int i=0;i<w;i++)
  {
    int ta=0;
    
      for(int j=0;j<h;j++)
      {
        if(board[j][i]=='.')
        {
           ta++;
        }
      }
    if(ta==h)
    {
       for(int ta=0;ta<h;ta++)
       {
          board[ta][i]='';
       }
    }
  }
  
  
    for(int i=0;i<h;i++)
  {
    int yo=0;
    
      for(int j=0;j<w;j++)
      {
        if(board[i][j]=='.')
        {
           yo++;
        }
      }
    if(ja==w)
    {
       for(int ta=0;ta<h;ta++)
       {
          board[i][yo]='';
       }
    }
  }
  
  for(int =0;i<h;i++)
  {
      for(int j=0;j<w;j++)
      {
          cout<<board[i][j];
      }
          
        cout<<endl;
  }
  
}

Compiler output:
a.cc:35:24: error: empty character constant
   35 |           board[ta][i]='';
      |                        ^~
a.cc:56:24: error: empty character constant
   56 |           board[i][yo]='';
      |                        ^~
a.cc: In function 'int main()':
a.cc:52:8: error: 'ja' was not declared in this scope; did you mean 'jn'?
   52 |     if(ja==w)
      |        ^~
      |        jn
a.cc:61:11: error: expected unqualified-id before '=' token
   61 |   for(int =0;i<h;i++)
      |           ^
a.cc:61:10: error: expected ';' before '=' token
   61 |   for(int =0;i<h;i++)
      |          ^~
      |          ;
a.cc:61:11: error: expected primary-expression before '=' token
   61 |   for(int =0;i<h;i++)
      |           ^
a.cc:61:14: error: 'i' was not declared in this scope
   61 |   for(int =0;i<h;i++)
      |              ^
a.cc:61:17: error: expected ')' before ';' token
   61 |   for(int =0;i<h;i++)
      |      ~          ^
      |                 )
a.cc:61:18: error: 'i' was not declared in this scope
   61 |   for(int =0;i<h;i++)
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H, W;
  cin >> H >> W;
  vector<string> vec(H);
  for (int i = 0; i < H; i++) {
    cin >> vec[i];
  }
  
  vector<int> hflag(h, 0);
  vector<int> wflag(w, 0);
  for (int i = 0; i < H; i++) {
    for(int j = 0; j < W; j++){
      if(vec[i][j] == '#'){
        hflag[i] = 1;
        wflag[j] = 1;
      }
    }
  }

  for (int i = 0; i < H; i++) {
    if(hflag[i]){
      for(int j = 0; j < N; j++){
        if(wflag[j]){
          cout << vec[i][j];
        }
      }
 	cout << endl; // 末尾なら改行
    }
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'h' was not declared in this scope
   12 |   vector<int> hflag(h, 0);
      |                     ^
a.cc:13:21: error: 'w' was not declared in this scope
   13 |   vector<int> wflag(w, 0);
      |                     ^
a.cc:25:26: error: 'N' was not declared in this scope
   25 |       for(int j = 0; j < N; j++){
      |                          ^
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++){
  string S;
    cin>>S;
    for(int j=0;j<W;j++)
      A.at(i).at(j)=S.at(j);
  
  }
  for(int i=0;i<H;i++){
  bool x=true;
    for(int j=0;j<W;j++){
  if(A[i][j]!='.'){
   x=false; break;
  }
  } if(x){
    for(int k=0;k<W;k++)
      A.at(i).at(k)='a';
    
    }
  
  }for(int i=0;i<W;i++){
  bool x=true;
    for(int j=0;j<H;j++){
  if(A[j][i]!='.'){
   x=false; break;
  }
  } if(x){
    for(int k=0;k<H;k++)
      A.at(k).at(i)='a';
    
    }
  
  }for(int i=0;i<H;i++){
  for(int j=0;j<W-1;j++){
    if(A.at(i).at(j)!='a')cout<<A.at(i).at(j);
  }if(A.at(i).at(j)!='a')cout<<A.at(i).at(W-1)<<endl;
  else
    cout<<endl;
  }
  
  
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:18: error: 'j' was not declared in this scope
   41 |   }if(A.at(i).at(j)!='a')cout<<A.at(i).at(W-1)<<endl;
      |                  ^
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++){
  string S;
    cin>>S;
    for(int j=0;j<W;j++)
      A.at(i).at(j)=S.at(j);
  
  }
  for(int i=0;i<H;i++){
  bool x=true;
    for(int j=0;j<W;j++){
  if(A[i][j]!='.'){
   x=false; break;
  }
  } if(x){
    for(int k=0;k<W;k++)
      A.at(i).at(k)='a';
    
    }
  
  }for(int i=0;i<W;i++){
  bool x=true;
    for(int j=0;j<H;j++){
  if(A[i][j]!='.'){
   x=false; break;
  }
  } if(x){
    for(int k=0;k<H;k++)
      A.at(k).at(i)='a';
    
    }
  
  }for(int i=0;i<H;i++){
  for(int j=0;j<W-1;j++){
    if(A.at(i).at(j)!='a')cout<<A.at(i).at(j);
  }if(A.at(i).at(j)!='a')cout<<A.at(i).at(W-1)<<endl;
  
  }
  
  
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:18: error: 'j' was not declared in this scope
   41 |   }if(A.at(i).at(j)!='a')cout<<A.at(i).at(W-1)<<endl;
      |                  ^
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++){
  string S;
    cin>>S;
    for(int j=0;j<W;j++)
      A.at(i).at(j)=S.at(j);
  
  }
  for(int i=0;i<H;i++){
  bool x=true;
    for(int j=0;j<W;j++){
  if(A[i][j]!='.'){
   x=false; break;
  }
  } if(x){
    for(int k=0;k<W;k++)
      A.at(i).at(k)='';
    
    }
  
  }for(int i=0;i<W;i++){
  bool x=true;
    for(int j=0;j<H;j++){
  if(A[i][j]!='.'){
   x=false; break;
  }
  } if(x){
    for(int k=0;k<H;k++)
      A.at(k).at(i)='';
    
    }
  
  }for(int i=0;i<H;i++){
  for(int j=0;j<W-1;j++){
    cout<<A.at(i).at(j);
  }cout<<A.at(i).at(W-1)<<endl;
  
  }
  
  
 return 0;
}

Compiler output:
a.cc:22:21: error: empty character constant
   22 |       A.at(i).at(k)='';
      |                     ^~
a.cc:34:21: error: empty character constant
   34 |       A.at(k).at(i)='';
      |                     ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

int main(){
    int h,w;
    cin >> h >> w;
    vector<vector<char>> a(h,(vector<char>(w)));
    rep(i,h){
        rep(i,w) cin >> a[i][j];
    }
    vector<bool> flag_h(h);
    vector<bool> flag_w(w);
    rep(i,h){
        rep(j,w){
            if(a[i][j] == '#') flag_h[i] = true;
        }
    }
    rep(i,w){
        rep(j,h){
            if(a[i][j] == '#') flag_w[j] = true;
        }
        if(flag_h[i]) continue;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: 'j' was not declared in this scope
   12 |         rep(i,w) cin >> a[i][j];
      |                              ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

int main(){
    int h,w;
    cin >> h >> w;
    vector<vector<char>> a(h,(vector<char>(w)));
    rep(i,h){
        rep(i,w) cin >> a[i][j];
    }
    vector<bool> flag_h(h);
    vector<bool> flag_w(w);
    rep(i,h){
        rep(j,w){
            if(a[i][j] == '#') flag_h[i] = true;
        }
    }
    rep(i,w){
        rep(i,h){
            if(a[i][j] == '#') flag_w[j] = true;
        }
        if(flag_h[i]) continue;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: 'j' was not declared in this scope
   12 |         rep(i,w) cin >> a[i][j];
      |                              ^
a.cc:23:21: error: 'j' was not declared in this scope
   23 |             if(a[i][j] == '#') flag_w[j] = true;
      |                     ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

int main(){
    int h,w;
    cin >> h >> w;
    vector<vector<char>> a(h,(vector<char>(w)));
    rep(i,h){
        rep(i,w) cin >> a[i][j];
    }
    vector<bool> flag_h(h);
    vector<bool> flag_w(w):
    rep(i,h){
        rep(j,w){
            if(a[i][j] == '#') flag_h[i] = true;
        }
    }
    rep(i,w){
        rep(i,h){
            if(a[i][j] == '#') flag_w[j] = true;
        }
        if(flag_h[i]) continue;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: 'j' was not declared in this scope
   12 |         rep(i,w) cin >> a[i][j];
      |                              ^
a.cc:15:27: error: expected ',' or ';' before ':' token
   15 |     vector<bool> flag_w(w):
      |                           ^
a.cc:16:9: error: 'i' was not declared in this scope
   16 |     rep(i,h){
      |         ^
a.cc:2:32: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i = 0;i < (n);i++)
      |                                ^
a.cc:23:21: error: 'j' was not declared in this scope
   23 |             if(a[i][j] == '#') flag_w[j] = true;
      |                     ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i < (n);i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;

int main(){
    int h,w;
    cin >> h >> w;
    vector<vector<char>> a(h,(vector<char>(w)));
    rep(i,h){
        rep(i,w) cin >> a[i][j];
    }
    vector<bool> flag_h(h);
    vector<bool> flag_w(w):
    rep(i,h){
        rep(i,w){
            if(a[i][j] == '#') flag_h[i] = true;
        }
    }
    rep(i,w){
        rep(i,h){
            if(a[i][j] == '#') flag_w[j] = true;
        }
        if(flag_h[i]) continue;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: 'j' was not declared in this scope
   12 |         rep(i,w) cin >> a[i][j];
      |                              ^
a.cc:15:27: error: expected ',' or ';' before ':' token
   15 |     vector<bool> flag_w(w):
      |                           ^
a.cc:16:9: error: 'i' was not declared in this scope
   16 |     rep(i,h){
      |         ^
a.cc:2:32: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i = 0;i < (n);i++)
      |                                ^
a.cc:23:21: error: 'j' was not declared in this scope
   23 |             if(a[i][j] == '#') flag_w[j] = true;
      |                     ^
Language: C++

#include <bits/stdc++.h>
#include<vector>
using namespace std;
#define rep(i, n)        for(int i=0; i<(int)(n); ++i)
int main() {
  long long int a,b;cin>>a>>b;
  vector<vector<char>>c(a,vector<char>b);
  bool e[a];
  bool f[b];
  rep(i,a)rep(j,b)cin>>c[i][j];
  rep(i,a){
    bool d=true;
    e[i]=false;
    rep(j,b){
      if(c[i][j]!='.')d=false;
  }
    if(d)e[i]=true;
  }
  rep(i,b){
    bool d=true;
    f[i]=false;
    rep(j,a){
      if(c[i][j]!='.')d=false;
    }
    if(d)f[i]=true;
  }
  rep(i,a){
    if(e[i])continue;
    rep(j,b){
      if(f[j])continue;
      cout<<c[i][j];
    }
    cout<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:39: error: expected primary-expression before 'b'
    7 |   vector<vector<char>>c(a,vector<char>b);
      |                                       ^
Language: C++

#include <bits/stdc++.h>
#include<vector>
using namespace std;
#define rep(i, n)        for(int i=0; i<(int)(n); ++i)
int main() {
  long long int a,b;cin>>a>>b;
  vector<vector<char>>c(a,vector<char>b);
  bool e[a];
  bool f[b];
  rep(i,a)rep(j,b)cin>>c[i][j];
  rep(i,a){
    bool d=true;
    e[i]=false;
    rep(j,b){
      if(c[i][j]!='.')d=false;
  }
    if(d)e[i]=true;
  }
  rep(i,b){
    d=true;
    f[i]=false;
    rep(j,a){
      if(c[i][j]!='.')d=false;
    }
    if(d)f[i]=true;
  }
  rep(i,a){
    if(e[i])continue;
    rep(j,b){
      if(f[j])continue;
      cout<<c[i][j];
    }
    cout<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:39: error: expected primary-expression before 'b'
    7 |   vector<vector<char>>c(a,vector<char>b);
      |                                       ^
a.cc:20:5: error: 'd' was not declared in this scope
   20 |     d=true;
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() {
  //input
  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];
  //make_output
  int ch(h), cw(w);
  char b[h][w], c[h][w];
  
  //horizontal
  int count(0);
  for(int i(0);i<h;i++){
    bool p(true);
    for(int j(0);j<w;j++){
      if(a[i][j]=='#'){
        p=false;
        break;
      }
    }
    if(p)
      ch--;
    else{
      b[count] = a[i];
      count++;
    }	
  }
  
  //virtical
  count = 0;
  for(int j(0);j<w;j++){
    bool p(true);
    for(int i(0);i<ch;i++){
      if(b[i][j]=='#'){
        p=false;
        break;
      }
    }
    if(p)
      cw--;
    else{
      for(int i(0);i<ch;i++)
        c[i][count] = b[i][j];
      count++;
    }	
  }
  
  //output
  for(int i(0);i<ch;i++){
    for(int j(0);j<cw;j++)
      cout << c[i][j];
    cout << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:16: error: invalid array assignment
   29 |       b[count] = a[i];
      |       ~~~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() {
  //input
  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];
  //make_output
  int ch(h), cw(w);
  char b[h][w], c[h][w];
  
  //horizontal
  int count(0);
  for(int i(0);i<h;i++){
    bool p(true);
    for(int j(0);j<w;j++){
      if(a[i][j]=='#'){
        p=false;
        break;
      }
    }
    if(p)
      ch--;
    else{
      b[c] = a[i];
      count++;
    }	
  }
  
  //virtical
  count = 0;
  for(int j(0);j<w;j++){
    bool p(true);
    for(int i(0);i<ch;i++){
      if(b[i][j]=='#'){
        p=false;
        break;
      }
    }
    if(p)
      cw--;
    else{
      for(int i(0);i<ch;i++)
        c[i][c] = b[i][j];
      count++;
    }	
  }
  
  //output
  for(int i(0);i<ch;i++){
    for(int j(0);j<cw;j++)
      cout << c[i][j];
    cout << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:8: error: invalid types 'char [h][w][char [h][w]]' for array subscript
   29 |       b[c] = a[i];
      |        ^
a.cc:48:13: error: invalid types 'char [w][char [h][w]]' for array subscript
   48 |         c[i][c] = b[i][j];
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() {
  //input
  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];
  //make_output
  int ch(h), cw(w);
  char b[h][w], c[h][w];
  
  //horizontal
  int count(0);
  for(int i(0);i<h;i++){
    bool p(True);
    for(int j(0);j<w;j++){
      if(a[i][j]=='#'){
        p=False;
        break;
      }
    }
    if(p)
      ch--;
    else{
      b[c] = a[i];
      count++;
    }	
  }
  
  //virtical
  int count(0);
  for(int j(0);j<w;j++){
    bool p(True);
    for(int i(0);i<ch;i++){
      if(b[i][j]=='#'){
        p=False;
        break;
      }
    }
    if(p)
      cw--;
    else{
      for(int i(0);i<ch;i++)
        c[i][c] = b[i][j];
      count++;
    }	
  }
  
  //output
  for(int i(0);i<ch;i++){
    for(int j(0);j<cw;j++)
      cout << c[i][j];
    cout << endll;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 'True' was not declared in this scope
   19 |     bool p(True);
      |            ^~~~
a.cc:22:11: error: 'False' was not declared in this scope
   22 |         p=False;
      |           ^~~~~
a.cc:29:8: error: invalid types 'char [h][w][char [h][w]]' for array subscript
   29 |       b[c] = a[i];
      |        ^
a.cc:35:7: error: redeclaration of 'int count'
   35 |   int count(0);
      |       ^~~~~
a.cc:17:7: note: 'int count' previously declared here
   17 |   int count(0);
      |       ^~~~~
a.cc:37:12: error: 'True' was not declared in this scope
   37 |     bool p(True);
      |            ^~~~
a.cc:40:11: error: 'False' was not declared in this scope
   40 |         p=False;
      |           ^~~~~
a.cc:48:13: error: invalid types 'char [w][char [h][w]]' for array subscript
   48 |         c[i][c] = b[i][j];
      |             ^
a.cc:57:13: error: 'endll' was not declared in this scope
   57 |     cout << endll;
      |             ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() {
  #input
  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];
  #make_output
  int ch(h), cw(w);
  char b[h][w], c[h][w];
  
  #horizontal
  int c(0);
  for(int i(0);i<h;i++){
    bool p(True);
    for(int j(0);j<w;j++){
      if(a[i][j]=='#'){
        p=False;
        break;
      }
    }
    if(p)
      ch--;
    else{
      b[c] = a[i];
      c++;
    }	
  }
  
  #virtical
  int c(0);
  for(int j(0);j<w;j++){
    bool p(True);
    for(int i(0);i<ch;i++){
      if(b[i][j]=='#'){
        p=False;
        break;
      }
    }
    if(p)
      cw--;
    else{
      for(int i(0);i<ch;i++)
        c[i][c] = b[i][j];
      c++;
    }	
  }
  
  #output
  for(int i(0);i<ch;i++){
    for(int j(0);j<cw;j++)
      cout << c[i][j];
    cout << endll;
  }
}

Compiler output:
a.cc:5:4: error: invalid preprocessing directive #input
    5 |   #input
      |    ^~~~~
a.cc:12:4: error: invalid preprocessing directive #make_output
   12 |   #make_output
      |    ^~~~~~~~~~~
a.cc:16:4: error: invalid preprocessing directive #horizontal
   16 |   #horizontal
      |    ^~~~~~~~~~
a.cc:34:4: error: invalid preprocessing directive #virtical
   34 |   #virtical
      |    ^~~~~~~~
a.cc:53:4: error: invalid preprocessing directive #output
   53 |   #output
      |    ^~~~~~
a.cc: In function 'int main()':
a.cc:17:7: error: conflicting declaration 'int c'
   17 |   int c(0);
      |       ^
a.cc:14:17: note: previous declaration as 'char c [h][w]'
   14 |   char b[h][w], c[h][w];
      |                 ^
a.cc:19:12: error: 'True' was not declared in this scope
   19 |     bool p(True);
      |            ^~~~
a.cc:22:11: error: 'False' was not declared in this scope
   22 |         p=False;
      |           ^~~~~
a.cc:29:8: error: invalid types 'char [h][w][char [h][w]]' for array subscript
   29 |       b[c] = a[i];
      |        ^
a.cc:30:7: error: lvalue required as increment operand
   30 |       c++;
      |       ^
a.cc:35:7: error: conflicting declaration 'int c'
   35 |   int c(0);
      |       ^
a.cc:14:17: note: previous declaration as 'char c [h][w]'
   14 |   char b[h][w], c[h][w];
      |                 ^
a.cc:37:12: error: 'True' was not declared in this scope
   37 |     bool p(True);
      |            ^~~~
a.cc:40:11: error: 'False' was not declared in this scope
   40 |         p=False;
      |           ^~~~~
a.cc:48:13: error: invalid types 'char [w][char [h][w]]' for array subscript
   48 |         c[i][c] = b[i][j];
      |             ^
a.cc:49:7: error: lvalue required as increment operand
   49 |       c++;
      |       ^
a.cc:57:13: error: 'endll' was not declared in this scope
   57 |     cout << endll;
      |             ^~~~~
Language: C++

import strutils, sequtils

proc T(a: seq[string]): seq[string] =
  result = newSeqWith(a[0].len, newString(a.len))
  for i, _ in a:
    for j, _ in a[i]:
      result[j][i] = a[i][j]

var H, W: int
(H, W) = stdin.readLine.split.map(parseInt)
var a = newSeqWith(H, stdin.readLine)

a.keepItIf(it.anyIt(it == '#'))
a = a.T
a.keepItIf(it.anyIt(it == '#'))
a = a.T

for line in a:
  echo line


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import strutils, sequtils
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <tuple>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repd(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
#define repdm(i, a, b) for (ll i = (ll)(a); i > (ll)(b); i--)

int main()
{

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

  string board[110];
  bool goodx[110], good[110];

  rep(i, H)
  {
    cin >> board[i];
  }

  rep(i, H)
  {
    rep(j, W)
    {
      if (baord[i][j] == '#')
      {
        goodx[i] = true;
        goody[j] = true;
      }
    }
  }

  rep(i, H)
  {
    if (goodx[i])
    {
      rep(j, W)
      {
        if (goody[j])
          cout << board[i][j];
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:11: error: 'baord' was not declared in this scope; did you mean 'board'?
   31 |       if (baord[i][j] == '#')
      |           ^~~~~
      |           board
a.cc:34:9: error: 'goody' was not declared in this scope; did you mean 'good'?
   34 |         goody[j] = true;
      |         ^~~~~
      |         good
a.cc:45:13: error: 'goody' was not declared in this scope; did you mean 'good'?
   45 |         if (goody[j])
      |             ^~~~~
      |             good
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int H,W;
  cin>>H>>W;
  vector<string>vec(H);
  for(int i=0;i<H;i++){
    cin>>vec.at(i);
  }
  for(int i=0;i<H;i++){
    bool frag1=true;
    for(int j=0;j<W;j++){
      if(vec.at(i).at(j)=='#'){
        frag1=false;
      }
      else{
      }
    }
    if(flag1==true){
      for(int k=0;k<W;k++){
        vec.at(i).at(k)='0';
      }
    }
    else{
    }
  }
  for(int i=0;i<W;i++){
    bool flag=true;
    for(int j=0;j<H;j++){
      if(vec.at(j).at(i)=='#'){
        flag=false;
      }
      else{
      }
    }
    if(flag==true){
      for(int k=0;k<H;k++){
        vec.at(k).at(i)='0';
      }
    }
    else{
    }
  }
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      if(vec.at(i).at(j)=='0'){
      }
      else{
        cout<<vec.at(i).at(j);
      }
    }
    cout<<' '<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: 'flag1' was not declared in this scope; did you mean 'frag1'?
   19 |     if(flag1==true){
      |        ^~~~~
      |        frag1
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int H,W;
  cin>>H>>W;
  vector<string>vec(H);
  for(int i=0;i<H;i++){
    cin>>vec.at(i)
  }
  for(int i=0;i<H;i++){
    bool frag=true;
    for(int j=0;j<W;j++){
      if(vec.at(i).at(j)=='#'){
        frag=false;
      }
      else{
      }
    }
    if(flag==true){
      for(int k=0;k<W;k++){
        vec.at(i).at(k)='0';
      }
    }
    else{
    }
  }
  for(int i=0;i<W;i++){
    bool flag=true;
    for(int j=0;j<H;j++){
      if(vec.at(j).at(i)=='#'){
        flag=false;
      }
      else{
      }
    }
    if(flag==true){
      for(int k=0;k<H;k++){
        vec.at(k).at(i)='0';
      }
    }
    else{
    }
  }
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      if(vec.at(i).at(j)=='0'){
      }
      else{
        cout<<vec.at(i).at(j);
      }
    }
    cout<<' '<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before '}' token
    8 |     cin>>vec.at(i)
      |                   ^
      |                   ;
    9 |   }
      |   ~                
a.cc:19:8: error: 'flag' was not declared in this scope; did you mean 'frag'?
   19 |     if(flag==true){
      |        ^~~~
      |        frag
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int H,W;
  cin>>H>>W;
  vector<string>vec(H);
  for(int i=0;i<H;i++){
    cin>>vec.at(i)
  }
  for(int i=0;i<H;i++){
    bool frag=true;
    for(int j=0;j<W;j++){
      if(vec.at(i).at(j)=='#'){
        frag=false;
      }
      else{
      }
    }
    if(flag==true){
      for(int k=0;k<W;k++){
        vec.at(i).at(k)='0';
      }
    }
    else{
    }
  }
  for(int i=0;i<W;i++){
    bool flag=true;
    for(int j=0;j<H;j++){
      if(vec.at(j).at(i)=='#'){
        flag=false;
      }
      else{
      }
    }
    if(flag==true){
      for(int k=0;k<H;k++){
        vec.at(k).at(i)='0';
      }
    }
    else{
    }
  }
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      if(vec.at(i).at(j)=='0'){
      }
      else{
        cout<<vec.at(i).at(j);
      }
    }
    cout<< <<endl;
  }
}
      
      
      

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before '}' token
    8 |     cin>>vec.at(i)
      |                   ^
      |                   ;
    9 |   }
      |   ~                
a.cc:19:8: error: 'flag' was not declared in this scope; did you mean 'frag'?
   19 |     if(flag==true){
      |        ^~~~
      |        frag
a.cc:52:12: error: expected primary-expression before '<<' token
   52 |     cout<< <<endl;
      |            ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define REP(i, d, n) for(int i=(d); i<(n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
 
int main() {

  int h,w;
  cin>>h>>w;
  int count[h]=0;
  int counter[w]=0;
  
vector<vector<char>>a(h,vector<char>(w));
  rep(i.w){
  rep(j,h){if(a.at(i).at(j)=='.'){count[i]++;counter[j]++;}}}
  
  rep(k,h){
    rep(l,w){
      if(count[i]!=h&&counter[j]!=w){
        cout<<a.at(i).at(j);}
    		cout<<endl;}
  }

}

Compiler output:
a.cc:17:10: error: macro "rep" requires 2 arguments, but only 1 given
   17 |   rep(i.w){
      |          ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i, n) for(int i=0; i<(n); ++i)
      |         ^~~
a.cc: In function 'int main()':
a.cc:13:16: error: array must be initialized with a brace-enclosed initializer
   13 |   int count[h]=0;
      |                ^
a.cc:14:18: error: array must be initialized with a brace-enclosed initializer
   14 |   int counter[w]=0;
      |                  ^
a.cc:17:3: error: 'rep' was not declared in this scope
   17 |   rep(i.w){
      |   ^~~
a.cc:22:16: error: 'i' was not declared in this scope
   22 |       if(count[i]!=h&&counter[j]!=w){
      |                ^
a.cc:22:31: error: 'j' was not declared in this scope
   22 |       if(count[i]!=h&&counter[j]!=w){
      |                               ^
Language: C++

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

int main(){
  int H,W;
  cin >> H >> W;
  vector<vector<char>> data(H,vector<char>(W));
  for(int i=0; i<H; i++){
    for(int j=0; j<W; j++){
      cin >> data.at(i).at(j);
    }
  }
  
  for(int i=0; i<H; i++){
    
    bool ans = false;
    
    for(int j=0; j<W; j++){
      if(data.at(i).at(j) == '#'){
        ans = true;
        break;
      }
    }
    if(ans == false){
      for(int j=0; j<W; j++){
        data.at(i).at(j) = '';
      }
    }
  }
  
  for(int i=0; i<W; i++){
    
    bool ans = false;
    
    for(int j=0; j<H; j++){
      if(data.at(j).at(i) == '#'){
        ans = true;
        break;
      }
    }
    if(ans == false){
      for(int j=0; j<H; j++){
        data.at(j).at(i) = '';
      }
    }
  }
  
  for(int i=0; i<H; i++){
    for(int j=0; j<W; j++){
      cout << data.at(i).at(j);
    }
    cout << endl;
  }
}

Compiler output:
a.cc:26:28: error: empty character constant
   26 |         data.at(i).at(j) = '';
      |                            ^~
a.cc:43:28: error: empty character constant
   43 |         data.at(j).at(i) = '';
      |                            ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main() {
  int H, W;
  cin >> H >> W;
  
  vector<vector<char>> before(H, vector<char>(W));
  rep(i, H)
    rep(j, W)
      cin >> before.at(i).at(j);
  
  vector<int> tate(H, 0);
  vector<int> yoko(W, 0);
  
  rep(i, H) {
    rep(j, W) {
      if (before.at(i).at(j) == '#') {
        break;
      }
      if (j == W -1)
        tate.at(i) = 1;
    }
  }
  
  rep(j, W) {
    rep(i, H) {
      if (before.at(i).at(j) == '#') {
        break;
      }
      if (i == H -1)
        yoko.at(j) = 1;
    }
  }
  
  rep(i, H) {
    if (tate.at(i) == 1) {
      
      continue;
    
    rep(j, W) {
      if (yoko.at(j) == 1)
        continue;
      
      cout << before.at(i).at(j);
    }  
    cout << endl;
    
  }
}

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

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

int main(){
    int h,w;
    cin >> h >> w;
    vector<char> mass(h);
    for (int i = 0; i < h; i++){
        cin >> mass[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 (mass[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 << mass[i][j];
                }
            }
        }
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript
   16 |             if (mass[i][j] == '#'){
      |                        ^
a.cc:27:36: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript
   27 |                     cout << mass[i][j];
      |                                    ^
Language: C++

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

int main(){
    int h,w;
    cin >> h >> w;
    vector<char> mass(h);
    for (int i = 0; i < h; i++){
        cin >> mass[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 (mass[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:16:24: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript
   16 |             if (mass[i][j] == '#'){
      |                        ^
a.cc:27:29: error: 'a' was not declared in this scope
   27 |                     cout << a[i][j];
      |                             ^
Language: C++


#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


int main() {
int h,w;
cin >> h >> w;
char a[h][w];
int vector<int> h_co,w_co;
int h_count;
int w_count;
REP(i,h) {
  h_count = 0;
  REP(j,w) {
    cin >> a[i][j];
    if(a[i][j]=='.') h_count++;
  }
  if(h_count==w) h_co.push_back(i);
}
REP(i,w) {
  w_count = 0;
  REP(j,h) {
    if(a[j][i]=='.') w_count++;
  }
  if(w_count==w) w_co.push_back(i);
}
for(int i:h_co) {
  for(int j:w_co) {
    cout << s[i][j];
  }
  cout << endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: invalid declarator before 'h_co'
   17 | int vector<int> h_co,w_co;
      |                 ^~~~
a.cc:26:18: error: 'h_co' was not declared in this scope; did you mean 'h_count'?
   26 |   if(h_count==w) h_co.push_back(i);
      |                  ^~~~
      |                  h_count
a.cc:33:18: error: 'w_co' was not declared in this scope; did you mean 'w_count'?
   33 |   if(w_count==w) w_co.push_back(i);
      |                  ^~~~
      |                  w_count
a.cc:35:11: error: 'h_co' was not declared in this scope; did you mean 'h_count'?
   35 | for(int i:h_co) {
      |           ^~~~
      |           h_count
a.cc:36:13: error: 'w_co' was not declared in this scope; did you mean 'w_count'?
   36 |   for(int j:w_co) {
      |             ^~~~
      |             w_count
a.cc:37:13: error: 's' was not declared in this scope
   37 |     cout << s[i][j];
      |             ^
Language: C++

#include<iostrean>
using namespace std;
int main()
{
int a,b;
  cin>>a>>b;
for(int a=#;a++)
  for(int b=.;b++)
   cout<<a<<b


}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)

int main(){
    int H,W; 
    cin >> H,W;
    vector<vector<char>> map(H,vector<char>(W));
    rep(i,H) rep(j,W) cin >> map.[i].at[j];

    vector<bool> raw(H,true), column(W,true);
    rep(i,H) rep(j,W) {
        if(map.at(i).at(j) == '#'){
            raw.at(i) = false;
            column.at(j) = false;
        }
    }
    rep(i,H) {
        bool f = false;
        rep(j,W) {
            if(!raw.at(i) && !column.at(j)){
                cout << map.at(i).at(j);
                f = true;
            }
        }
        if(f) cout << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: expected unqualified-id before '[' token
   10 |     rep(i,H) rep(j,W) cin >> map.[i].at[j];
      |                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main(){
    int H,W; 
    cin >> H,W;
    vector<vector<char>> map(100,vector<char>(100));
    rep(i,H) rep(j,W) cin >> map.at(i).at(j);

    vector<bool> raw(H,true), column(W,true);
    rep(i,H) rep(j,W) {
        if(map.at(i).at(j) == '#'){
            raw.at(i) = false;
            column.at(j) = false;
        }
    }
    rep(i,H) {
        rep(j,W) {
            bool f = false;
            if(!raw.at(i) && !column.at(j)){
                cout << map.at(i).at(j);
                f = true;
            }
        }
        if(f) cout << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: 'f' was not declared in this scope
   26 |         if(f) cout << endl;
      |            ^
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));
  int i,j = 0;
  for(i=0;i<H;i++){
    for(j=0;j<W;j++){
      cin >>a.at(i).at(j);
    }
  }
  
  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.at(i).at(j)=='#'){
        row.at(i)=true;
        col.at(j)=true;
      }
    }
  }
  for(int i=0;i<H;i++){
    if(row.at(i)){
      for(int j=0;j<W;j++){
        if(col.at(j)==true)
          cout << c.at(i).at(j);
      }
    }
    cout << endl;
  }
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:19: error: 'c' was not declared in this scope
   29 |           cout << c.at(i).at(j);
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<ll> vl;
typedef set<ll> sl;
typedef pair<ll, ll> PP;
#define rep(i, n) for(ll i = 0; i < ll(n); i++)
#define rep2(i, n) for(ll i = 1; i <= ll(n); i++)
//#define rep(i, k, n) for(ll i = k-1; i < ll(n); i++)
//#define rep2(i, k, n) for(ll i = k; i <= ll(n); i++)
#define all(v) v.begin(), v.end()
//bool chmin(ll & a, ll  b) { if (b < a) { a = b; return 1; } return 0; }
//bool chmax(ll & a, ll b) { if (b > a) { a = b; return 1; } return 0; }
const ll INF = 999999999999999;
const ll MOD = 1000000007;
const ll MAX_N=500010;
ll N, ans=0;
int main() {
  ll H, W;
  cin >> H >> W;
  char a[H][W], white='.', black='#';
  rep(i, H) rep(j, W) cin >> a[i][j];
  
  bool line[H],row[W];
  
  rep(i, H) {
    rep(j, W) {
      if(a[i][j] == ) {}
    }
    
  }
  cout << white << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:21: error: expected primary-expression before ')' token
   28 |       if(a[i][j] == ) {}
      |                     ^
Language: C++

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

int main(){
  int H;
  cin>>H;
  int W;
  cin>>W;
  vector<string>str(H);
  for(int i=0;i<H;i++){
  	cin>>str.at(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(str.at(i).at(j)=='#'){
        	row.at(i)=true;
          	col.at(j)=true;
        }
    }	
  }
  for(int i=0;i<H;i++){
  	if(row.at(i)){
    	for(inf j=0;j<W;j++){
        	if(col.at(j)){
            	cout>>str.at(i).at(j);
            }
        }
    }
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:13: error: 'inf' was not declared in this scope; did you mean 'ynf'?
   25 |         for(inf j=0;j<W;j++){
      |             ^~~
      |             ynf
a.cc:25:21: error: 'j' was not declared in this scope
   25 |         for(inf j=0;j<W;j++){
      |                     ^
Language: C++

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

int main(){
  int H,W;
  cin>>H,W;
  vector<vector<char>>data(H,vector<char>(W));
  for(int i=0;i<H;i++){
  	for(int j=0;j<W;j++){
    	cin>>data.at(i).at(j);
    }
  }
  for(int i=0;i<H;i++){
  	for(int j=0;j<W;j++){
    	for(int k=0;k<W-1;k++){
        	if(data.at(i).at(j)!=data.at(i).at(k+1)){
              	break;
              	if(k==w-2){i++;}
            }
          	
          	if(data.at(i).at(j)!=data.at(k+1).at(j)){
            	break;
              	if(k==w-2){j++;}
            }
          
        }
      	cout<<data.at(i).at(j);
      	if(j==W-1){cout<<endl;}
    }
  }
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: 'w' was not declared in this scope
   18 |                 if(k==w-2){i++;}
      |                       ^
a.cc:23:23: error: 'w' was not declared in this scope
   23 |                 if(k==w-2){j++;}
      |                       ^
Language: C++

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

int main(){
  int H,W;
  cin>>H,W;
  vector<vector<char>>data(H.vector<char>(W));
  for(int i=0;i<H;i++){
  	for(int j=0;j<W;j++){
    	cin>>data.at(i).at(j);
    }
  }
  for(int i=0;i<H;i++){
  	for(int j=0;j<W;j++){
    	for(int k=0;k<w-1;k++){
        	if(data.at(i).at(j)==data.at(i).at(j+k+1)){
            	continue;	
            }
            if(data.at(i).at(j)==data.at(i+k+1).at(j)){
            	continue;
            }
        }
      	cout<<data.at(i).at(j);
    }
  }
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: invalid use of 'class std::vector<char>'
    7 |   vector<vector<char>>data(H.vector<char>(W));
      |                              ^~~~~~~~~~~~
a.cc:15:23: error: 'w' was not declared in this scope
   15 |         for(int k=0;k<w-1;k++){
      |                       ^
Language: C++

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

int main(){
  int H,W;
  cin>>H,W;
  vector<vector<char>>data(H.vector<char>(W));
  for(int i=0;i<H;i++){
  	for(int j=0;j<W;j++){
    	cin>>data.at(i).at(j);
    }
  }
  for(int i=0;i<H;i++){
  	for(int j=0;j<W;j++){
    	for(int k=0;k<w-1;k++){
        	if(data.at(i).at(j)==data.at(i).at(j+k+1)){
            	continue;	
            if(data.at(i).at(j)==data.at(i+k+1).at(j)){
            	continue;
            }
        }
      	cout<<data.at(i).at(j);
    }
  }
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: invalid use of 'class std::vector<char>'
    7 |   vector<vector<char>>data(H.vector<char>(W));
      |                              ^~~~~~~~~~~~
a.cc:15:23: error: 'w' was not declared in this scope
   15 |         for(int k=0;k<w-1;k++){
      |                       ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int 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).at(j);
    }
  }
  
  vector<int> hwhite(1,0),wwhite(1,0)
  
  for(int i=0; i<h; i++){
    int sum=0;
    for(int j=0; j<w; j++){
      if(a.at(i).at(j)=='#')
        sum++;
    }
    if(sum==0)
      hwhite.push_back(i);
  }

 for(int i=0; i<h; i++){
    int sum=0;
    for(int j=0; j<w; j++){
      if(a.at(j).at(i)=='#')
        sum++;
    }
    if(sum==0)
      wwhite.push_back(i);
  }

  for(int i=0; i<h; i++){
    for(int j=0; j<w; j++){
      bool finish = false;
      for(int k=1; k<hwhite.size();k++){
        for(int l=1; l<wwhite.size();l++){
        if(i==hwhite.at(k)||j==wwhite.at(l)){
          finish =true;
          break;
        }
        cout << a.at(i).at(j) << endl;
        }
        if(finish)
          break;
      }
    }
    cout << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected ',' or ';' before 'for'
   16 |   for(int i=0; i<h; i++){
      |   ^~~
a.cc:16:16: error: 'i' was not declared in this scope
   16 |   for(int i=0; i<h; i++){
      |                ^
Language: C++

include<bits/stdc++.h>
#define rep(i,n) for(int i = 0;i<(n);++i)
using namespace std;

int main() {
	int h, w;
	cin >> h >> w;

	vector<string> a(h);
	rep(i,h) {
		cin >> a[i];
	}

	vector<bool> row(h, false);
	vector<bool> column(w, false);

	rep(i,h){
		rep(j,w){
			if (a[i][j] == '#') {
				row[i] = true;
				column[j] = true;
			}
		}
	}

	rep(i,h) {
		if (row[i] == true) {
			rep(j,w) {
				if (column[j] == true) {
					cout << a[i][j];
				}
			}
			cout << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> h >> w;
      |         ^~~
a.cc:9:9: error: 'vector' was not declared in this scope
    9 |         vector<string> a(h);
      |         ^~~~~~
a.cc:9:16: error: 'string' was not declared in this scope
    9 |         vector<string> a(h);
      |                ^~~~~~
a.cc:9:24: error: 'a' was not declared in this scope
    9 |         vector<string> a(h);
      |                        ^
a.cc:14:16: error: expected primary-expression before 'bool'
   14 |         vector<bool> row(h, false);
      |                ^~~~
a.cc:15:16: error: expected primary-expression before 'bool'
   15 |         vector<bool> column(w, false);
      |                ^~~~
a.cc:20:33: error: 'row' was not declared in this scope
   20 |                                 row[i] = true;
      |                                 ^~~
a.cc:21:33: error: 'column' was not declared in this scope
   21 |                                 column[j] = true;
      |                                 ^~~~~~
a.cc:27:21: error: 'row' was not declared in this scope
   27 |                 if (row[i] == true) {
      |                     ^~~
a.cc:29:37: error: 'column' was not declared in this scope
   29 |                                 if (column[j] == true) {
      |                                     ^~~~~~
a.cc:30:41: error: 'cout' was not declared in this scope
   30 |                                         cout << a[i][j];
      |                                         ^~~~
a.cc:33:25: error: 'cout' was not declared in this scope
   33 |                         cout << endl;
      |                         ^~~~
a.cc:33:33: error: 'endl' was not declared in this scope
   33 |                         cout << endl;
      |                                 ^~~~