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

/*Kadai5_3
 saitomo*/
#include <stdio.h>
int main(void){
    int row,col,i,j;   
    scanf("%d %d", &row, &col);
    int count_row[row],count_col[col];//行と列での＃の出現の判定に使う
    char box[row][col];//マス目を読み込む
    for(i=0;i<row;i++){
        for(j=0;j<col;j++){
            scanf(" %c",&box[i][j]);
            count_row[i]=0;//値の初期化
            count_col[j]=0;
        }
    }
  　for(i=0;i<row;i++){
        for(j=0;j<col;j++){
            if(box[i][j]=='#'){
                count_row[i]=1;//行または列に＃が存在すれば1となる
                count_col[j]=1;
            }
        }
    }
    for(i=0;i<row;i++){
        if(count_row[i]==1){//行中に＃があるか判定
            for(j=0;j<col;j++){
                 if(count_col[j]){//列中に＃があるか判定
                      printf("%c",box[i][j]);//消えない部分をプリントする
                 }
            }
        printf("\n");//1行ごとに改行
        }
    }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:3: error: stray '\343' in program
   16 |   <U+3000>for(i=0;i<row;i++){
      |   ^~~~~~~~
Language: C

/*  ex5_3
    potter0723sw  */

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

int main(void){
    int height, width, i, j, rowblack[100]={0}, colblack[100]={0};
    char cell[100][100];
    scanf("%d %d", &height, &width);

    for(i=0; i < height; i++){//マスの入力を受け取る
        for(j=0; j < width; j++){
            scanf("　%s", &cell[i][j]);
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < width; j++){
            if(cell[i][j] == '#'){
                rowjudge[i] = 1;
            }
        }
    }

    for(j=0; j < width; j++){
        for(i=0; i < height; i++){
            if(cell[i][j] == '#'){
                coljudge[j] = 1;
            }
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < width; j++){
            if(rowblack[i] == 1 && colblack[j] == 1){
                printf("%c", cell[i][j]);
            }
        }
        printf("\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:21:17: error: 'rowjudge' undeclared (first use in this function)
   21 |                 rowjudge[i] = 1;
      |                 ^~~~~~~~
main.c:21:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:17: error: 'coljudge' undeclared (first use in this function)
   29 |                 coljudge[j] = 1;
      |                 ^~~~~~~~
Language: C

/*  ex5_3
    potter0723sw  */

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

int main(void){
    int height, width, num, i, j, k, l, judge;
    char cell[10001];
    scanf("%d %d", &height, &width);

    for(i=0; i < height; i++){//マスの入力を受け取る
        for(j=0; j < width; j++){
            scanf("　%s", &cell[i*height+j]);
        }
    }
    num = height * width;

    for(i=0; i < height; i++){
        judge = 0;
        for(j=0; j < width; j++){
            if(cell[i * height+j] == '#'){
                judge = 1;
            }
        if(judge == 0){//最後のマスまで白なら行削除
            for(k=i*height; k<=num; k++){
                cell[k]=cell[k + width];
            }
            height = height - 1;
            i = i - 1;
            num = height * width;
        }
    }

    for(j=0; j < width; j++){
        judge = 0;
        for(i=0; i < height; i++){
            if(cell[i * height+j] == '#'){
                judge = 1;
            }
        }
        if(judge == 0){//最後のマスまで白なら行削除
            for(k=i * height + j; k > 0; k = k - height){
                for(l = k;l <= num;l++){
                    cell[k]=cell[k+1];
                }
            width = width - 1;
            j = j - 1;
            num = height * width;
            }
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < width; j++){
            printf("%c", cell[i * height+j]);
        }
        printf("\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:60:1: error: expected declaration or statement at end of input
   60 | }
      | ^
Language: C

/*  ex5_3
    potter0723sw  */

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

int main(void){
    int height, width, num, i, j, k, l, judge;
    char cell[10001];
    scanf("%d %d", &height, &width);

    for(i=0; i < height; i++){//マスの入力を受け取る
        for(j=0; j < width; j++){
            scanf("　%s", &cell[i*height+j]);
        }
    }
    num = height * width;

    for(i=0; i < height; i++){
        judge = 0;
        for(j=0; j < width; j++){
            if(cell[i * height+j] == '#'){
                judge = 1;
            }
        if(judge == 0){//最後のマスまで白なら行削除
            for(k=i*height; k<=num; k++){
                cell[k]=cell[k + width];
            }
            height = height - 1;
            i = i - 1;
            num = height * width;
        }
    }

    for(j=0; j < width; j++){
        judge = 0;
        for(i=0; i < height; i++){
            if(cell[i * height+j] == '#'){
                judge = 1;
            }
        if(judge == 0){//最後のマスまで白なら行削除
            for(k=i * height + j; k > 0; k = k - height){
                for(l = k;l <= num;l++){
                    cell[k]=cell[k+1];
                }
            }
        width = width - 1;
        j = j - 1;
        num = height * width;
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < width; j++){
            printf("%c", cell[i * height+j]);
        }
        printf("\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:59:1: error: expected declaration or statement at end of input
   59 | }
      | ^
main.c:59:1: error: expected declaration or statement at end of input
Language: C

/*  ex5_3
    potter0723sw  */

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

int main(void){
    int height, width, num, i, j, k, l, judge;
    char cell[10001];
    scanf("%d %d", &height, &width);

    for(i=0; i < height; i++){//マスの入力を受け取る
        for(j=0; j < width; j++){
            scanf("　%s", &cell[i*height+j]);
        }
    }
    num = height * width;

    for(i=0; i < height; i++){
        judge = 0
        for(j=0; j < width; j++){
            if(cell[i * height+j] == '#'){
                judge = 1;
            }
        if(judge == 0){//最後のマスまで白なら行削除
            for(k=i*height; k<=num; k++){
                cell[k]=cell[k + width];
            }
            height = height - 1;
            i = i - 1;
            num = height * width;
        }
    }

    for(j=0; j < width; j++){
        judge = 0
        for(i=0; i < height; i++){
            if(cell[i * height+j] == '#'){
                judge = 1;
            }
        if(judge == 0){//最後のマスまで白なら行削除
            for(k=i * height + j; k > 0; k = k - height){
                for(l = k;l <= num;l++){
                    cell[k]=cell[k+1];
                }
            }
        width = width - 1;
        j = j - 1;
        num = height * width;
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < width; j++){
            printf("%c", cell[i * height+j]);
        }
        printf("\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:20:18: error: expected ';' before 'for'
   20 |         judge = 0
      |                  ^
      |                  ;
   21 |         for(j=0; j < width; j++){
      |         ~~~       
main.c:59:1: error: expected declaration or statement at end of input
   59 | }
      | ^
main.c:59:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
int main(void){
  int row,column,i,j,rblack[100],cblack[100];
  char matrix[100][100];
  scanf("%d %d",row,column);
  rblack[100] = {0};
  cblack[100] = {0};
  for(i=0;i<row;i++){
    for(j=0;j<column;j++){
      scanf(" %c",matrix[i][j]);
      if(matrix[i][j] = '#'){
        rblack[i] += 1;
        cblack[j] += 1;
      }
    }
  }
  for(i=0;i<row;i++){
    for(j=0;j<column;j++){
      if(rblack[i] != 0 && cblack[j] != 0){
        printf("%c",matrix[i][j]);
      }
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before '{' token
    6 |   rblack[100] = {0};
      |                 ^
main.c:7:17: error: expected expression before '{' token
    7 |   cblack[100] = {0};
      |                 ^
Language: C

/*  ex4_4
    potter0723sw  */

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

int main(void){
    int height, width, num, i, j, k;
    char cell[10001];
    scanf("%d %d", &height, &width);
    num = height * width

    for(i=0; i < height; i++){//マスの入力を受け取る
        for(j=0; j < width; j++){
            scanf("　%c", &cell[i*height+j]);
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < width; j++){
            if(cell[i * height+j] == '#'){//黒マス発見でループ脱出
                break;
            }
            if(j == width - 1){//最後のマスまで白なら行削除
                for(k=i*height+1; k<num; k++){
                    cell[k]=cell[k + width];
                }
                height = height - 1;
                i = i - 1;
            }
        }
    }

    for(j=0; j < width; j++){
        for(i=0; i < height; i++){
            if(cell[i * height+j] == '#'){//黒マス発見でループ脱出
                break;
            }
            if(i == height - 1){//最後のマスまで白なら行削除
                for(k=i * height + j; k > 0; k = k - height){
                    cell[k]=cell[k+1];
                }
                width = width - 1;
                j = j - 1;
            }
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < height; j++){
            printf("%c", cell[i * height+j]);
        }
        printf("\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:11:25: error: expected ';' before 'for'
   11 |     num = height * width
      |                         ^
      |                         ;
   12 | 
   13 |     for(i=0; i < height; i++){//マスの入力を受け取る
      |     ~~~
Language: C

/* ex5_3
   UMAboogie */
#include<stdio.h>

int main(void){
  int height,width;
  scanf("%d %d",&height,&width);
  char grid[height][width] = {0};
  int row_exist[height] = {0};
  int col_exist[width] = {0}
  for(int i = 0;i < height;i++){
    for(int j = 0;j < width;j++){
      scanf(" %c",&grid[i][j]);
      if(grid[i][j] == '#'){
        row_exist[i]=1;
        col_exist[j]=1;
      }
    }
  }
  for(int i = 0;i < height;i++){
      for(int j;j < width;j++){
        if(row_exist[i] == 1 && col_exist[j] == 1){
          printf("%c",grid[i][j]);
        }
      }
      printf("\n");
    }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:30: error: variable-sized object may not be initialized except with an empty initializer
    8 |   char grid[height][width] = {0};
      |                              ^
main.c:9:27: error: variable-sized object may not be initialized except with an empty initializer
    9 |   int row_exist[height] = {0};
      |                           ^
main.c:10:26: error: variable-sized object may not be initialized except with an empty initializer
   10 |   int col_exist[width] = {0}
      |                          ^
main.c:11:3: error: expected ',' or ';' before 'for'
   11 |   for(int i = 0;i < height;i++){
      |   ^~~
main.c:11:17: error: 'i' undeclared (first use in this function)
   11 |   for(int i = 0;i < height;i++){
      |                 ^
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:31: error: expected ';' before ')' token
   11 |   for(int i = 0;i < height;i++){
      |                               ^
      |                               ;
main.c:11:31: error: expected statement before ')' token
Language: C

/*  ex4_4
    potter0723sw  */

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

void werase(int *ptr, int *last, int *eraser);//ptrは削除位置、lastは末尾位置、eraserは消す行の文字数
void erase(int *ptr, int *last);

int main(void){
    int height, width, i, j;
    char cell[10001];
    scanf("%d %d", &height, &width);

    for(i=0; i < height; i++){//マスの入力を受け取る
        for(j=0; j < width; j++){
            scanf("　%c", &cell[i*height+j]);
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < width; j++){
            if(cell[i * height+j] == '#'){//黒マス発見でループ脱出
                break;
            }
            if(j == width - 1){//最後のマスまで白なら行削除
                werase((int *)(1+ i * width),(int *)(width * height),(int *)width);
                height = height - 1;
            }
        }
    }

    for(j=0; j < width; j++){
        for(i=0; i < height; i++){
            if(cell[i * height+j] == '#'){//黒マス発見でループ脱出
                break;
            }
            if(j == height - 1){//最後のマスまで白なら行削除
                for(i=0; i < height; i++){
                    erase((int *)(1+ i * width + j),(int *)(width * height));
                }
                width = width - 1;
            }
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < height; j++){
            printf("%c", cell[i * height+j]);
        }
        printf("\n");
    }
}

void werase(int *wptr, int *wlast, int *eraser){
    while(++wptr < wlast){
        *(wptr - eraser) = *wptr;//要素をひとつ前にずらす
    }
}

void erase(int *ptr, int *last){
    while(++ptr < last){
        *(ptr - 1) = *last;
    }
}


Compiler output:
main.c: In function 'main':
main.c:27:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   27 |                 werase((int *)(1+ i * width),(int *)(width * height),(int *)width);
      |                        ^
main.c:27:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   27 |                 werase((int *)(1+ i * width),(int *)(width * height),(int *)width);
      |                                              ^
main.c:27:70: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   27 |                 werase((int *)(1+ i * width),(int *)(width * height),(int *)width);
      |                                                                      ^
main.c:40:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   40 |                     erase((int *)(1+ i * width + j),(int *)(width * height));
      |                           ^
main.c:40:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   40 |                     erase((int *)(1+ i * width + j),(int *)(width * height));
      |                                                     ^
main.c: In function 'werase':
main.c:57:9: error: invalid type argument of unary '*' (have 'long int')
   57 |         *(wptr - eraser) = *wptr;//要素をひとつ前にずらす
      |         ^~~~~~~~~~~~~~~~
Language: C

/*
ex5_3
TKC001
*/

#include<stdio.h>
#define SIDE 100
int main(void){
    char mat[SIDE][SIDE],row_mat[SIDE][SIDE]], out_mat[SIDE][SIDE];
    /* mat:入力の行列
   row_mat:行を切った行列
   out_mat:さらに列を切った出力の行列
   */
    int row, column, delete=1, memo_row=0, memo_column=0;

    //H, Wの入力
    scanf("%d%d", &row, &column);

    for (int i = 0; i < row; i++)
    {   //色の入力
        scanf("%s", mat[i]);
    }

    for (int i = 0; i < row; i++)//行について黒があるかどうか調べる
    {
        for (int j = 0; j < column; j++)
        {
            if (mat[i][j]=='#')
            {
                delete = 0;//行のどこかに黒があったら消さない
            }
            
        }
        if (delete==0)//行を消さないとき
        {
            
            for (int j = 0; j < column; j++)
            {
                row_mat[memo_row][j] = mat[i][j];
            }
            memo_row +=1;
                                    
        }
        delete = 1;       
    }

    for (int j = 0; j < column; j++)//列について黒があるかどうか調べる
    {
        for (int i = 0; i < memo_row + 1; i++)
        {
            if(row_mat[i][j]=='#'){
                delete = 0;
            }
        }
        if (delete==0)//列を消さないとき
        {
            for (int i = 0; i < memo_row + 1; i++)
            {
                out_mat[i][memo_column] = row_mat[i][j];
            }
            memo_column +=1; 
        }
        delete = 1;
    }
    for(int i = 0; i < memo_row; i++)
    {
        printf("%s\n", out_mat[i]);//出力
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before ']' token
    9 |     char mat[SIDE][SIDE],row_mat[SIDE][SIDE]], out_mat[SIDE][SIDE];
      |                                             ^
main.c:39:17: error: 'row_mat' undeclared (first use in this function)
   39 |                 row_mat[memo_row][j] = mat[i][j];
      |                 ^~~~~~~
main.c:39:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:59:17: error: 'out_mat' undeclared (first use in this function)
   59 |                 out_mat[i][memo_column] = row_mat[i][j];
      |                 ^~~~~~~
Language: C

/*  ex4_4
    potter0723sw  */

#include <stdio.h>

void werase(int *ptr, int *last)//ptrは削除位置、lastは末尾位置
void erase(int *ptr, int *last)

int main(void){
    int height, width, i, j;
    char cell[101][101];
    scanf("%d %d", &height, &width);

    for(i=0; i < height; i++){//マスの入力を受け取る
        for(j=0; j < width; j++){
            scanf("　%c", &cell[i][j]);
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < width; j++){
            if(cell[i][j] == '#'){//黒マス発見でループ脱出
                break;
            }
            if(j = width - 1){//最後のマスまで白なら行削除
                werase(begin(cell)+ i * width,width * height);
                height = height - 1;
            }
        }
    }

    for(j=0; j < width; j++){
        for(i=0; i < height; i++){
            if(cell[i][j] == '#'){//黒マス発見でループ脱出
                break;
            }
            if(j = height - 1){//最後のマスまで白なら行削除
                for(i=0; i < height; i++){
                    erase(begin(cell)+ i * width + j,width * height);
                }
                width = width - 1;
            }
        }
    }

    for(i=0; i < height; i++){
        for(j=0; j < height; j++){
            printf("%c", cell[i][j]);
        }
        printf("\n");
    }
}

void werase(int *wptr, int *wlast){
    while(++wptr < wlast){
        *(wptr - width) = *wptr;//要素をひとつ前にずらす
    }
}

void erase(int *ptr, int *last){
    while(++ptr < last){
        *(ptr - 1) = last;
    }
}

Compiler output:
main.c: In function 'werase':
main.c:9:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    9 | int main(void){
      | ^~~
main.c:54:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   54 | void werase(int *wptr, int *wlast){
      |                                   ^
main.c:60:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   60 | void erase(int *ptr, int *last){
      |                                ^
main.c:65: error: expected '{' at end of input
Language: C

/*  ex5_3
    takafumi_ueki*/
#include <stdio.h>
＃define LIMIT 100
    int main(void){
    int i,j,length,width;
    int row[LIMIT]={0};
    int col[LIMIT]={0};
    char field[LIMIT][LIMIT];
    //縦と横の長さを受け取る
    scanf("%d %d",&length,&width);
    //マス目が'.'か'#'かを受け取る
    for(i=0;i<length;i++){
        for(j=0;j<width;j++){
            scanf(" %c",&field[i][j]);
        }
    }
    //列ごとに'#'が含まれているかどうかを調べる
    //もし含まれていたらrow[i]が1になる
    for(i=0;i<length;i++){
        for(j=0;j<width;j++){
            if(field[i][j]=='#'){
                row[i]=1;
                break;
            }
        }
    }
    //次に行ごとに'#'が含まれていないか調べる
    for(j=0;j<width;j++){
        for(i=0;i<length;i++){
            if(field[i][j]=='#'){
                col[j]=1;
                break;
            }
        }
    }
    //もし,'#'がひとつでも含まれていたらその行、列は書き出すようにする
    for(i=0;i<length;i++){
        for(j=0;j<width;j++){
            if(row[i]==1&&col[j]==1){
                printf("%c",field[i][j]);
            }
        }
        printf("\n");
    }
    return 0;
}


Compiler output:
main.c:4:1: error: unknown type name '\U0000ff03define'
    4 | ＃define LIMIT 100
      | ^~~~~~~~
main.c:4:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
    4 | ＃define LIMIT 100
      |                ^~~
Language: C

/*ex5_3
 Sweet_Sweet_Soul */
#include <stdio.h>

int main(void) {
    int hei,wid;/*hei=height、wid＝width*/
    scanf("%d%d",&hei,&wid);
    char grid[hei][wid];
    int hei_ture[hei]={0};
    int wid_ture[wid]={0};
    for(int i=0;i<hei;i++){
        for(int j=0;j<wid;j++){
            scanf(" %c",&grid[i][j]);
            if(grid[i][j]=='#'){
                hei_ture[i]=1;
                wid_ture[j]=1;
            }
        }
    }
    for(int i=0;i<hei;i++){
        if(hei_ture[i]==1){
            for(int j;j<wid;j++){
                if(wid_ture[j]==1){
                    printf("%c",grid[i][j]);
                }
            }
        printf("\n");
        }
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:23: error: variable-sized object may not be initialized except with an empty initializer
    9 |     int hei_ture[hei]={0};
      |                       ^
main.c:10:23: error: variable-sized object may not be initialized except with an empty initializer
   10 |     int wid_ture[wid]={0};
      |                       ^
Language: C

/*ex5_3
 Sweet_Sweet_Soul */
#include <stdio.h>

int main(void) {
    int hei,wid;/*hei=height、wid＝width*/
    scanf("%d%d",&hei,&wid);
    char grid[hei][wid];
    int hei_ture[hei]={0}
    int wid_ture[wid]={0};
    for(int i=0;i<hei;i++){
        for(int j=0;j<wid;j++){
            scanf(" %c",&grid[i][j]);
            if(grid[i][j]=='#'){
                hei_ture[i]=1;
                wid_ture[j]=1;
            }
        }
    }
    for(int i=0;i<hei;i++){
        if(hei_ture[i]==1){
            for(int j;j<wid;j++){
                if(wid_ture[j]==1){
                    printf("%c",grid[i][j]);
                }
            }
        printf("\n");
        }
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:23: error: variable-sized object may not be initialized except with an empty initializer
    9 |     int hei_ture[hei]={0}
      |                       ^
main.c:10:5: error: expected ',' or ';' before 'int'
   10 |     int wid_ture[wid]={0};
      |     ^~~
main.c:16:17: error: 'wid_ture' undeclared (first use in this function)
   16 |                 wid_ture[j]=1;
      |                 ^~~~~~~~
main.c:16:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

/*Kadai5_3
saitomo*/
#include <stdio.h>
int main(void){
    int row,col,i,j;//変数の定義
    
  
    scanf("%d%d",&row,&col);
    int count_row[row],count_col[col];
    char box[row][col];
    for(i=0;i<row;i++){//配列の初期化
        count_row[i]=0;
    }
    for(i=0;i<col;i++){
        count_col[i]=0;
    }
    for(i=0;i<row;i++){//マス目を読み込む
        for(j=0;j<col;j++){ 
            scanf(" %c",&box[i][j]);
            if (box[i][j]=='#'){//その行、列に#があれば1を入れる
                count_row[i]=1;
                count_col[j]=1;
            }    
        }
    
    for (i=0;i<row;i++){
        if(count_row[i]==1){//その行は＃があるかを判定
            for(j=0;j<row;j++){
                if(count_col[j]==1){//その行のj番目の列に＃があるかを判定
                    printf("%c",box[i][j]);
                }
            }
            printf("\n");//1行ごとに改行
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:37:1: error: expected declaration or statement at end of input
   37 | }
      | ^
Language: C

/* ex5-3
   Sagzar1993  */

#include <stdio.h>
#define LIM 100　//行数、列数の上限

int main(void) {
    int row, col; //行と列の数
    int i, j;
    scanf("%d %d", &row, &col); //行数、列数の入力
    char colors[row][col]; //記号の配列
    int whiteRow[LIM] = {0}; //各行のマス目が全て白なら1, 違えば0
    int whiteCol[LIM] = {0}; //各列のマス目が全て白なら1, 違えば0

    for(i = 0; i < row; i++){
        for(j = 0; j < col; j++){
            scanf(" %c", &colors[i][j]); //各マス目の色記号の入力
        }
    }


    for(i = 0; i < row; i++){
        for(j = 0; j < col; j++){
            if(colors[i][j] != '.'){
                break; //各行について、白でないマス目があれば終了して次の行へ
            }
        }
        if(j == col){
            whiteRow[i] = 1; //行の全てのマス目が白ならwhiteRowに1を保存
        }
    }
    
    for(j = 0; j < col; j++){
        for(i = 0; i < row; i++){
            if(colors[i][j] != '.'){
                break; //各列について、白でないマス目があれば終了して次の行へ
            }
        }
        if(i == row){
            whiteCol[j] = 1; //列の全てのマス目が白ならwhiteColに1を保存
        }
    }
    
    for(i = 0; i < row; i++){
        if(whiteRow[i] == 1){
            continue;  //各行について、whiteRowを参照し、その行の全てのマス目が白ならスキップ
        }

        for(j = 0; j < col; j++){
            if(whiteCol[j] == 1){
                continue; //各行の各列のマス目について、その列が全てのマス目が白である列ならスキップ
            }
            printf("%c", colors[i][j]); //そのマス目の行と列がともに全て白でないときは出力
        }
        printf("\n"); //各行について、全てのマス目を調べ終えたら改行
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: stray '\343' in program
    5 | #define LIM 100<U+3000>//<U+884C><U+6570><U+3001><U+5217><U+6570><U+306E><U+4E0A><U+9650>
      |                ^~~~~~~~
main.c:12:18: note: in expansion of macro 'LIM'
   12 |     int whiteRow[LIM] = {0}; //各行のマス目が全て白なら1, 違えば0
      |                  ^~~
main.c:5:16: error: stray '\343' in program
    5 | #define LIM 100<U+3000>//<U+884C><U+6570><U+3001><U+5217><U+6570><U+306E><U+4E0A><U+9650>
      |                ^~~~~~~~
main.c:13:18: note: in expansion of macro 'LIM'
   13 |     int whiteCol[LIM] = {0}; //各列のマス目が全て白なら1, 違えば0
      |                  ^~~
Language: C

/* ABC107_B
    Stuartyg */

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>

int main(void){
        int height,width; //H(行),W(列)のこと
        char mass[101][101]; //aのこと。h、w<=100より、これだけあれば安心
        int i,j;
        int col[101] = {0};
        int row[101] = {0};
        scanf("%d %d",&height,&width); //標準入力から受け取る
        for (i=0;i<height;i++){ //配列に値を入れていく
                for (j=0;j<width;j++){
                        scanf(" %c",&mass[i][j]);
                }
        }
        for (i=0;i<height;i++){ //白しかない行があるかのチェック
                for (j=0;j<width;j++){
                        if (mass[i][j] == '#'){ //黒を含む
                                row[i] = 1;
                                break;
                        }

                }
        }

        for (j=0;j<width;j++){ //白しかない列があるかのチェック
                for (i=0;i<height;i++){
                        if (mass[i][j] == '#'){ //黒を含む
                                col[j] = 1;
                                break;
                        }
                }
        }

        for (i=0;i<height;i++){
                if (row[i]==1){ 横に黒を含む
                        for (j=0;j<width;j++){
                                if (col[j]==1){ //縦にも黒を含む
                                        printf("%c", mass[i][j]);
                                }
                        }
                        printf("\n"); //1行出力するごとに改行
                }
        }
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:41:33: error: '\U00006a2a\U0000306b\U00009ed2\U00003092\U0000542b\U00003080' undeclared (first use in this function)
   41 |                 if (row[i]==1){ 横に黒を含む
      |                                 ^~~~~~~~~~~~
main.c:41:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:41:45: error: expected ';' before 'for'
   41 |                 if (row[i]==1){ 横に黒を含む
      |                                             ^
      |                                             ;
   42 |                         for (j=0;j<width;j++){
      |                         ~~~
Language: C

/*  ex5_3
    takafumi_ueki*/
#include <stdio.h>
#define LIMIT 100
    int main(void){
        int length,width;
        int length[LIMIT]={0};
        int width[LIMIT]={0};
        char field[LIMIT][LIMIT];
        //縦と横の長さを受け取る
        scanf("%d %d",&length,&width);
        //'.'か'#'かを受け取る
        for(i=0;i<length;i++){
            for(j=0;j<width;j++){
                scanf(" %c",field[i][j];)
            }
        }
        //列ごとに'.'が含まれているかどうかを調べる
        //もし含まれていたらlength[i]が1になる
        for(i=0;i<length;i++){
            for(j=0;j<width;j++){
                if(field[i][j]=='.'){
                    length[i]=1
                    break;
                }
            }
        }
        //次に行ごとに'.'が含まれていないか調べる
        for(j=0;j<width;j++){
            for(i=0;i<length;i++){
                if(field[i][j]=='.'){
                    width[j]=1
                    break;
                }
            }
        }
        //もし '.'がひとつでも含まれていたらその行、列は'#'と'.'で構成されているので、書き出すようにする
        for(i=0;i<length;i++){
            for(j=0;j<width;j++){
                if(length[i]==1&&width[j]==1){
                    printf("%c",field[i][j]);
                }
            }
            printf("\n");
        }
        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:7:13: error: conflicting types for 'length'; have 'int[100]'
    7 |         int length[LIMIT]={0};
      |             ^~~~~~
main.c:6:13: note: previous declaration of 'length' with type 'int'
    6 |         int length,width;
      |             ^~~~~~
main.c:8:13: error: conflicting types for 'width'; have 'int[100]'
    8 |         int width[LIMIT]={0};
      |             ^~~~~
main.c:6:20: note: previous declaration of 'width' with type 'int'
    6 |         int length,width;
      |                    ^~~~~
main.c:13:13: error: 'i' undeclared (first use in this function)
   13 |         for(i=0;i<length;i++){
      |             ^
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:17: error: 'j' undeclared (first use in this function)
   14 |             for(j=0;j<width;j++){
      |                 ^
main.c:15:40: error: expected ')' before ';' token
   15 |                 scanf(" %c",field[i][j];)
      |                      ~                 ^
      |                                        )
main.c:15:42: error: expected ';' before '}' token
   15 |                 scanf(" %c",field[i][j];)
      |                                          ^
      |                                          ;
   16 |             }
      |             ~                             
main.c:23:32: error: expected ';' before 'break'
   23 |                     length[i]=1
      |                                ^
      |                                ;
   24 |                     break;
      |                     ~~~~~       
main.c:32:31: error: expected ';' before 'break'
   32 |                     width[j]=1
      |                               ^
      |                               ;
   33 |                     break;
      |                     ~~~~~
Language: C

/* ex5_3
   YSK722 */

#include <stdio.h>

int main(void){
    int height, width;
    char box[100][100][3];
    scanf("%d %d", &height, &width);
    // 白黒を読み取る
    for (int i = 0; i < height; i++){
        for (int j = 0; j < width; j++){
            scanf(" %c", &box[i][j][0]);
        }
    }
    /* i行の要素が全て白のとき、2つめのboxのi行目の
    要素をすべて"n"にし、それ以外の時はすべて"y"にする */
    for (int i = 0; i < height; i++){
        for (int j = 0; j < width; j++){
            if (box[i][j][0] == '#'){
                for (int k = 0; k < width; k++){
                    box[i][k][1] = 'y';
                }
                break;
            }
            box[i][j][1] = 'n';
        }
    }
    /* j列の要素が全て白のとき、3つめのboxのj列目の
    要素をすべて"n"にし、それ以外の時はすべて"y"にする */
    for (int j = 0; j < width; j++){
        for (int i = 0; i < height; i++){
            if (box[i][j][0] == '#'){
                for (int k = 0; k < height; k++){
                    box[k][j][2] = 'y';
                }
                break;
            }
            box[i][j][2] = 'n';
        }
    }
    /* 2つめ、3つめのboxの対応する要素がどちらとも"y"のときだけ
       boxの要素を出力する */
    for (int i = 0; i < height; i++){
        for (int j = 0; j < width; j++){
            if (box[i][j][1] == 'y' && box[i][j][2] = 'y'){
                printf("%c", box[i][j][0]);
            }
        }
    }
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:46:53: error: lvalue required as left operand of assignment
   46 |             if (box[i][j][1] == 'y' && box[i][j][2] = 'y'){
      |                                                     ^
Language: C

/* ex5_3
   YSK722 */

#include <stdio.h>

int main(void){
    int height, width;
    char box[100][100][3];
    scanf("%d %d", &height, &width);
    // 白黒を読み取る
    for (int i = 0; i < height; i++){
        for (int j = 0; j < width; j++){
            scanf(" %c", &box[i][j][0]);
        }
    }
    /* i行の要素が全て白のとき、2つめのboxのi行目の
    要素をすべて"n"にし、それ以外の時はすべて"y"にする */
    for (int i = 0; i < height; i++){
        for (int j = 0; j < width; j++){
            if (box[i][j][0] == '#'){
                for (int k = 0; k < width; k++){
                    box[i][k][1] = 'y';
                }
                break;
            }
            box[i][j][1] = 'n';
        }
    }
    /* j列の要素が全て白のとき、3つめのboxのj列目の
    要素をすべて"n"にし、それ以外の時はすべて"y"にする */
    for (int j = 0; j < width; j++){
        for (int i = 0; i < height; i++){
            if (box[i][j][0] == '#'){
                for (int k = 0; k < height; k++){
                    box[k][j][2] = 'y';
                }
                break;
            }
            box[i][j][2] = 'n';
        }
    }
    /* 2つめ、3つめのboxの対応する要素がどちらとも"y"のときだけ
       boxの要素を出力する */
    for (int i = 0; i < height; i++){
        for (int j = 0; j < width; j++){
            if (box[i][j][1] = 'y' && box[i][j][2] = 'y'){
                printf("%c", box[i][j][0]);
            }
        }
    }
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:46:52: error: lvalue required as left operand of assignment
   46 |             if (box[i][j][1] = 'y' && box[i][j][2] = 'y'){
      |                                                    ^
Language: C

/* ex5_3
   moka223711 */

#include <stdio.h>
#define row 101
#define col 101

int main(void){
    int height, width, i, j, black_r[row] = {0}, black_c[col] = {0}, id = 0;
    char sq[row][col];
    scanf("%d %d", &height, &width);
    for(i = 0; i < height; i++){
        for(j = 0; j < width; j++){
            scanf(" %c", &sq[i][j]);
        }
    }
    for(i = 0; i < height; i++){
        for(j = 0; j < width; j++){
            if(sq[i][j]=='#'){
                black_r[i] = 1;
            }
            if(sq[j][i]=='#'){
                black_c[j] = 1;
            }
        }
    }
    for(i = 0; i < height; i++){
        for(j = 0; j < width; j++){
            if(black_r[i] == 0){
                id = 0
                continue;
            }
            if(black_c[j] == 1){
                id = 1
                printf("%c", sq[i][j]);
            }
        }
        if(id == 1){
            printf("\n");
        }
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:30:23: error: expected ';' before 'continue'
   30 |                 id = 0
      |                       ^
      |                       ;
   31 |                 continue;
      |                 ~~~~~~~~
main.c:34:23: error: expected ';' before 'printf'
   34 |                 id = 1
      |                       ^
      |                       ;
   35 |                 printf("%c", sq[i][j]);
      |                 ~~~~~~
Language: C++

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

int main(){
  int h,w;
  cin>>h>>w;
  char s[101][101];
  bool atx[101]=false, aty[101]=false;
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      cin>>s[i][j];
    }
  }
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      if(s[i][j]=='#'){
        atx[i]=true;
        aty[j]=true;
      }
    }
  }
  for(int i=0;i<h;i++){
    if(atx[i]==true){
      for(int j=0;j<w;j++){
        if(aty[j]==true){
          cout<<s[i][j]<<endl;
        }
      }
      cout<<endl;
    }
  }
}
    
      
    
    
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: array must be initialized with a brace-enclosed initializer
    8 |   bool atx[101]=false, aty[101]=false;
      |                 ^~~~~
a.cc:8:33: error: array must be initialized with a brace-enclosed initializer
    8 |   bool atx[101]=false, aty[101]=false;
      |                                 ^~~~~
Language: C++

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

int main(){
  int h,w;
  cin>>h>>w;
  char s[101][101];
  bool atx[101]=false, aty[101]=false;
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      cin>>s[i][j];
    }
  }
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      if(s[i][j]=='#'){
        atx[i]=true;
        aty[j]=true;
      }
    }
  }
  for(int i=0;i<h;i++){
    if(atx[i]==true){
      for(int j=0;j<w;j++){
        if(at[y]==true){
          cout<<s[i][j]<<endl;
        }
      }
      cout<<endl;
    }
  }
}
    
      
    
    
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: array must be initialized with a brace-enclosed initializer
    8 |   bool atx[101]=false, aty[101]=false;
      |                 ^~~~~
a.cc:8:33: error: array must be initialized with a brace-enclosed initializer
    8 |   bool atx[101]=false, aty[101]=false;
      |                                 ^~~~~
a.cc:25:12: error: 'at' was not declared in this scope; did you mean 'aty'?
   25 |         if(at[y]==true){
      |            ^~
      |            aty
a.cc:25:15: error: 'y' was not declared in this scope
   25 |         if(at[y]==true){
      |               ^
Language: C++

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

int main(){
  int h,w;
  cin>>h>>w;
  char s[101][101];
  bool atx[101]=false; aty[101]=false;
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      cin>>s[i][j];
    }
  }
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      if(s[i][j]=='#'){
        atx[i]=true;
        aty[j]=true;
      }
    }
  }
  for(int i=0;i<h;i++){
    if(atx[i]==true){
      for(int j=0;j<w;j++){
        if(at[y]==true){
          cout<<s[i][j]<<endl;
        }
      }
      cout<<endl;
    }
  }
}
    
      
    
    
    
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: array must be initialized with a brace-enclosed initializer
    8 |   bool atx[101]=false; aty[101]=false;
      |                 ^~~~~
a.cc:8:24: error: 'aty' was not declared in this scope; did you mean 'atx'?
    8 |   bool atx[101]=false; aty[101]=false;
      |                        ^~~
      |                        atx
a.cc:25:12: error: 'at' was not declared in this scope; did you mean 'atx'?
   25 |         if(at[y]==true){
      |            ^~
      |            atx
a.cc:25:15: error: 'y' was not declared in this scope
   25 |         if(at[y]==true){
      |               ^
Language: C++

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

int main()
{
    int a, b;
    cin >> a >> b;
    vector<string> vec(a);
    rep(i, a) cin >> vec[i];

    vector<int> yoko(a, 0);
    vector<int> tate(b, 0);

    rep(i, a)
    {
        rep(j, b)
        {
            if (vec[i][j] == '#')
            {
                yoko[i]++;
                tate[j]++;
            }
        }
    }

    rep(i, a)
    {
        if (yoko[i])
        {
            rep(j, b)
            {
                if (tate[j])
                {
                    cout << vec[i][j];
                }
            }
            cout << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'i' was not declared in this scope
   10 |     rep(i, a) cin >> vec[i];
      |                          ^
a.cc:19:24: error: 'j' was not declared in this scope
   19 |             if (vec[i][j] == '#')
      |                        ^
a.cc:33:26: error: 'j' was not declared in this scope
   33 |                 if (tate[j])
      |                          ^
Language: C++

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

int main(){
  int H,W;
  cin >> H >> W;
  
  vector<vector<char>> table(H, vector<char>(w));
  
  for(int i=0; i<H; i++){
    for(int j=0; j<W; j++){
      cin >> table.at(i).at(j);
    }
  }
  
  vector<int> number_H(1);
  
  for(int i=0; i<H; i++){
    int count = 0;
    for(int j=0; j<W; j++){
      if(table.at(i).at(j) /= '.'){
        count++;
      }
    }
    
    if(count == 0){
      number_H.push_back(i);
    }
  }
    
    
      // 行列tableのi行目たちを削除した、new_tableを作る
  vector<vector<char>> new_table(H - number_H.size() + 1, vector<char>(W));
  
  int i,k,n = 0;
  
  while( i<H && k<H-number_H.size()+1 ){
    if(i == number_H.at(n+1)){
      n++;
      i++;
      continue;
    }
    
    int j,l = 0;
    
    while( j<W && l<W ){
      new_table.at(k).at(l) = table.at(i).at(j);
      j++;
      l++;
    }
    i++;
    k++;
  }
      
  
  vector<int> number_W(1);
  
  for(int j=0; j<W; j++){
    int count = 0;
    for(int i=0; i<new_table.size(); i++){
      if(table.at(i).at(j) /= '.'){
        count++;
      }
    }
    
    if(count == 0){
      number_W.push_back(j);
    }
  }
    
    
      // 行列new_tableのi列目たちを削除した、new2_tableを作る
  vector<vector<char>> new2_table(new_table.size(), vector<char>(W - number_W.size() + 1));
  
  int j,l,n = 0;
  
  while( j<W && l<W-number_W.size()+1 ){
    if(j == number_W.at(n+1)){
      n++;
      j++;
      continue;
    }
    
    int i,k = 0;
    
    while( i<new_table.size() && k<new_table.size() ){
      new2_table.at(k).at(l) = new_table.at(i).at(j);
      i++;
      k++;
    }
    j++;
    l++;
  }
  
  
  for(int i=0; i<new2_table.size(); i++){
    for(int j=0; j<new2_table.at(0).size(); j++){
      cout << new2_table.at(i).at(j);
      
      if(j == new2_table.at(0).size()-1){
        cout << endl;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:46: error: 'w' was not declared in this scope
    8 |   vector<vector<char>> table(H, vector<char>(w));
      |                                              ^
a.cc:75:11: error: redeclaration of 'int n'
   75 |   int j,l,n = 0;
      |           ^
a.cc:35:11: note: 'int n' previously declared here
   35 |   int i,k,n = 0;
      |           ^
Language: C++

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

int main(){
  int H,W;
  cin >> H >> W;
  
  std::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);
    }
  }
  
  vector<int> row(0);
  for(int i=0;i<H;i++){
    int r=0;
    for(int j=0;j<W;j++){
      if(data.at(i).at(j) == '#'){
        r++;
      }
    }
    row.push_back(r);
  }
  
  vector<int> line(0);
  for(int j=0;j<W;j++){
    
    int r=0;
    
    for(int i=0;i<H;i++){
      if(data.at(i).at(j) == '#'){
        r++;
      }
    }
    line.push_back(r);
  }
  
  for(int i=0;i<H;i++){
    if(row.at(i) == 0){
      data.at(i).clear();
    }
  }
  
  for(int j=0;j<W;j++){
    if(line.at(j) == 0){
      for(int i=0;i<H;i++){
        data.at(i).erase(j);
      }
    }
  }
  
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cout << data.at(i).at(j) <<endl;
    }
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:25: error: no matching function for call to 'std::vector<char>::erase(int&)'
   49 |         data.at(i).erase(j);
      |         ~~~~~~~~~~~~~~~~^~~
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 <bits/stdc++.h>
#include <vector>
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);
    }
  }
  
  vector<int> row(0);
  for(int i=0;i<H;i++){
    int r=0;
    for(int j=0;j<W;j++){
      if(data.at(i).at(j) == '#'){
        r++;
      }
    }
    row.push_back(r);
  }
  
  vector<int> line(0);
  for(int j=0;j<W;j++){
    
    int r=0;
    
    for(int i=0;i<H;i++){
      if(data.at(i).at(j) == '#'){
        r++;
      }
    }
    line.push_back(r);
  }
  
  for(int i=0;i<H;i++){
    if(row.at(i) == 0){
      data.at(i).clear();
    }
  }
  
  for(int j=0;j<W;j++){
    if(line.at(j) == 0){
      for(int i=0;i<H;i++){
        data.at(i).erase(j);
      }
    }
  }
  
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cout << data.at(i).at(j) <<endl;
    }
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:25: error: no matching function for call to 'std::vector<char>::erase(int&)'
   49 |         data.at(i).erase(j);
      |         ~~~~~~~~~~~~~~~~^~~
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