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

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    int l, a, b, c, d; cin >> l >> a >> b >> c >> d;
    cout << (l - max(a / c + !!(a % c), b / d + !!(b % d)) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:60: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |     cout << (l - max(a / c + !!(a % c), b / d + !!(b % d)) << endl;
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:6:67: error: expected ')' before ';' token
    6 |     cout << (l - max(a / c + !!(a % c), b / d + !!(b % d)) << endl;
      |             ~                                                     ^
      |                                                                   )
Language: C++

#include<iostream>
using namespace std; 

int main(){
  int a;
  int i;
  int u;
  int e;
  int o;
  int ka;
  int ki;
  cin>>a>>i>>u>>e>>o;

  ka=i/e;
  if(i%e>0){
    ka=ka+1;
  }
  ki=u/o;
  if(u%o>0){
    ki=ki+1;
  }

  cout<<a-ka-ki<,endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: expected primary-expression before ',' token
   23 |   cout<<a-ka-ki<,endl;
      |                 ^
Language: C++

#include<iostream>
using namespace std; 

int main(){
  int a;
  int i;
  int u;
  int e;
  int o;
  int ka;
  int ki;
  cin>>a>>i>>u>>e>>o;

  ka=i/e;
  if(i%e>0){
    ka=ka+1;
  }
  ki=u/o;
  if(u%o>0){
    ki=ki+1;
  }
  if(ka>ki){
  cout<<a-ka<<endl;
  }else{
    cout<<a-ki<<endl;
}

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

#include <stdio.h>

int main(void)
{
	float l,a,b,c,d,e,f,z;
	l,a,b,c,d,e,f,z=0;
	
	scanf("%f",&l);
	scanf("%f",&a);
	scanf("%f",&b);
	scanf("%f",&c);
	scanf("%f",&d);
	
	e=(a/c)-(a%c);
	f=(b/d)-(b%d);
	if(a%c=0)(e<f){z=l-f};
	if(b%d=0)(f<e){z=l-e};
	if(a%c!=0)(e<f){z=l-f-1};
	if(b%d!=0)(f<e){z=l-e-1};

	printf("%f\n",&z);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   14 |         e=(a/c)-(a%c);
      |                  ~^~
      |                  | |
      |                  | float
      |                  float
a.cc:15:19: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   15 |         f=(b/d)-(b%d);
      |                  ~^~
      |                  | |
      |                  | float
      |                  float
a.cc:16:13: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   16 |         if(a%c=0)(e<f){z=l-f};
      |            ~^~
      |            | |
      |            | float
      |            float
a.cc:16:23: error: expected ';' before '{' token
   16 |         if(a%c=0)(e<f){z=l-f};
      |                       ^
      |                       ;
a.cc:17:13: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   17 |         if(b%d=0)(f<e){z=l-e};
      |            ~^~
      |            | |
      |            | float
      |            float
a.cc:17:23: error: expected ';' before '{' token
   17 |         if(b%d=0)(f<e){z=l-e};
      |                       ^
      |                       ;
a.cc:18:13: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   18 |         if(a%c!=0)(e<f){z=l-f-1};
      |            ~^~
      |            | |
      |            | float
      |            float
a.cc:18:24: error: expected ';' before '{' token
   18 |         if(a%c!=0)(e<f){z=l-f-1};
      |                        ^
      |                        ;
a.cc:19:13: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   19 |         if(b%d!=0)(f<e){z=l-e-1};
      |            ~^~
      |            | |
      |            | float
      |            float
a.cc:19:24: error: expected ';' before '{' token
   19 |         if(b%d!=0)(f<e){z=l-e-1};
      |                        ^
      |                        ;
Language: C++

#include <stdio.h>

float main(void)
{
	float l,a,b,c,d,e,f,v,w,x,y,z;
	l,a,b,c,d,e,f,v,w,x,y,z=0;
	
	scanf("%f",&l);
	scanf("%f",&a);
	scanf("%f",&b);
	scanf("%f",&c);
	scanf("%f",&d);
	
	if(a%c=0){v=l-a/c};
	if(b%d=0){w=l-b/d};
	if(a%c!=0){x=l-1-a/c};
	if(b%d!=0){y=l-1-b/d};

    if(v<w){w=z};
    if(w<v){v=z};
    if(x<y){y=z};
    if(y<x){x=z};
	printf("%f\n",&z);
	return 0;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | float main(void)
      | ^~~~~
a.cc: In function 'int main()':
a.cc:14:13: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   14 |         if(a%c=0){v=l-a/c};
      |            ~^~
      |            | |
      |            | float
      |            float
a.cc:14:26: error: expected ';' before '}' token
   14 |         if(a%c=0){v=l-a/c};
      |                          ^
      |                          ;
a.cc:15:13: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   15 |         if(b%d=0){w=l-b/d};
      |            ~^~
      |            | |
      |            | float
      |            float
a.cc:15:26: error: expected ';' before '}' token
   15 |         if(b%d=0){w=l-b/d};
      |                          ^
      |                          ;
a.cc:16:13: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   16 |         if(a%c!=0){x=l-1-a/c};
      |            ~^~
      |            | |
      |            | float
      |            float
a.cc:16:29: error: expected ';' before '}' token
   16 |         if(a%c!=0){x=l-1-a/c};
      |                             ^
      |                             ;
a.cc:17:13: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   17 |         if(b%d!=0){y=l-1-b/d};
      |            ~^~
      |            | |
      |            | float
      |            float
a.cc:17:29: error: expected ';' before '}' token
   17 |         if(b%d!=0){y=l-1-b/d};
      |                             ^
      |                             ;
a.cc:19:16: error: expected ';' before '}' token
   19 |     if(v<w){w=z};
      |                ^
      |                ;
a.cc:20:16: error: expected ';' before '}' token
   20 |     if(w<v){v=z};
      |                ^
      |                ;
a.cc:21:16: error: expected ';' before '}' token
   21 |     if(x<y){y=z};
      |                ^
      |                ;
a.cc:22:16: error: expected ';' before '}' token
   22 |     if(y<x){x=z};
      |                ^
      |                ;
Language: C++

#include <stdio.h>

int main() {
 int A, B, C, D, L, i, R, cnt = 0;
 scanf( "%d", &L );
 scanf( "%d", &A );
 scanf( "%d", &B );
 scanf( "%d", &C );
 scanf( "%d", &D );
 for( ;; ) {
   A -= C;
   B -= D;
   cnt++;
   if( A <= 0 && B <= 0 ) break;
 }
 R = L - cnt;
 printf( "%d\n", R );
 return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: expected '}' at end of input
   18 |  return 0;
      |           ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <stdio.h>
int main(){
  int a, b, c, d, l, z ;
  double e, f;
  scanf("%d %d %d %d %d", &l, &a, &b, &c, &d,);
  e = a/c;
  double ceil(double e);
  f = b/d;
  double ceil(double f);
  if(e>=f){
   z = l-e;
  }else{
     z =l-f;
  }
  printf("%d\n", z);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:46: error: expected primary-expression before ')' token
    5 |   scanf("%d %d %d %d %d", &l, &a, &b, &c, &d,);
      |                                              ^
Language: C++

#include <stdio.h>
int main(){
  int a, b, c, d, l, z ;
  int e, f;
  scanf("%d %d %d %d %d", &l, &a, &b, &c, &d);
  e =double ceil( a/c);
  f =double ceil(b/d);
  if(e>=f){
   z = l-e;
  }else{
     z =l-f;
  }
  printf("%d\n", z);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected primary-expression before 'double'
    6 |   e =double ceil( a/c);
      |      ^~~~~~
a.cc:7:6: error: expected primary-expression before 'double'
    7 |   f =double ceil(b/d);
      |      ^~~~~~
Language: C++

#include <stdio.h>
int main(){
  int a, b, c, d, l, z ;
  int e, f;
  scanf("%d %d %d %d %d", &l, &a, &b, &c, &d);
  e = ceil((double)a/(double)c);
  f = ceil((double)b/(double)d);
  if(e>=f){
   z = l-e;
  }else{
     z =l-f;
  }
  printf("%d\n", z);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'ceil' was not declared in this scope
    6 |   e = ceil((double)a/(double)c);
      |       ^~~~
Language: C++

include <stdio.h>
int main(){
  int l,a,b,c,d,p,i;
  scanf("%d %d %d %d %d",&l,&a,&b,&c,&d);
  for(i = 1 ; a > c || b > d ; i++){
    a = a-c;
    b = b-d;
  }
  p = l - i;
  printf("%d\n",p);
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

 #include<iostream>
using namespace std;

int main () {
	int a,b,c,d,L;
	int hi,tuki;
	float fhi,ftuki;
	cin >> L >> a >> b >> c >> d;
	hi=a/c;
	fhi=(float)a/c;
	tuki=b/d;
	ftuki=(float)b/d;
	if(hi<fhi){
		thi++;
		}
	if(tuki<ftuki){
		ftuki++;
		}
	if(hi>tuki){
		cout << L-hi <<'\n';
	}else{
		cout << L-tuki <<'\n';
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'thi' was not declared in this scope; did you mean 'fhi'?
   14 |                 thi++;
      |                 ^~~
      |                 fhi
Language: C++

#include<iostream>
using namespace std;
    
int main()
{
int L,A,B,C,D,K,E,F;
cin>>L>>A>>B>>C>>D;
E=A/C;
F=B/D;
if(A%C>0){
E+=1;
}
if(B%D>0){
F+=1;
}
if(E<F){
K=L-E;
}
else(E>F){
K=L-F;
}
cout<<K<<'\n';
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected ';' before '{' token
   19 | else(E>F){
      |          ^
      |          ;
Language: C++

#include<iostream>
using namespace std;
     
int main()
{
int L,A,B,C,D,K,E,F;
cin>>L>>A>>B>>C>>D;
E=A/C;
F=B/D;
if(A%C>0){
E+=1;
}
if(B%D>0){
F+=1;
}
if(E<F){
K=L-E;
}
else(E>F)
K=L-F;
cout<<K<<'\n';
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected ';' before 'K'
   19 | else(E>F)
      |          ^
      |          ;
   20 | K=L-F;
      | ~
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int l;
	cin>>l;
	2<=l&&l<=40;
	
	int a;
	cin>>a;
	1<=a&&a<=1000;
	
	int b;
	cin>>b;
	1<=b&&b<=1000;
	
	int c;
	cin>>c;
	1<=c&&c<=100;	

	int d;
	cin>>d;
	1<=d&&d<=100;
	
	double jpn;
	jpn=a%c;
	double math;
	math=b%d;
	
	if(jpn>0){
		if(math>0){
			if(jpn+math>1.0){		
				if(a/c>b/d){
				cout<<(l-a/c)+2<<"\n";
				}
			}
		}
	}
	if(jpn>0){
		if(math>0){
			if(jpn+math>1.0){		
				if(b/d>a+c){
				cout<<(l-b/d)+2<<"\n";
			}
		}
	}
	if(jpn>0){
		if(math>0){
			if(jpn+math<=1.0){		
				if(a/c>b/d){
				cout<<(l-a/c)+1<<"\n";
				}
			}
		}
	}
	if(jpn>0){
		if(math>0){
			if(jpn+math<=1.0){		
				if(b/d>a/c){
				cout<<(l-b/d)+1<<"\n";
				}
			}
		}
	}
	
	if(jpn=0){
		if(math=0){	
				if(b/d>a/c){
				cout<<l-b/d<<"\n";
			}
		}
	}

	if(jpn=0){
		if(math=0){		
				if(a/c>b/d){
				cout<<(l-a/c)+1<<"\n";
			}
		}
	}

	return 0;
}

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

#include<iostream>
using namespace std;

int main()
{
	int l;
	cin>>l;
	2<=l&&l<=40;
	
	int a;
	cin>>a;
	1<=a&&a<=1000;
	
	int b;
	cin>>b;
	1<=b&&b<=1000;
	
	int c;
	cin>>c;
	1<=c&&c<=100;	

	int d;
	cin>>d;
	1<=d&&d<=100;
	
	int jpn;
	jpn=a%c;
	int math;
	math=b%d;
	
	if(jpn>0){
		if(math>0){
			if(jpn+math>1.0)		
				if(a/c>b/d){
			cout<<(l-a/c)+<<"\n";
		}
	}

	if(jpn<0){
		if(a/c>b/d){
			cout<<l-a/c<<"\n";
		}
	}

	if(math>0){
		if(b/d>a/c){
			cout<<(l-b/d)+1<<"\n";
		}
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:39: error: expected primary-expression before '<<' token
   35 |                         cout<<(l-a/c)+<<"\n";
      |                                       ^~
a.cc:53:2: error: expected '}' at end of input
   53 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <iostream>
#include <cstdio>

using namespace std;

int main(){
	int l(2 <= 40), a(2 <= 1000), b(2 <= 1000), c(2 <= 1000), d(2 <= 1000);
	cin >> l >> a >> b >> c >> d;
	for (int i; i = 0; i++)
		if (a <= 0 && b <= 0)break;
	a -= c;
	b -= d;
	}
    cout << l - i << endl;

		return 0;
}

Compiler output:
a.cc:14:5: error: 'cout' does not name a type
   14 |     cout << l - i << endl;
      |     ^~~~
a.cc:16:17: error: expected unqualified-id before 'return'
   16 |                 return 0;
      |                 ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(void){
  int L , A , B , C , D;
  cin >> L >> A >> B >> C >> D;

  int days_jp , days_mt , days;
  days_jp = (A / C) + 1;
  days_mt = (B / D) + 1;
  days = (days_jp > days_mt) ?  days_jp : days_mt;

  cout << L - daysl;


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: 'daysl' was not declared in this scope; did you mean 'days'?
   14 |   cout << L - daysl;
      |               ^~~~~
      |               days
Language: C++

#include<iostream>
using namespace std;
int main() {
	int L, A, B, C, D;
	int restA = 0, restB = 0;
	cin >> L >> A >> B >> C >> D;
	if( A % C > 0) { restA = 1;}
	if( B % D > 0) { restB = 1;}
	cout << L - max((A/C) + restA, (b/D) +restB ) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: 'b' was not declared in this scope
    9 |         cout << L - max((A/C) + restA, (b/D) +restB ) << endl;
      |                                         ^
Language: C++

#include <iostream>
using namespace std;
int main(void)
{
	int a,b,c,d,e,f,g,h,i,j,k;
	float A;
	cin>>a>>b>>c>>d>>e;
	A=b-d;
	g=0;
	g++;
	for (;;)
	{
		if (A<=0)
		{
			g++;
			break;
		}
		else if (A>0)
		{
			g++;
		}
	}
	A=c-e;
	f=0;
	f++;
	for (;;)
	{
		 if (A<=0)
		{
			f++;
			break;
		}
		A=A-e;
		else if (A>0)
		{
			f++;
		}
	}
	if (f<=g)
	{
		g=a-g;
		cout<<g<<endl;
	}
	else if(f>=g)
	{ 
		f=a-f;
		cout<<f<<endl;
	}
	return 0;
}
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:34:17: error: 'else' without a previous 'if'
   34 |                 else if (A>0)
      |                 ^~~~
Language: C++


#include <stdio.h>
#include <algorithm>

using namespace std;

int main() {

	int n[5];

	for (int i = 0; i < 5; i++) {
		scanf("%d", &n[i]);
	}

	printf("%d\n", n[0] - max((int)ceil((double)n[1] / n[3]), (int)ceil((double)n[2] / n[4])));

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:40: error: 'ceil' was not declared in this scope
   15 |         printf("%d\n", n[0] - max((int)ceil((double)n[1] / n[3]), (int)ceil((double)n[2] / n[4])));
      |                                        ^~~~
Language: C++

#include<iostream>
using namespace std;
int L, A, B, C, D;
int rA = 0, rB = 0;
int main(){
cin >> L >> A >> B >> C >> D;
if( a - (A/C) * C > 0) { rA = 1;}
if( B - (B/D) * D > 0) { rB = 1;}
cout << L - max((A/C) + rA,(B/D) +rB ) << endl;
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'a' was not declared in this scope
    7 | if( a - (A/C) * C > 0) { rA = 1;}
      |     ^
a.cc:10:1: error: 'return0' was not declared in this scope
   10 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int L, A, B, C, D;
int rA = 0, rB = 0;
int main(){
cin >> L >> A >> B >> C >> D;
if( A - (A/C) * C > 0) { rA = 1;}
if( B - (B/D) * D > 0) { rB = 1;}
cout << L - max((A/C) + rA,(B/D) +rB ) << endl;
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'return0' was not declared in this scope
   10 | return0;
      | ^~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
int main() {
	int l; // ??¬???????????\??°
	int a, b, c, d;
	int koku, san;
	std::cin  >> l >> a >> b >> c >> d;
	koku = b / d;
	san = a / c;

	l = l - std::max(koku, san);
	
	std::cout << l << std::endl;

	return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected ';' before '}' token
   15 |         return 0
      |                 ^
      |                 ;
   16 | }
      | ~
Language: C++

#include <iostream>
using namespace	std;

int main() {
  int A, B, C, D, L;
  int X, Y;

  cin >> L >> A >> B >> C >> D;

  X = A/C;
  if(A%C != 0)
    X++;
  Y = B/D;
  if(B%D != 0)
    Y++;

  cout << (X>Y) ? L-X :	L-Y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |   cout << (X>Y) ? L-X : L-Y << endl;
      |                         ~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int A, B, C, D, L;
  int X, Y;

  cin >> L >> A >> B >> C >> D;

  X = A/C;
  if(A%C != 0)
    X++;
  Y = B/D;
  if(B%D != 0)
    Y++;

  cout << (X>Y) ? (L-X) : (L-Y) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:33: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |   cout << (X>Y) ? (L-X) : (L-Y) << endl;
      |                           ~~~~~~^~~~~~~
Language: C++

#! /usr/bin/env ruby
# coding: utf-8
L = gets.to_i
A = gets.to_i
B = gets.to_i
C = gets.to_i
D = gets.to_i
puts L - [(A + C - 1)/C.to_i, (B + D - 1)/D.to_i].max

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #! /usr/bin/env ruby
      |  ^
a.cc:2:3: error: invalid preprocessing directive #coding
    2 | # coding: utf-8
      |   ^~~~~~
a.cc:3:1: error: 'L' does not name a type
    3 | L = gets.to_i
      | ^
Language: C++

#include<stdio.h>
#include<algorithm>
using namespace std;
int main(){
	int a,b,c,d,e;
	scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
	printf("%d\n",a-max((b+d-1)/d-(c+e-1)/e));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: no matching function for call to 'max(int)'
    7 |         printf("%d\n",a-max((b+d-1)/d-(c+e-1)/e));
      |                         ~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:7:28: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    7 |         printf("%d\n",a-max((b+d-1)/d-(c+e-1)/e));
      |                         ~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
#include <algroithm>
#include <cmath>

using namespace std;

int main()
{
    int L, A, B, C, D;

    cin >> L >> A >> B >> C >> D;
    cout << L - max(ceil((double)A / C), ceil((double)B / D)) << endl;

    return 0;
}

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

a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      | ^
a.cc:1:17: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:1:42: error: 'p' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                                          ^
a.cc:1:31: error: 'scanf' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                               ^~~~~
a.cc:1:63: error: 'a' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                                                               ^
a.cc:1:72: error: 'b' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                                                                        ^
a.cc:1:74: error: 'd' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                                                                          ^
a.cc:1:78: error: 'c' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                                                                              ^
a.cc:1:80: error: 'e' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                                                                                ^
a.cc:1:65: error: 'fmax' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                                                                 ^~~~
a.cc:1:48: error: 'printf' was not declared in this scope
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
      |                                                ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | a,b,c,d,e,*p=&a;main(){while(~scanf("%d",p++));printf("%.f\n",a-fmax(--b/d,--c/e)-1);}
Language: C++

#include<iostream>
using namespace std;

int main(){
	int L,A,B,C,D,x,y;
	cin >>L >>A >>B >>C >>D;
	if(A%C==0)
		x=A/C;
		else
			x=A/C+1;
	if(B%D==0)
		y=B/D;
		else
			y=B/D+1;
	if(x<y)
		x=y;
		
	cout << L-x <<endl";

	return 0;
}

Compiler output:
a.cc:18:27: warning: missing terminating " character
   18 |         cout << L-x <<endl";
      |                           ^
a.cc:18:27: error: missing terminating " character
   18 |         cout << L-x <<endl";
      |                           ^~
a.cc: In function 'int main()':
a.cc:18:27: error: expected ';' before 'return'
   18 |         cout << L-x <<endl";
      |                           ^
      |                           ;
   19 | 
   20 |         return 0;
      |         ~~~~~~
Language: Java

import java.util.*;
public class UniqueNumber {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int i,j,k,c = 0;
		int[][] a;
		a = new int[n][n];
		for(i=0; i<n; i++){
			a[0][i] = sc.nextInt();
			a[1][i] = sc.nextInt();
			a[2][i] = sc.nextInt();
			}
		for(i=0; i<3; i++){
			for(j=0; j<n; j++){
					for(k=j+1; k<n; k++){
					if(a[i][j] == a[i][k]){
						a[i][k] = 0;
						c = c + 1;
						}
					}
					if(c > 0){
						a[i][j] = 0;
					}
					c = 0;
				}
			}
		for(i=0; i<n; i++){
			System.out.println(a[0][i] + a[1][i] + a[2][i]);
		}
	}
}

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

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int i, k, cnt=0, searched, search;
		int data[][] = new int[201][3];
		int point[] = new int[201];

		//????????¬?????????????????????????????????????????????
		for(i = 1; i <= N; i++){
			for(k = 1; k <= 3; k++){
				data[i][k] = sc.nextInt();
			}
		}

		//?????¬?????????????£???§??????????????????????¢????????????????????????????????????????????????????
		for(i = 1; i <= N; i++){
			for(k = 1; k <= 3; k++){
				search = data[i][k];
				for(searched = 1; searched <= N; searched++){
					if(i == searched)continue;
					if(search == data[searched][k])search = 0;
				}
				point[i] += search;
			}
		}

		for(i = 1; i <= N; i++){
			System.out.println(point[i]);
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int i, k, searched, search;
		int data[][] = new int[201][3];
		int point[] = new int[201];

		//????????¬?????????????????????????????????????????????
		for(i = 1; i <= N; i++){
			for(k = 1; k <= 3; k++){
				data[i][k] = sc.nextInt();
			}
		}

		//?????¬?????????????£???§??????????????????????¢????????????????????????????????????????????????????
		for(i = 1; i <= N; i++){
			for(k = 1; k <= 3; k++){
				search = data[i][k];
				for(searched = 1; searched <= N; searched++){
					if(i == searched)continue;
					if(search == data[searched][k])search = 0;
				}
				point[i] += search;
			}
		}

		for(i = 1; i <= N; i++){
			System.out.println(point[i]);
		}
		sc.close();
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class B1 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int i, k, searched, search;
		int data[][] = new int[201][3];
		int point[] = new int[201];

		//????????¬?????????????????????????????????????????????
		for(i = 1; i <= N; i++){
			for(k = 1; k <= 3; k++){
				data[i][k] = sc.nextInt();
			}
		}

		//?????¬?????????????£???§??????????????????????¢????????????????????????????????????????????????????
		for(i = 1; i <= N; i++){
			for(k = 1; k <= 3; k++){
				search = data[i][k];
				for(searched = 1; searched <= N; searched++){
					if(i == searched)continue;
					if(search == data[searched][k])search = 0;
				}
				point[i] += search;
			}
		}

		for(i = 1; i <= N; i++){
			System.out.println(point[i]);
		}
		sc.close();
	}
}

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

import java.util.Scanner;
public class ex0 {
	public static void main(String[] args) {
		Scanner sc =new Scanner(System.in);
		int[][] point=new int[200][10];
		int[] point2=new int[200];
		int n=sc.nextInt();
		int s=0;
		for(int i=1;i<=n;i++) point2[i]=0;
		for(int i=1;i<=3;i++){
			for(int j=1;j<=n;j++){
			    point[j][i]=sc.nextInt();
			}
		}
		for(int i=1;i<=3;i++){
			for(int j=1;j<=n;j++){
			    for(int k=1;k<=n;k++){
			    	if(point[j][i]!=point[k][i]) s+=1;
			    }
			    if(s==n-1) point2[j]=point2[j]+point[j][i];
			    s=0;
			}
		}
		for(int j=1;j<=n;j++){
			System.out.println(point2[j]);
		}
	}
}

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

import java.util.Scanner;
public class ex0 {
	public static void main(String[] args) {
		Scanner sc =new Scanner(System.in);
		int[][] point=new int[200][10];
		int[] point2=new int[200];
		int n=sc.nextInt();
		int s=0;
		for(int i=1;i<=200;i++) point2[i]=0;
		for(int i=1;i<=3;i++){
			for(int j=1;j<=n;j++){
			    point[j][i]=sc.nextInt();
			}
		}
		for(int i=1;i<=3;i++){
			for(int j=1;j<=n;j++){
			    for(int k=1;k<=n;k++){
			    	if(point[j][i]!=point[k][i]) s+=1;
			    }
			    if(s==n-1) point2[j]=point2[j]+point[j][i];
			    s=0;
			}
		}
		for(int j=1;j<=n;j++){
			System.out.println(point2[j]);
		}
	}
}

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

import java.util.Scanner;
public class???Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int[][] player=new int[3][n];
		int[] point=new int[n];
		for(int i=0;i<n;i++){
			for(int j=0;j<3;j++){
				player[i][j]=sc.nextInt();
			}
		}

		for(int i=0;i<3;i++){
		for(int j=0;j<n;j++){
			for(int k=0;k<n;k++){
				if(player[i][j]==player[i][k]){

				}else{
					point[i]+=player[i][j];
				}
			}
		}
		}
		for(int i=0;i<n;i++){
		System.out.printf("%d\n", point[i]);
		}
	}

}

Compiler output:
Main.java:2: error: <identifier> expected
public class???Main {
            ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
	void check(int a,int b,int n,int i) {
		for(int k=1;k<=n;k++){
	    	if(point[j][i]==point[k][i] && ) s+=1;
	    }
	}
	
	public static void main(String[] args) {
		Scanner sc =new Scanner(System.in);
		int[][] point=new int[300][10];
		int[] score=new int[102];
		for(int i=1;i<=101;i++) score[i]=0; 
		int n=sc.nextInt();
		int k=0;
		boolean check=false;
		for(int i=0;i<n;i++){
			for(int j=0;j<3;j++){
			    point[i][j]=sc.nextInt();
			}
		}
		for(int i=0;i<3;i++){
			for(int j=0;j<n;j++){
				check=false;
			    for( k=0;k<n;k++){
			    	if(point[k][i]==point[j][i] && j!=k) check=true;
			    }
			    if(check==false) score[j]=score[j]+point[k][i];
			}
		}
		for(int j=0;j<n;j++){
			System.out.println(score[j]);
		}
	}
}

Compiler output:
Main.java:5: error: illegal start of expression
	    	if(point[j][i]==point[k][i] && ) s+=1;
	    	                               ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int card [][] = new int[N][3];
		int score [] = new int[N];
		int count [][] = new int[N][3];
		for(int i = 0 ; i < N ; i++){
			card[i][0] = sc.nextInt();
			card[i][1] = sc.nextInt();
			card[i][2] = sc.nextInt();
		}
		
		
		for(int i = 0 ; i < N ; i++){
			for(int k = 0 ; k < 3 ; k++){
				for(int j = 0 ; j < N ; j++){
					if(card[i][k] != card[j][k]){
						count[i][k]++;
					}
				}
				if(count[i][k] == N - 1){
					score[i] = score[i] + card[i][k];
				}
			}
			
		}

Compiler output:
Main.java:30: error: reached end of file while parsing
		}
		 ^
1 error
Language: Java

import java.util.*;
public class AOJ0577{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int i,j,k,x,c;
		int p=sc.nextInt();
		int [][]ps =new int[p][3];

		for(i=0;i<p;i++){
			for(j=0;j<3;j++){
				int s=sc.nextInt();
				ps[i][j]=s;
			}
		}
		
		int [][]sf = new int[p][3];
		
		for(i=0;i<p;i++){
			for(j=0;j<3;j++){
				sf[i][j]=ps[i][j];
			}
		}
		
		for(i=0;i<3;i++){
			for(j=0;j<p;j++){
				for(k=(j+1);k<p;k++){
					
					if(ps[j][i]==ps[k][i]){
						sf[j][i]=0;
						sf[k][i]=0;
					}
					
				}
			}
		}
		
		
		for(i=0;i<p;i++){
			for(j=1;j<3;j++){
				sf[i][0]=sf[i][0]+sf[i][j];
			}
			System.out.printf("%d\n",sf[i][0]);
		}
		
		
		sc.close();
		System.exit(0);
	}
}

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

import java.util.Scanner;

public class AOJ0577 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		while(N < 2 || 200 < N){
			System.out.println("2から200までの数を入力してください。");
			N = sc.nextInt();
		}
		int[][] num = new int[N][3];
		int[] point = new int[N];
		int ptswt = 0;
		for(int i = 0; i < N; i++){
			point[i] = 0;
		}
		for(int i = 0; i < N; i++){
			num[i][0] = sc.nextInt();
			while(num[i][0] < 1 || 100 < num[i][0]){
				System.out.println("1から100までの数を入力してください。");
				num[i][0] = sc.nextInt();
			}
			num[i][1] = sc.nextInt();
			while(num[i][1] < 1 || 100 < num[i][1]){
				System.out.println("1から100までの数を入力してください。");
				num[i][1] = sc.nextInt();
			}
			num[i][2] = sc.nextInt();
			while(num[i][2] < 1 || 100 < num[i][2]){
				System.out.println("1から100までの数を入力してください。");
				num[i][2] = sc.nextInt();
			}
		}
		for(int j = 0; j < N; j++){ //参照するプレイヤー
			for(int i = 0; i < 3; i ++){ //ゲームの回数
				ptswt = 1;
				for(int k = 0; k < N; k++){ //その他のプレイヤー
					if(j != k){
						if(num[j][i] == num[k][i]){
							ptswt = 0;break;
						}
					}
				}
				if(ptswt == 1){
					point[j] += num[j][i];
				}
			}
		}
		for(int i = 0; i < N; i++){
			System.out.println(point[i]);
		}
		return;
	}
}

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

package software_design;
import java.util.Scanner;
public class AOJ0577 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] a = new int[3][n];
        for(int i=0;i<n;i++) {
            for(int j=0;j<3;j++) {
                a[j][i] = sc.nextInt();
            }
        }
        int[] score = new int[n];
        for(int k=0;k<3;k++) {
            for(int i=0;i<n;i++) {
                boolean flag = true;
                for(int j=0;j<n;j++) {
                    if (i == j) {
                        continue;
                    }
                    if (a[k][i] == a[k][j]) {
                        flag = false;
                        break;
                    }
                }
                if (flag) {
                    score[i] += a[k][i];
                }
            }
        }
        for(int i=0;i<n;i++) {
            System.out.println(score[i]);
        }
    }
}

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

import java.util.Scanner;
public class AOJ0577 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] a = new int[3][n];
        for(int i=0;i<n;i++) {
            for(int j=0;j<3;j++) {
                a[j][i] = sc.nextInt();
            }
        }
        int[] score = new int[n];
        for(int k=0;k<3;k++) {
            for(int i=0;i<n;i++) {
                boolean flag = true;
                for(int j=0;j<n;j++) {
                    if (i == j) {
                        continue;
                    }
                    if (a[k][i] == a[k][j]) {
                        flag = false;
                        break;
                    }
                }
                if (flag) {
                    score[i] += a[k][i];
                }
            }
        }
        for(int i=0;i<n;i++) {
            System.out.println(score[i]);
        }
    }
}

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

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

Compiler output:
main.c:2:1: warning: data definition has no type or storage class
    2 | n[3][101];
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:3:10: error: expected ';' before 'int'
    3 | a[200][3]
      |          ^
      |          ;
    4 | int main(void){
      | ~~~       
main.c: In function 'main':
main.c:11:9: error: 'a' undeclared (first use in this function)
   11 |         a[i][j]=k;
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {
	int i, j, n, flg;
	int res[100][4] = {0};
	scanf("%d", &n);
	for( i = 0; i < n; i++ ) {
		for( j = 0; j < 3; j++) {
			scanf("%d", &res[i][j]);
		}
	}
	for( i = 0; i < n; i++ ){
		flg = 1;
		for( j = 0; j < 3; j++ ) {
			for ( k = 0; k < 3; k++) {
				if( k != j ) {
					if(res[i][j] == res[i][k]) flg = 0;
				}
			}
			if(flg) res[i][4] += res[i][j];
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:31: error: 'k' undeclared (first use in this function)
   15 |                         for ( k = 0; k < 3; k++) {
      |                               ^
main.c:15:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {
	int i, j, k, n, res, flg;
	int score[200][3] = { 0 };
	// 入力
	scanf("%d", &n);
	for ( i = 0; i < n; i++){
		for ( j = 0; j < 3; j++) {
			scanf("%d", &score[i][j]);
		}
	}
	// 計算
	for ( i = 0; i < n; i++) {
		res = 0;
		flg = 0;
		for ( j = 0; j < 3; j++) {
			for ( k = 0; k < n; k++) {
				if(i != k) {
					if(socre[i][j] == score[k][j]) flg = 1;
				}
			}
			if(flg == 0) res += score[i][j];
		}
		printf("%d\n", res);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:44: error: 'socre' undeclared (first use in this function); did you mean 'score'?
   20 |                                         if(socre[i][j] == score[k][j]) flg = 1;
      |                                            ^~~~~
      |                                            score
main.c:20:44: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int player,i,j,k,sum;
scanf("%d\n",&player);
int point[player][3];
int respoint[player][3]
for(j=0;j<player;j++){
scanf("%d %d %d\n",&point[j][0],&point[j][1],&point[j][2]);
}
for(j=0;j<player;j++){
for(i=0;i<3;i++){
for(k=0;k<player;k++){
if(point[j][i]==point[k][i] && j!=k)flag=1
}
if (flag==0) respoint[j][i]=point[j][i] else respoint[j][i]=0;
flag=0;
}
}
for(i=0;i<player;i++){
sum = respoint[i][0]+respoint[i][1]+respoint[i][2];
printf("%d\n",sum);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    7 | for(j=0;j<player;j++){
      | ^~~
main.c:13:37: error: 'flag' undeclared (first use in this function)
   13 | if(point[j][i]==point[k][i] && j!=k)flag=1
      |                                     ^~~~
main.c:13:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:43: error: expected ';' before '}' token
   13 | if(point[j][i]==point[k][i] && j!=k)flag=1
      |                                           ^
      |                                           ;
   14 | }
      | ~                                          
main.c:15:14: error: 'respoint' undeclared (first use in this function); did you mean 'point'?
   15 | if (flag==0) respoint[j][i]=point[j][i] else respoint[j][i]=0;
      |              ^~~~~~~~
      |              point
main.c:15:40: error: expected ';' before 'else'
   15 | if (flag==0) respoint[j][i]=point[j][i] else respoint[j][i]=0;
      |                                        ^~~~~
      |                                        ;
Language: C

#include<stdio.h>
int main(){
int player,i,j,k,sum;
scanf("%d\n",&player);
int point[player][3];
int respoint[player][3]
for(j=0;j<player;j++){
scanf("%d %d %d\n",&point[j][0],&point[j][1],&point[j][2]);
}
for(j=0;j<player;j++){
for(i=0;i<3;i++){
for(k=0;k<player;k++){
if(point[j][i]==point[k][i] && j!=k)flag=1
}
if (flag==0) respoint[j][i]=point[j][i]; else respoint[j][i]=0;
flag=0;
}
}
for(i=0;i<player;i++){
sum = respoint[i][0]+respoint[i][1]+respoint[i][2];
printf("%d\n",sum);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    7 | for(j=0;j<player;j++){
      | ^~~
main.c:13:37: error: 'flag' undeclared (first use in this function)
   13 | if(point[j][i]==point[k][i] && j!=k)flag=1
      |                                     ^~~~
main.c:13:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:43: error: expected ';' before '}' token
   13 | if(point[j][i]==point[k][i] && j!=k)flag=1
      |                                           ^
      |                                           ;
   14 | }
      | ~                                          
main.c:15:14: error: 'respoint' undeclared (first use in this function); did you mean 'point'?
   15 | if (flag==0) respoint[j][i]=point[j][i]; else respoint[j][i]=0;
      |              ^~~~~~~~
      |              point
Language: C

#include<stdio.h>
int main(){
int player,i,j,k,sum,flag;
scanf("%d\n",&player);
int point[player][3];
int respoint[player][3]
for(j=0;j<player;j++){
scanf("%d %d %d\n",&point[j][0],&point[j][1],&point[j][2]);
}
for(j=0;j<player;j++){
for(i=0;i<3;i++){
for(k=0;k<player;k++){
if(point[j][i]==point[k][i] && j!=k)flag=1
}
if (flag==0) respoint[j][i]=point[j][i]; else respoint[j][i]=0;
flag=0;
}
}
for(i=0;i<player;i++){
sum = respoint[i][0]+respoint[i][1]+respoint[i][2];
printf("%d\n",sum);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    7 | for(j=0;j<player;j++){
      | ^~~
main.c:13:43: error: expected ';' before '}' token
   13 | if(point[j][i]==point[k][i] && j!=k)flag=1
      |                                           ^
      |                                           ;
   14 | }
      | ~                                          
main.c:15:14: error: 'respoint' undeclared (first use in this function); did you mean 'point'?
   15 | if (flag==0) respoint[j][i]=point[j][i]; else respoint[j][i]=0;
      |              ^~~~~~~~
      |              point
main.c:15:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int player,i,j,k,sum,flag;
scanf("%d\n",&player);
int point[player][3];
int respoint[player][3]
for(j=0;j<player;j++){
scanf("%d %d %d\n",&point[j][0],&point[j][1],&point[j][2]);
}
for(j=0;j<player;j++){
for(i=0;i<3;i++){
for(k=0;k<player;k++){
if(point[j][i]==point[k][i] && j!=k)flag=1;
}
if (flag==0) respoint[j][i]=point[j][i]; else respoint[j][i]=0;
flag=0;
}
}
for(i=0;i<player;i++){
sum = respoint[i][0]+respoint[i][1]+respoint[i][2];
printf("%d\n",sum);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    7 | for(j=0;j<player;j++){
      | ^~~
main.c:15:14: error: 'respoint' undeclared (first use in this function); did you mean 'point'?
   15 | if (flag==0) respoint[j][i]=point[j][i]; else respoint[j][i]=0;
      |              ^~~~~~~~
      |              point
main.c:15:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int player,i,j,k,sum,flag=0;
scanf("%d\n",&player);
int point[player][3];
int respoint[player][3]
for(j=0;j<player;j++){
scanf("%d %d %d\n",&point[j][0],&point[j][1],&point[j][2]);
}
for(j=0;j<player;j++){
for(i=0;i<3;i++){
for(k=0;k<player;k++){
if(point[j][i]==point[k][i] && j!=k)flag=1;
}
if (flag==0) respoint[j][i]=point[j][i]; else respoint[j][i]=0;
flag=0;
}
}
for(i=0;i<player;i++){
sum = respoint[i][0]+respoint[i][1]+respoint[i][2];
printf("%d\n",sum);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    7 | for(j=0;j<player;j++){
      | ^~~
main.c:15:14: error: 'respoint' undeclared (first use in this function); did you mean 'point'?
   15 | if (flag==0) respoint[j][i]=point[j][i]; else respoint[j][i]=0;
      |              ^~~~~~~~
      |              point
main.c:15:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int player,i,j,k,sum,flag=0;
scanf("%d\n",&player);
int point[player][3];
int respoint[player][3]
for(j=0;j<player;j++){
scanf("%d %d %d\n",&point[j][0],&point[j][1],&point[j][2]);
}
for(j=0;j<player;j++){
for(i=0;i<3;i++){
for(k=0;k<player;k++){
if(point[j][i]==point[k][i] && j!=k)flag=1;
}
if (flag==0) respoint[j][i]=point[j][i];else respoint[j][i]=0;
flag=0;
}
}
for(i=0;i<player;i++){
sum = respoint[i][0]+respoint[i][1]+respoint[i][2];
printf("%d\n",sum);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    7 | for(j=0;j<player;j++){
      | ^~~
main.c:15:14: error: 'respoint' undeclared (first use in this function); did you mean 'point'?
   15 | if (flag==0) respoint[j][i]=point[j][i];else respoint[j][i]=0;
      |              ^~~~~~~~
      |              point
main.c:15:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

/*??°???????????????(Unique number)*/
#include <stdio.h>
int main(){
  int i, k, l, x, N;
  int data[200][3];
  int sum[200];
  scanf("%d", &N);
  for (i = 0; i < N; i++) {
    for (k = 0; k < 3; k++) {
      scanf("%d", &data[i][k]);
	}
  }
  for (i = 0; i < N; i++) {
    for (k = 0; k < 3; k++) {
      for (l = 0; l < 1000; l++) {
        x = 0;
        if (data[i][k] == data[i][l] && k != l) {
          x++;
		}
	  }
	  if (x > 0) {
        data[k] += 0;
      } else {
        data[k] += data[i][k];
	  }
    }
  }
  for (i = 0; i < 1000; i++) {
    printf("%d\n", data[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:17: error: assignment to expression with array type
   22 |         data[k] += 0;
      |                 ^~
main.c:24:17: error: assignment to expression with array type
   24 |         data[k] += data[i][k];
      |                 ^~
Language: C

#include <stdio.h>

int main()
{
	int n, n[101][3], sum[101];
	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]);
	}
	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]) { sum[i] += 0;break; };
				else???sum[i] += n[i][k];
			}
		}
	}
	for (i = 0;i < n;i++)
		printf("%d", sum[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: conflicting types for 'n'; have 'int[101][3]'
    5 |         int n, n[101][3], sum[101];
      |                ^
main.c:5:13: note: previous declaration of 'n' with type 'int'
    5 |         int n, n[101][3], sum[101];
      |             ^
main.c:16:33: error: 'else' without a previous 'if'
   16 |                                 else???sum[i] += n[i][k];
      |                                 ^~~~
main.c:16:37: error: expected expression before '?' token
   16 |                                 else???sum[i] += n[i][k];
      |                                     ^