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

include <stdio.h>

int main()
{
	int n, N[201][3], sum[201] = { 0 }, cnt[201][3];
	int i, j, k;

	scanf("%d", &n);
	for (i = 0;i < n;i++) {
		scanf("%d%d%d", &N[i][0], &N[i][1], &N[i][2]);
		cnt[i][0] = 0;cnt[i][2] = 0;cnt[i][1]=0;
	}
	for(k=0;k<3;k++){
		for (i = 0;i < n;i++) {
			for (j = 0;j < n;j++) {
				if (N[i][k] == N[j][k])cnt[i][k] += 1;
			}
				if (cnt[i][k]>1)sum[i] += 0;
				else sum[i] += N[i][k];
		}
	}
	for (i = 0;i < n;i++) {
		printf("%d\n", sum[i]);
	}
	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>
int main() {
  int N;
  int i,j,k;
  int a[100][3];
  int d[100][3];
  
  scanf("%d",&N);
  for(i=0;i<N;++i){
    scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
    d[i][0]=a[i][0]; d[i][1]=a[i][1]; d[i][2]=a[i][2];
  }
  for(i=0;i<3;++i){
    for(j=0;j<N;++j){
      for(k=0;k<N;++k){
	if(j==k)continue;
	if(a[k][i]==a[j][i]) {
	  d[k][i]=0; d[j][i];
	}
      }
    }
  }
    for(i=0;i<N;i++)テ」ツ??rintf("%d\n",d[i][0]+d[i][1]+d[i][2]);
  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:23:23: error: stray '\343' in program
   23 |     for(i=0;i<N;i++)<U+30C6><U+300D><U+30C4>??rintf("%d\n",d[i][0]+d[i][1]+d[i][2]);
      |                             ^~~~~~~~
main.c:23:21: error: '\U000030c6' undeclared (first use in this function)
   23 |     for(i=0;i<N;i++)テ」ツ??rintf("%d\n",d[i][0]+d[i][1]+d[i][2]);
      |                     ^~
main.c:23:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:23: error: expected ';' before '\U000030c4'
   23 |     for(i=0;i<N;i++)テ」ツ??rintf("%d\n",d[i][0]+d[i][1]+d[i][2]);
      |                       ^ ~~
      |                       ;
Language: C

include<stdio.h>
int main(){
	int i,j,k,n,c[200][3],a;
	for(i=0;i<n;i++){
		for(j=0;j<=2;i++){
			cin>>c[i][j];
	for(j=0;j<=2;j++){
		for(i=0;i<n;i++){
			a=0;
			for(k=0;k<=n;k++){
				if(c[i][j]==c[k][j]){
					c[k][j]=0;
					a=1;
				}
			}
			if(a==1){
				c[i][j]=0;
		}
	}
	for(i=0;i<n;i++){
		printf("%d",c[i][0]+c[i][1]+c[i][2]);
	}
	return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>
int main(){
	int i,j,k,n,c[200][3],a;
	for(i=0;i<n;i++){
		for(j=0;j<=2;i++){
			cin>>c[i][j];
	for(j=0;j<=2;j++){
		for(i=0;i<n;i++){
			a=0;
			for(k=0;k<=n;k++){
				if(c[i][j]==c[k][j]){
					c[k][j]=0;
					a=1;
				}
			}
			if(a==1){
				c[i][j]=0;
		}
	}
	for(i=0;i<n;i++){
		printf("%d",c[i][0]+c[i][1]+c[i][2]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: 'cin' undeclared (first use in this function)
    6 |                         cin>>c[i][j];
      |                         ^~~
main.c:6:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
main.c:24:1: error: expected declaration or statement at end of input
main.c:24:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
int main(){
	int i,j,k,n,c[200][3],a;
	for(i=0;i<n;i++){
		for(j=0;j<=2;i++){
			scanf("%d",c[i][j]);
	for(j=0;j<=2;j++){
		for(i=0;i<n;i++){
			a=0;
			for(k=0;k<=n;k++){
				if(c[i][j]==c[k][j]){
					c[k][j]=0;
					a=1;
				}
			}
			if(a==1){
				c[i][j]=0;
		}
	}
	for(i=0;i<n;i++){
		printf("%d",c[i][0]+c[i][1]+c[i][2]);
	}
	return 0;
}

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

#include<stdio.h>
int main(){
	int i,j,k,n,c[200][3],a;
	for(i=0;i<n;i++){
		for(j=0;j<=2;i++){
			scanf("%d",c[i][j]);
	for(j=0;j<=2;j++){
		for(i=0;i<n;i++){
			a=0;
			for(k=0;k<=n;k++){
				if(c[i][j]==c[k][j]){
					c[k][j]=0;
					a=1;
				}
			}
			if(a==1){
				c[i][j]=0;
			}
		}
	}
	for(i=0;i<n;i++){
		printf("%d",c[i][0]+c[i][1]+c[i][2]);
	}
	return 0;
}

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

#include <stdio.h>
int main(){

int N,k,i,g,j;
scanf("%d",&N);
int a[3][1000],n[1000]={0};
for(i=0;i<N;i++){
?????? scanf("%d %d %d\n",&a[0][i],&a[1][i],&a[2][i]);
}

for(i=0;i<N;i++){
?????????????? g=0;
for(j=0;j<3;j++){
?????????????? for(k=i+1;k<N+1;k++){
?????????????????????? if(a[j][i]==a[j][k])g=1;}
?????????????? if(g!=1)n[i]+=a[j][i];

????
?????????? }}



for(i=0;i<N;i++){
?????? printf("%d\n",n[i]);


}
return0;

}
	
    

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ?????? scanf("%d %d %d\n",&a[0][i],&a[1][i],&a[2][i]);
      | ^
main.c:12:1: error: expected expression before '?' token
   12 | ?????????????? g=0;
      | ^
main.c:14:1: error: expected expression before '?' token
   14 | ?????????????? for(k=i+1;k<N+1;k++){
      | ^
main.c:18:1: error: expected expression before '?' token
   18 | ????
      | ^
main.c:24:1: error: expected expression before '?' token
   24 | ?????? printf("%d\n",n[i]);
      | ^
main.c:28:1: error: 'return0' undeclared (first use in this function)
   28 | return0;
      | ^~~~~~~
main.c:28:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(){

int N,k,i,g,j;
scanf("%d",&N);
int a[1000][3],n[1000]={0};
for(i=0;i<N;i++){
?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
}

for(i=0;i<N;i++){
?????????????? g=0;
for(j=0;j<3;j++){
?????????????? for(k=i+1;k<N+1;k++){
?????????????????????? if(a[i][j]==a[k][j])g=1;}
?????????????? if(g!=1)n[i]+=a[i][j];

????
?????????? }}



for(i=0;i<N;i++){
?????? printf("%d\n",n[i]);


}
return0;

}
	
    

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
      | ^
main.c:12:1: error: expected expression before '?' token
   12 | ?????????????? g=0;
      | ^
main.c:14:1: error: expected expression before '?' token
   14 | ?????????????? for(k=i+1;k<N+1;k++){
      | ^
main.c:18:1: error: expected expression before '?' token
   18 | ????
      | ^
main.c:24:1: error: expected expression before '?' token
   24 | ?????? printf("%d\n",n[i]);
      | ^
main.c:28:1: error: 'return0' undeclared (first use in this function)
   28 | return0;
      | ^~~~~~~
main.c:28:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(){

int N,k,i,g,j;
scanf("%d",&N);
int a[1000][3],n[1000]={0};
for(i=0;i<N;i++){
?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
}

for(i=0;i<N;i++){
?????????????? g=0;
for(j=0;j<3;j++){
?????????????? for(k=i+1;k<N+1;k++){
?????????????????????? if(a[i][j]==a[k][j])g=1;}
?????????????? if(g!=1)n[i]+=a[i][j];

????
?????????? }}



for(i=0;i<N;i++){
?????? printf("%d\n",n[i]);


}
return 0;

}
	
    

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
      | ^
main.c:12:1: error: expected expression before '?' token
   12 | ?????????????? g=0;
      | ^
main.c:14:1: error: expected expression before '?' token
   14 | ?????????????? for(k=i+1;k<N+1;k++){
      | ^
main.c:18:1: error: expected expression before '?' token
   18 | ????
      | ^
main.c:24:1: error: expected expression before '?' token
   24 | ?????? printf("%d\n",n[i]);
      | ^
Language: C

#include <stdio.h>
int main(){

int N,k,i,g,j;
scanf("%d",&N);
int a[1000][3],n[1000]={0};
for(i=0;i<N;i++){
?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
}

for(i=0;i<N;i++){
?????????????? g=0;
for(j=0;j<3;j++){
?????????????? for(k=i;k<N;k++){
?????????????????????? if(i!=k&&a[i][j]==a[k][j])g=1;}
?????????????? if(g!=1)n[i]+=a[i][j];

????
?????????? }}



for(i=0;i<N;i++){
?????? printf("%d\n",n[i]);


}
return 0;

}
	
    

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
      | ^
main.c:12:1: error: expected expression before '?' token
   12 | ?????????????? g=0;
      | ^
main.c:14:1: error: expected expression before '?' token
   14 | ?????????????? for(k=i;k<N;k++){
      | ^
main.c:18:1: error: expected expression before '?' token
   18 | ????
      | ^
main.c:24:1: error: expected expression before '?' token
   24 | ?????? printf("%d\n",n[i]);
      | ^
Language: C

#include <stdio.h>
int main(){

int N,k,i,g,j,a[1000][3],n[1000]={0};
scanf("%d",&N);


for(i=0;i<N;i++){
?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
}

for(i=0;i<N;i++){
?????????????? g=0;
for(j=0;j<3;j++){
?????????????? for(k=i;k<N;k++){
?????????????????????? if(i!=k&&a[i][j]==a[k][j])g=1;}
?????????????? if(g!=1)n[i]+=a[i][j];

????
?????????? }}



for(i=0;i<N;i++){
?????? printf("%d\n",n[i]);


}
return 0;

}
	
    

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before '?' token
    9 | ?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
      | ^
main.c:13:1: error: expected expression before '?' token
   13 | ?????????????? g=0;
      | ^
main.c:15:1: error: expected expression before '?' token
   15 | ?????????????? for(k=i;k<N;k++){
      | ^
main.c:19:1: error: expected expression before '?' token
   19 | ????
      | ^
main.c:25:1: error: expected expression before '?' token
   25 | ?????? printf("%d\n",n[i]);
      | ^
Language: C

#include <stdio.h>
int main(){

int N,k,i,g,j,a[1000][3],n[1000]={0};
scanf("%d",&N);


for(i=0;i<N;i++){
?????? scanf("%d %d %d/n",&a[i][0],&a[i][1],&a[i][2]);
}

for(i=0;i<N;i++){
?????????????? g=0;
for(j=0;j<3;j++){
?????????????? for(k=i;k<N;k++){
?????????????????????? if(i!=k&&a[i][j]==a[k][j])g=1;}
?????????????? if(g!=1)n[i]+=a[i][j];

????
?????????? }}



for(i=0;i<N;i++){
?????? printf("%d\n",n[i]);


}
return 0;

}
	
    

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before '?' token
    9 | ?????? scanf("%d %d %d/n",&a[i][0],&a[i][1],&a[i][2]);
      | ^
main.c:13:1: error: expected expression before '?' token
   13 | ?????????????? g=0;
      | ^
main.c:15:1: error: expected expression before '?' token
   15 | ?????????????? for(k=i;k<N;k++){
      | ^
main.c:19:1: error: expected expression before '?' token
   19 | ????
      | ^
main.c:25:1: error: expected expression before '?' token
   25 | ?????? printf("%d\n",n[i]);
      | ^
Language: C

#include <stdio.h>
int main(){

int N,k,i,g,j,a[1000][3],n[1000]={0};
scanf("%d",&N);


for(i=0;i<N;i++){
?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
}

for(i=0;i<N;i++){
?????????????? 
for(j=0;j<3;j++){
g=0;
?????????????? for(k=i;k<N;k++){
?????????????????????? if(i!=k&&a[i][j]==a[k][j])g=1;}
?????????????? if(g!=1)n[i]+=a[i][j];

????
?????????? }}



for(i=0;i<N;i++){
?????? printf("%d\n",n[i]);


}
return 0;

}
	
    

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before '?' token
    9 | ?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
      | ^
main.c:13:1: error: expected expression before '?' token
   13 | ??????????????
      | ^
main.c:26:1: error: expected expression before '?' token
   26 | ?????? printf("%d\n",n[i]);
      | ^
Language: C

#include <stdio.h>
int main(){

int n,k,i,g,j,a[1000][3],s[1000]={0};
scanf("%d",&n);


for(i=0;i<n;i++){
?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
}

for(i=0;i<n;i++){
?????????????? 
for(j=0;j<3;j++){
g=0;
?????????????? for(k=i;k<n;k++){
?????????????????????? if(i!=k&&a[i][j]==a[k][j])g=1;}
?????????????? if(g!=1)s[i]+=a[i][j];

????
?????????? }}



for(i=0;i<n;i++){
?????? printf("%d\n",s[i]);


}
return 0;

}
	
    

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before '?' token
    9 | ?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);
      | ^
main.c:13:1: error: expected expression before '?' token
   13 | ??????????????
      | ^
main.c:26:1: error: expected expression before '?' token
   26 | ?????? printf("%d\n",s[i]);
      | ^
Language: C

#include <stdio.h>
int main(){

int n,k,i,g,j,a[1000][3],s[1000]={0};
scanf("%d",&n);


for(i=0;i<n;i++){
?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);}

for(i=0;i<n;i++){
?????????????? 
for(j=0;j<3;j++){
g=0;
?????????????? for(k=0;k<n;k++){
?????????????????????? if(i!=k&&a[i][j]==a[k][j])g=1;}
?????????????? if(g!=1)s[i]+=a[i][j];}}



for(i=0;i<n;i++){
?????? printf("%d\n",s[i]);


}
return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before '?' token
    9 | ?????? scanf("%d %d %d\n",&a[i][0],&a[i][1],&a[i][2]);}
      | ^
main.c:12:1: error: expected expression before '?' token
   12 | ??????????????
      | ^
main.c:22:1: error: expected expression before '?' token
   22 | ?????? printf("%d\n",s[i]);
      | ^
Language: C

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

int main(void)
{
  int N;//人数
  int i;//loop
  int j;//loop
  int k;//loop
  int I[101][4];//NumberCheck
  scanf ("%d",&N);
  int P[N+1][4];//point
  int Pv[N+1];//getPoint
  for (j=1;j<=3;j++){ 
  for (i=1;i<=100 ; i++){
    I[i][j]=0;
  }
  }
  for (i=1; i<=N;i++){
    //  for (j=0; j<3;j++){
    scanf("%d%d%d",&P[i][1],&P[i][2],&P[i][3]); //&P[i][j]); 
      Pv[i]=0;
      // printf("%d\n",I[3][1]);
      //  }
}
  for (j=1;j<=3;j++){ 
  for (i=1;i<=100 ; i++){
    for (k=1;k<=N;k++){
      if (P[k][j]==i){
	I[i][j]++;
      }
    }
  }
  }
  for (j=1;j<=3;j++){ 
  for(i=1;i<=N ; i++){
     if (I[P[i][j]][j]==1){
    
          Pv[i] += P[i][j];
	  	   } 
  }
  }
  for(i=1;i<=N;i++){
    printf("%d\n",Pv[i]);
}
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:11:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |   scanf ("%d",&N);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:11:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |   scanf ("%d",&N);
      |   ^~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:44:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   44 |     printf("%d\n",Pv[i]);
      |     ^~~~~~
main.c:44:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:44:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:44:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
int main(void)
{
	int	N=0;
	int out1[101]={0};int out2[101]={0};int out3[101]={0};
	int a[660]={0};int a1[660]={0};int a2[660]={0};
	int all[220]={0};
	scanf("%d",&N);
	for(int i=1;i<=N;i++){
		scanf("%d %d %d",a[i],a1[i],a2[i]);
		if(out1[a[i]]<0){out1=-2;}
		else{out1[a[i]]=-1;}
		if(out2[a1[i]]<0){out2=-2;}
		else{out2[a1[i]]=-1;}
		if(out3[a2[i]]<0){out3=-2;}
		else{out3[a2[i]]=-1;}
	}
	for(int i=1;i<=N;i++)
	{
		if(out1[a[i]]!=-2)
		{
			all[i]+=a[i];
		}
		if(out2[a1[i]]!=-2)
		{
			all[i]+=a1[i];
		}
		if(out3[a2[i]]!=-2)
		{
			all[i]+=a2[i];
		}
		printf("%d\n",all[i]);
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:38: error: incompatible types in assignment of 'int' to 'int [101]'
   13 |                 if(out1[a[i]]<0){out1=-2;}
      |                                  ~~~~^~~
a.cc:15:39: error: incompatible types in assignment of 'int' to 'int [101]'
   15 |                 if(out2[a1[i]]<0){out2=-2;}
      |                                   ~~~~^~~
a.cc:17:39: error: incompatible types in assignment of 'int' to 'int [101]'
   17 |                 if(out3[a2[i]]<0){out3=-2;}
      |                                   ~~~~^~~
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
int main(void)
{
	int	N=0;
	int out1[101]={0};int out2[101]={0};int out3[101]={0};
	int a[660]={0};int a1[660]={0};int a2[660]={0};
	int all[220]={0};
	scanf("%d",&N);
	for(int i=1;i<=N;i++){
		scanf("%d %d %d",&a[i],&a1[i],&a2[i]);
		if(out1[a[i]]<0){out1=-2;}
		else{out1[a[i]]=-1;}
		if(out2[a1[i]]<0){out2=-2;}
		else{out2[a1[i]]=-1;}
		if(out3[a2[i]]<0){out3=-2;}
		else{out3[a2[i]]=-1;}
	}
	for(int i=1;i<=N;i++)
	{
		if(out1[a[i]]!=-2)
		{
			all[i]+=a[i];
		}
		if(out2[a1[i]]!=-2)
		{
			all[i]+=a1[i];
		}
		if(out3[a2[i]]!=-2)
		{
			all[i]+=a2[i];
		}
		printf("%d\n",all[i]);
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:38: error: incompatible types in assignment of 'int' to 'int [101]'
   13 |                 if(out1[a[i]]<0){out1=-2;}
      |                                  ~~~~^~~
a.cc:15:39: error: incompatible types in assignment of 'int' to 'int [101]'
   15 |                 if(out2[a1[i]]<0){out2=-2;}
      |                                   ~~~~^~~
a.cc:17:39: error: incompatible types in assignment of 'int' to 'int [101]'
   17 |                 if(out3[a2[i]]<0){out3=-2;}
      |                                   ~~~~^~~
Language: C++

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

int main() {
    int n;
    cin >> n;
    vector<vector<int>> v(3, vector<int>(n));
    for (int i = 0; i < n; i++)
        for (int j = 0; j < 3; j++)
            cin >> v[j][i];
    for (int i = 0; i < n; i++) {
        int ans = 0;
        for (int j = 0; j < 3; j++) {
            if (count(v[j].count(), v[j].end(), v[j][i]) == 1)
                ans += v[j][i];
        }
        cout << ans << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'class std::vector<int>'} has no member named 'count'
   16 |             if (count(v[j].count(), v[j].end(), v[j][i]) == 1)
      |                            ^~~~~
Language: C++

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

int main() {
    int n;
    cin >> n;
    vector<vector<int> > v(3, vector<int>(n));
    for (int i = 0; i < n; i++)
        for (int j = 0; j < 3; j++)
            cin >> v[j][i];
    for (int i = 0; i < n; i++) {
        int ans = 0;
        for (int j = 0; j < 3; j++) {
            if (count(v[j].count(), v[j].end(), v[j][i]) == 1)
                ans += v[j][i];
        }
        cout << ans << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: '__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type' {aka 'class std::vector<int>'} has no member named 'count'
   16 |             if (count(v[j].count(), v[j].end(), v[j][i]) == 1)
      |                            ^~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#rep(i,n) for(int i=0;i<n;i++)
#all(co)co.begin(),co.end()
int main()
{
  int n; cin >> n;
  vector<vector<int>> table(3, vector<int>(n));
  vector<int> score(n);
  rep(i,n)rep(j,3)cin>>table[j][i];
  rep(j,3)rep(i,n)
  {
    if(count(all(table[j]), table[j][i]) == 1)score[i]+=table[j][i];
  }
  rep(i,n)cout>>score[i]>>endl;
  return 0;
}

Compiler output:
a.cc:5:2: error: invalid preprocessing directive #rep
    5 | #rep(i,n) for(int i=0;i<n;i++)
      |  ^~~
a.cc:6:2: error: invalid preprocessing directive #all
    6 | #all(co)co.begin(),co.end()
      |  ^~~
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   rep(i,n)rep(j,3)cin>>table[j][i];
      |       ^
a.cc:12:3: error: 'rep' was not declared in this scope
   12 |   rep(i,n)rep(j,3)cin>>table[j][i];
      |   ^~~
a.cc:13:7: error: 'j' was not declared in this scope
   13 |   rep(j,3)rep(i,n)
      |       ^
Language: C++

#include<stdio.h>

int	zisaku(int	data[][3],	int	N,	int	i,	int	k,	int	a){
	int	j,	cnt	=	0,	result	=	0;
	for(j	=	1;	j	<=	N;	j++){
		if(i	==	j)continue;
		if(a	==	data[j][k])cnt	+=	1;
	}
	if(cnt	==	0)result	+=	a;
	return	result;
}

int	main(){
	int	N,	i,	k,	j,	l,	a;
	scanf("%d",	&N);
	int	data[200][3];
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			scanf("%d",	&data[i][k]);
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			a	=	data[i][k];
			data[i][0]	+=	zisaku(data,	N,	i,	k);
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		printf("%d\n",	data[i][0]);
	}
	return	0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:55: error: too few arguments to function 'int zisaku(int (*)[3], int, int, int, int)'
   25 |                         data[i][0]      +=      zisaku(data,    N,      i,      k);
      |                                                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:3:9: note: declared here
    3 | int     zisaku(int      data[][3],      int     N,      int     i,      int     k,      int     a){
      |         ^~~~~~
Language: C++

#include<stdio.h>

int	zisaku(int	data[][],	int	N,	int	i,	int	k,	int	a){
	int	j,	cnt	=	0,	result	=	0;
	for(j	=	1;	j	<=	N;	j++){
		if(i	==	j)continue;
		if(a	==	data[j][k])cnt	+=	1;
	}
	if(cnt	==	0)result	+=	a;
	return	result;
}

int	main(){
	int	N,	i,	k,	j,	l,	a;
	scanf("%d",	&N);
	int	data[200][3];
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			scanf("%d",	&data[i][k]);
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			a	=	data[i][k];
			data[i][0]	+=	zisaku(data,	N,	i,	k,	a);
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		printf("%d\n",	data[i][0]);
	}
	return	0;
}

Compiler output:
a.cc:3:25: error: declaration of 'data' as multidimensional array must have bounds for all dimensions except the first
    3 | int     zisaku(int      data[][],       int     N,      int     i,      int     k,      int     a){
      |                         ^~~~
a.cc:3:33: error: expected ')' before ',' token
    3 | int     zisaku(int      data[][],       int     N,      int     i,      int     k,      int     a){
      |               ~                 ^
      |                                 )
a.cc:3:41: error: expected unqualified-id before 'int'
    3 | int     zisaku(int      data[][],       int     N,      int     i,      int     k,      int     a){
      |                                         ^~~
Language: C++

int	main(){
	int	N,	i,	k,	cnt	=	0,	l,	a,	data[200][3];
	scanf("%d",	&N);
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			scanf("%d",	&data[i][k]);
		}
	}
	for(k	=	1;	k	<=	3;	k++){
		for(i	=	1;	i	<=	N;	i++){
			a	=	data[i][k];
			for(l	=	1;	l	<=	N;	l++){
				if(i	==	l)continue;
				if(a	==	data[l][k]){
					cnt	+=	1;
					break;
				}
				if(cnt	==	0)data[i][0]	+=	a;
			}
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		printf("%d\n",	data[i][0]);
	}
	return	0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d",     &N);
      |         ^~~~~
a.cc:23:17: error: 'printf' was not declared in this scope
   23 |                 printf("%d\n",  data[i][0]);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int     main(){
Language: C++

int	main(){
	int	N,	i,	k,	cnt	=	0,	l,	a,	data[200][3];
	scanf("%d\n",	&N);
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			scanf("%d",	&data[i][k]);
		}
	}
	for(k	=	1;	k	<=	3;	k++){
		for(i	=	1;	i	<=	N;	i++){
			a	=	data[i][k];
			for(l	=	1;	l	<=	N;	l++){
				if(i	==	l)continue;
				if(a	==	data[l][k]){
					cnt	+=	1;
					break;
				}
				if(cnt	==	0)data[i][0]	+=	a;
			}
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		printf("%d\n",	data[i][0]);
	}
	return	0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d\n",   &N);
      |         ^~~~~
a.cc:23:17: error: 'printf' was not declared in this scope
   23 |                 printf("%d\n",  data[i][0]);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int     main(){
Language: C++

int	main(){
	int	N,	i,	k,	cnt	=	0,	l,	a,	data[200][3];
	scanf("%d\n",	&N);
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			scanf("%d",	data[i][k]);
		}
	}
	for(k	=	1;	k	<=	3;	k++){
		for(i	=	1;	i	<=	N;	i++){
			a	=	data[i][k];
			for(l	=	1;	l	<=	N;	l++){
				if(i	==	l)continue;
				if(a	==	data[l][k]){
					cnt	+=	1;
					break;
				}
				if(cnt	==	0)data[i][0]	+=	a;
			}
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		printf("%d\n",	data[i][0]);
	}
	return	0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d\n",   &N);
      |         ^~~~~
a.cc:23:17: error: 'printf' was not declared in this scope
   23 |                 printf("%d\n",  data[i][0]);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int     main(){
Language: C++

int	main(void){
	int	N,	i,	k,	cnt	=	0,	l,	a,	data[200][3];
	scanf("%d",	&N);
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			scanf("%d",	data[i][k]);
		}
	}
	for(k	=	1;	k	<=	3;	k++){
		for(i	=	1;	i	<=	N;	i++){
			a	=	data[i][k];
			for(l	=	1;	l	<=	N;	l++){
				if(i	==	l)continue;
				if(a	==	data[l][k]){
					cnt	+=	1;
					break;
				}
				if(cnt	==	0)data[i][0]	+=	a;
			}
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		printf("%d\n",	data[i][0]);
	}
	return	0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d",     &N);
      |         ^~~~~
a.cc:23:17: error: 'printf' was not declared in this scope
   23 |                 printf("%d\n",  data[i][0]);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int     main(void){
Language: C++

int	main(void){
	int	N,	i,	k,	cnt	=	0,	l,	a,	data[200][3];
	scanf("%d",	&N);
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			scanf("%d",	data[i][k]);
		}
                printf("\n");
	}
	for(k	=	1;	k	<=	3;	k++){
		for(i	=	1;	i	<=	N;	i++){
			a	=	data[i][k];
			for(l	=	1;	l	<=	N;	l++){
				if(i	==	l)continue;
				if(a	==	data[l][k]){
					cnt	+=	1;
					break;
				}
				if(cnt	==	0)data[i][0]	+=	a;
			}
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		printf("%d\n",	data[i][0]);
	}
	return	0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d",     &N);
      |         ^~~~~
a.cc:8:17: error: 'printf' was not declared in this scope
    8 |                 printf("\n");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int     main(void){
a.cc:24:17: error: 'printf' was not declared in this scope
   24 |                 printf("%d\n",  data[i][0]);
      |                 ^~~~~~
a.cc:24:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<sydio.h>

int	main(){
	int	N,	i,	k,	cnt	=	0,	l,	a,	data[200][3];
	scanf("%d",	&N);
	for(i	=	1;	i	<=	N;	i++){
		for(k	=	1;	k	<=	3;	k++){
			scanf("%d",	&data[i][k]);
		}
	}
	for(k	=	1;	k	<=	3;	k++){
		for(i	=	1;	i	<=	N;	i++){
			a	=	data[i][k];
			for(l	=	1;	l	<=	N;	l++){
				if(i	==	l)continue;
				if(a	==	data[l][k]){
					cnt	+=	1;
					break;
				}
				if(cnt	==	0)data[i][0]	+=	a;
			}
		}
	}
	for(i	=	1;	i	<=	N;	i++){
		printf("%d\n",	data[i][0]);
	}
	return	0;
}

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

#include<bits/stdc++.h>
using namespace std;
int n[200][3],x,y[200],z[100];
int main(){
cin>>x;
for(int i=0;i<x;i++){cin>>n[i][0]>>n[i][1]>>n[i][2];}
for(int i=0;i<3;i++){memset(z,0,sizeof(z));
for(int k=0;k<200;k++){z[n[k][i]]++;}
for(int j=0;j<n;j++){if(z[n[j][i]]==1){y[j]+=n[j][i];}}
}
for(int i=0;i<n;i++){cout<<y[i]<<endl;}}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 | for(int j=0;j<n;j++){if(z[n[j][i]]==1){y[j]+=n[j][i];}}
      |             ~^~
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 | for(int i=0;i<n;i++){cout<<y[i]<<endl;}}
      |             ~^~
Language: C++

#include <vector>
#include <iostream>
#include <utility>
#include <algorithm>
#include <string>
#include <deque>
#include <queue>
#include <tuple>
#include <queue>
#include <functional>
#include <cmath>
#include <iomanip>
#include <map>
#include <set>
#include <numeric>
#include <unordered_map>
#include <unordered_set>
#include <complex>
#include <iterator>
#include <array>
#include <memory>
#include <stack>
#define vi vector<int>
#define vvi vector<vector<int> >
#define ll long long int
#define vl vector<ll>
#define vvl vector<vector<ll>>
#define vb vector<bool>
#define vc vector<char>
#define vs vector<string>
#define ld long double
#define INF 1e9
#define EPS 0.0000000001
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,s,n) for(int i=s;i<n;i++)
#define all(in) in.begin(), in.end()
template<class T, class S> void cmin(T &a, const S &b) { if (a > b)a = b; }
template<class T, class S> void cmax(T &a, const S &b) { if (a < b)a = b; }
#define MAX 9999999
using namespace std;
typedef pair<int, int> pii;
typedef pair<double,double>pdd;
typedef pair<ll,ll>pll;
int main(){
    int n; cin>>n;
    int v[100][3]={0};
    vvi hoge(n,vi(3));
    rep(i,n){a
        rep(j,3){
            int temp; cin>>temp;
            hoge[i][j]=temp;
            v[temp][j]++;
        }
    }
    rep(i,n){
        int ans=0;
        rep(j,3)if(v[hoge[i][j]][j]==1)ans+=hoge[i][j];
        cout<<ans<<endl;
                    
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:14: error: 'a' was not declared in this scope
   48 |     rep(i,n){a
      |              ^
a.cc:49:13: error: 'j' was not declared in this scope
   49 |         rep(j,3){
      |             ^
a.cc:34:30: note: in definition of macro 'rep'
   34 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
Language: C++

import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static final Scanner s=new Scanner(System.in);
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n){return REPS(n).map(i->getInt());}
	static int getInt(){return Integer.parseInt(s.next());}
	public static void main(String[]$){
		int n=getInt(),
		a[][]=REPS(n).mapToObj(i->INS(3).toArray()).toArray(int[][]::new),
		r[]=new int[n];
		REPS(3).forEach(o->{
			loop:
			for(int i=0;i<n;i++) {
				int v=a[i][o];
				for(int j=0;j<n;j++) if(j!=i){
					if(a[j][o]==v)
						continue loop;
				}
				r[i]+=v;
			}
		});
		Arrays.stream(r).forEach(System.out::println);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Arrays;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.stream.IntStream;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main{
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		while(sc.hasNext()){
			int n=sc.nextInt();
			int  num[][]=new int[n][3];
			for(int i=0; i<n; i++){
				for(int j=0; j<3; j++){
					num[i][j]=sc.nextInt();
				}
			}
			int score[]=new int[n];
			for(int i=0;i<n;i++){
				score[i]=0;
			}
			for(int j=0; j<3; j++){
				for(int i=0; i<n; i++){
					for(int k=i+1; k<n; k++){
						if(num[i][j]==num[k][j]){
							num[i][j]=num[k][j]=0;
						}
					}
				}
			}
			for(int i=0;i<n;i++){
				for(int j=0;j<3;j++){
					score[i]+=num[i][j];
				}
			}
			for(int i=0;i<n;i++){
				System.out.println(score[i]);
			}
		}
	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: Java

import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.util.Map;
import java.util.PriorityQueue;
import java.math.BigInteger;
    
public class Main{

static final InputStream in=System.in;
static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE/2;
static final long LINF=Long.MAX_VALUE/2;
static int n;
static String str;

public static void main(String[] args) throws IOException{
InputReader ir=new InputReader(in);
n=ir.nextInt();
str=ir.next();
int len=str.length();
int cnt=0;
lo1: while(n-->0){
String old=ir.next();
lo2: for(int i=0;i<=old.length()-len;i++){
if(len.charAt(i)!=old.charAt(0)) continue;
lo3: for(int j=1;;j++){
if(i+(len-1)*j>=old.length()) continue lo2:
for(int k=0;k<len;k++){
if(str.charAt(i+j*k)!=old.charAt(k)) continue lo3;
if(k==len-1){
cnt++;
continue lo1;
}
}
}
}
}
out.println(cnt);
out.flush();
}

static class InputReader {
private InputStream in;
private byte[] buffer=new byte[1024];
private int curbuf;
private int lenbuf;

public InputReader(InputStream in) {this.in=in;}
  
public int readByte() {
if(lenbuf==-1) throw new InputMismatchException();
if(curbuf>=lenbuf){
curbuf= 0;
try{
lenbuf=in.read(buffer);
}
catch (IOException e) {
throw new InputMismatchException();
}
if(lenbuf<=0)
return -1;
}
return buffer[curbuf++];
}

public boolean isSpaceChar(int c){return !(c>=33&&c<=126);}

private int skip() {int b; while((b = readByte())!=-1&&isSpaceChar(b)); return b;}

public String next() {
int b=skip();
StringBuilder sb=new StringBuilder();
while(!isSpaceChar(b)){
sb.appendCodePoint(b);
b=readByte();
}
return sb.toString();
}
 
public int nextInt() {
int c=readByte();
while (isSpaceChar(c)) c=readByte();
boolean minus=false;
if (c=='-') {
minus=true;
c=readByte();
}
int res=0;
do{
if(c<'0'||c>'9') throw new InputMismatchException();
res=res*10+c-'0';
c=readByte();
}while(!isSpaceChar(c));
return (minus)?-res:res;
}

public long nextLong() {
int c=readByte();
while (isSpaceChar(c)) c=readByte();
boolean minus=false;
if (c=='-') {
minus=true;
c=readByte();
}
long res = 0;
do{
if(c<'0'||c>'9') throw new InputMismatchException();
res=res*10+c-'0';
c=readByte();
}while(!isSpaceChar(c));
return (minus)?-res:res;
}

public int[] toIntArray(int n){
int[] a=new int[n];
for(int i=0;i<n;i++) a[i]=nextInt();
return a;
}
}
}

Compiler output:
Main.java:36: error: ';' expected
if(i+(len-1)*j>=old.length()) continue lo2:
                                          ^
1 error
Language: Java

import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.util.Map;
import java.util.PriorityQueue;
import java.math.BigInteger;
    
public class Main{

static final InputStream in=System.in;
static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE/2;
static final long LINF=Long.MAX_VALUE/2;
static int n;
static String str;

public static void main(String[] args) throws IOException{
InputReader ir=new InputReader(in);
n=ir.nextInt();
str=ir.next();
int len=str.length();
int cnt=0;
lo1: while(n-->0){
String old=ir.next();
lo2: for(int i=0;i<=old.length()-len;i++){
if(len.charAt(i)!=old.charAt(0)) continue;
lo3: for(int j=1;;j++){
if(i+(len-1)*j>=old.length()) continue lo2;
for(int k=0;k<len;k++){
if(str.charAt(i+j*k)!=old.charAt(k)) continue lo3;
if(k==len-1){
cnt++;
continue lo1;
}
}
}
}
}
out.println(cnt);
out.flush();
}

static class InputReader {
private InputStream in;
private byte[] buffer=new byte[1024];
private int curbuf;
private int lenbuf;

public InputReader(InputStream in) {this.in=in;}
  
public int readByte() {
if(lenbuf==-1) throw new InputMismatchException();
if(curbuf>=lenbuf){
curbuf= 0;
try{
lenbuf=in.read(buffer);
}
catch (IOException e) {
throw new InputMismatchException();
}
if(lenbuf<=0)
return -1;
}
return buffer[curbuf++];
}

public boolean isSpaceChar(int c){return !(c>=33&&c<=126);}

private int skip() {int b; while((b = readByte())!=-1&&isSpaceChar(b)); return b;}

public String next() {
int b=skip();
StringBuilder sb=new StringBuilder();
while(!isSpaceChar(b)){
sb.appendCodePoint(b);
b=readByte();
}
return sb.toString();
}
 
public int nextInt() {
int c=readByte();
while (isSpaceChar(c)) c=readByte();
boolean minus=false;
if (c=='-') {
minus=true;
c=readByte();
}
int res=0;
do{
if(c<'0'||c>'9') throw new InputMismatchException();
res=res*10+c-'0';
c=readByte();
}while(!isSpaceChar(c));
return (minus)?-res:res;
}

public long nextLong() {
int c=readByte();
while (isSpaceChar(c)) c=readByte();
boolean minus=false;
if (c=='-') {
minus=true;
c=readByte();
}
long res = 0;
do{
if(c<'0'||c>'9') throw new InputMismatchException();
res=res*10+c-'0';
c=readByte();
}while(!isSpaceChar(c));
return (minus)?-res:res;
}

public int[] toIntArray(int n){
int[] a=new int[n];
for(int i=0;i<n;i++) a[i]=nextInt();
return a;
}
}
}

Compiler output:
Main.java:34: error: int cannot be dereferenced
if(len.charAt(i)!=old.charAt(0)) continue;
      ^
1 error
Language: Java

import java.util.*;

public class main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int cnt = 0, space, work;
		boolean flag;
		char[] target = sc.next().toCharArray();
		
		for(int i=0; i<n; i++){
			char[] old = sc.next().toCharArray();
			flag = true;
			for(int j=0; j<old.length; j++){
				if(target[0]==old[j]){//??????????????????????????£??????
					
					for(int k=j+1; k<old.length; k++){
						if(target[1]==old[k]){//??????????????????????????£??????
							
							space = k-j;
							if(old.length<=space*(target.length-1)+j) break;//??????????????\???????????¨????????£??????
							work = k;
							
							for(int l=2; l<target.length; l++){
								work+=space;
								if(old[work]!=target[l]) break;//??????????????\???????????£??????
								if(l==target.length-1){
									cnt++;
									flag = false;//???????????£???????????§?¬?????????????
								}
								
							}
						}
					}
				}
				if(flag==false) break;
			}
		}
		
		System.out.println(cnt);
		
	}

}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.*;

public static void main(String[] args) {
	// TODO Auto-generated method stub
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int cnt = 0, space, work;
	boolean flag;
	char[] target = sc.next().toCharArray();
	
	for(int i=0; i<n; i++){
		char[] old = sc.next().toCharArray();
		flag = true;
		for(int j=0; j<old.length; j++){
			if(target[0]==old[j]){//??????????????????????????£??????
				
				for(int k=j+1; k<old.length; k++){
					if(target[1]==old[k]){//??????????????????????????£??????
						
						space = k-j;
						if(old.length<=space*(target.length-1)+j) break;//??????????????\???????????¨????????£??????
						work = k;
							
						for(int l=2; l<target.length; l++){
							work+=space;
							if(old[work]!=target[l]) break;//??????????????\???????????£??????
							if(l==target.length-1){
								cnt++;
								flag = false;//???????????£???????????§?¬?????????????
							}
							
						}
					}
				}
			}
			if(flag==false) break;
		}
	}
	
	System.out.println(cnt);
		
	}

}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:44: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
public class main {
	public static boolean stringMach(char[] base,String boardStr) {
		int boardStrlen = boardStr.length()-1; 
		int baseIndex = 0;
		for(int i=0;i<boardStrlen;i++){
			if(base[baseIndex]==boardStr.charAt(i)){
				baseIndex++;
				for(int j=i+1;j<boardStrlen;j++){
					if(base[baseIndex]==boardStr.charAt(j)){
						int margin = j-i;
						baseIndex++;
						for(int k=j+margin;k<=boardStrlen;k+=margin){
							if(base[baseIndex]==boardStr.charAt(k)){
								baseIndex++;
								if(baseIndex==base.length){
									return true;
								}
							}
						}
					}
				}
			}
		}
		return false;
	}
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int boardNam = sc.nextInt();
		String [] board  = new String[boardNam];
		char base[] = sc.next().toCharArray();
		boolean ans[] = new boolean[boardNam];
		int trueNum = 0;
		for(int i=0;i<boardNam;i++){
			board[i] = sc.next();
		}
		for(int i=0;i<boardNam;i++){
			ans[i] = stringMach(base, board[i]);
			if(stringMach(base, board[i])){
				System.out.println(i);
				trueNum++;
			}
		}
		System.out.println(trueNum);
	}
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.Scanner;
public class main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int boardNam = sc.nextInt();
		String [] board  = new String[boardNam];
		char base[] = sc.next().toCharArray();
		boolean ans[] = new boolean[boardNam];
		int trueNum = 0;
		for(int i=0;i<boardNam;i++){
			board[i] = sc.next();
		}
		for(int i=0;i<boardNam;i++){
			ans[i] = stringMach(base, board[i]);
			if(stringMach(base, board[i])){
				System.out.println(i);
				trueNum++;
			}
		}
		System.out.println(trueNum);
	}
	public static boolean stringMach(char[] base,String boardStr) {
		int boardStrlen = boardStr.length()-1; 
		int baseIndex = 0;
		for(int i=0;i<boardStrlen;i++){
			if(base[baseIndex]==boardStr.charAt(i)){
				baseIndex++;
				for(int j=i+1;j<boardStrlen;j++){
					if(base[baseIndex]==boardStr.charAt(j)){
						int margin = j-i;
						baseIndex++;
						for(int k=j+margin;k<=boardStrlen;k+=margin){
							if(base[baseIndex]==boardStr.charAt(k)){
								baseIndex++;
								if(baseIndex==base.length){
									return true;
								}
							}
						}
					}
				}
			}
		}
		return false;
	}
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.*;

public class AOJ578 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int cnt = 0, space, work;
		boolean flag;
		char[] target = sc.next().toCharArray();
		
		for(int i=0; i<n; i++){
			char[] old = sc.next().toCharArray();
			flag = true;
			for(int j=0; j<old.length; j++){
				if(target[0]==old[j]){//??????????????????????????£??????
					
					for(int k=j+1; k<old.length; k++){
						if(target[1]==old[k]){//??????????????????????????£??????
							
							space = k-j;
							if(old.length<=space*(target.length-1)+j) break;//??????????????\???????????¨????????£??????
							work = k;
							
							for(int l=2; l<target.length; l++){
								work+=space;
								if(old[work]!=target[l]) break;//??????????????\???????????£??????
								if(l==target.length-1){
									cnt++;
									flag = false;//???????????£???????????§?¬?????????????
								}
							}
							if(flag==false) break;
						}
					}
				}
				if(flag==false) break;
			}
		}
		
		System.out.println(cnt);
		
	}

}

Compiler output:
Main.java:3: error: class AOJ578 is public, should be declared in a file named AOJ578.java
public class AOJ578 {
       ^
1 error
Language: Java


import java.util.Scanner;

public class SignBoard {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int i, cnt = 0;
		int N = sc.nextInt();
		String name = sc.next();
		String[] kanban = new String[N];
		for(i=0; i<N; i++)kanban[i] = sc.next();
		
		for(i=0; i<N; i++){
			String board = kanban[i]; 
			cnt += Check(name, board);
		}
		System.out.println(cnt);
	}
	
	
	public static int Check(String name, String board){
		int i, j, k, x, y = 0, yy = 0, space;
		char[] nameC = name.toCharArray();
		
A:		for(i=0; i<board.length(); i++){
			x = board.indexOf(nameC[0], i);
			if(x<0)return 0;
			for(j=0; j+i<board.length(); j++){
				if(y == 0){
					y = board.indexOf(nameC[1], x);
					yy = y;
				}
				else y = board.indexOf(nameC[1], yy);
				yy += y;
				if(y<0)return 0;
				space = y - x;
				for(k=0; k+2<name.length(); k++){
					if(board.indexOf(nameC[k+2]) < 0)continue A;
					if(board.indexOf(nameC[k+2]) -board.indexOf(nameC[k+1]) !=space)continue A;
					if(k+2 == name.length() -1)return 1;
				}
			}
		}
		return 0;
	}
}

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


import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int i, cnt = 0;
		boolean flag = false;
		int N = sc.nextInt();
		String name = sc.next();
		String[] board = new String[N];
		for(i=0; i<N; i++)board[i] = sc.next();
		
		int num, j, k, x, y=0, yy = 0, space = 0;
		char[] nameC = name.toCharArray();
		
A:		for(num=0; num<board.length; num++){
B:			for(i=0; i<board[num].length(); i++){
				x = board[num].indexOf(nameC[0], i);
				if(x<0)continue A;
				for(j=0; j+i<board[num].length(); j++){
					if(y == 0){
						y = board[num].indexOf(nameC[1], x);
						yy = y;
					}
					else y = board[num].indexOf(nameC[1], yy);
					yy = y;
					if(y<0)continue B;
					space = y - x;
					for(k=0, z=space+y ; k+2<name.length(); z+=space, k++){
						flag = false;
						if(board[num].indexOf(nameC[k+2]) -board[num].indexOf(nameC[k+1]) == space){
							flag = true;
							if(k+2 == name.length() -1){
								cnt++;
								continue A;
							}
						}
						if(flag = false)break;
					}
				}
			}
		}
		System.out.println(cnt);
	}
}

Compiler output:
Main.java:30: error: cannot find symbol
					for(k=0, z=space+y ; k+2<name.length(); z+=space, k++){
					         ^
  symbol:   variable z
  location: class Main
Main.java:30: error: cannot find symbol
					for(k=0, z=space+y ; k+2<name.length(); z+=space, k++){
					                                        ^
  symbol:   variable z
  location: class Main
2 errors