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

for i in range(int(raw_input())):
    sides = map(int, raw_input().split())
    if sides[0]**2 == sides[1]**2 + sides[2]**2 or\
       sides[1]**2 == sides[2]**2 + sides[0]**2 or\
       sides[2]**2 == sides[0]**2 + sides[1]**2:
           print "YES"
    else:
        print "NO"

Compiler output:
main.c:1:1: error: expected identifier or '(' before 'for'
    1 | for i in range(int(raw_input())):
      | ^~~
Language: C

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

int main(){
	int a,b,c,i,n;
	
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d %d",&a,&b,&c);
		
		if(a*a=b*b+c*c || b*b=c*c+a*a || c*c=a*a+b*b){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:53: error: lvalue required as left operand of assignment
   12 |                 if(a*a=b*b+c*c || b*b=c*c+a*a || c*c=a*a+b*b){
      |                                                     ^
Language: C

#include <stdio.h>

int main(void)
{
  int a ,b ,c ,i ,n;

  scanf("%d",&n);

  for(i=0;i<n;i++){

  scanf("%d %d %d",&a ,&b ,&c);

  if(a*a==b*b+c*c)
  { printf("YES\n"); }

  if else (b*b==c*c+a*a)
  { printf("YES\n"); }

  if else (c*c==a*a+b*b)
  { printf("YES\n"); }

  else
  { printf("NO\n");}
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:6: error: expected '(' before 'else'
   16 |   if else (b*b==c*c+a*a)
      |      ^~~~
      |      (
Language: C

#include<stdio.h>

int main(){
	int i,j,a,b,c,cnt,tmp;
	scanf("%d",&cnt);
	for(i=0;i<cnt;i++){
		scanf("%d %d %d",&a,&b,&c);
		if(a < b){
			tmp = a;
			a = b;
			b = tmp;
		}
		if(b < c){
			tmp = b;
			b = c;
			c = tmp;
		}
		if(a < b){
			tmp = a;
			a = b;
			b = tmp;
		}
		if(a*a = b*b + c*c) printf("YES\n");
		else printf("NO");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:24: error: lvalue required as left operand of assignment
   23 |                 if(a*a = b*b + c*c) printf("YES\n");
      |                        ^
Language: C

#include<stdio.h>

int main(){
	int i,a,b,c,cnt,tmp;
	scanf("%d",&cnt);
	for(i=0;i<cnt;i++){
		scanf("%d %d %d",&a,&b,&c);
		if(a < b){
			tmp = a;
			a = b;
			b = tmp;
		}
		if(b < c){
			tmp = b;
			b = c;
			c = tmp;
		}
		if(a < b){
			tmp = a;
			a = b;
			b = tmp;
		}
		if(a*a = b*b + c*c) printf("YES\n");
		else printf("NO");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:24: error: lvalue required as left operand of assignment
   23 |                 if(a*a = b*b + c*c) printf("YES\n");
      |                        ^
Language: C

#include<stdio.h>

int main(){

	int a,b,c,d;
	scanf("%d",&a);
	
	scanf("%d%d%d",&b,&c,&d);
	if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
		printf("YES");
	}else{
		printf("YES");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: lvalue required as left operand of assignment
    9 |         if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
      |                 ^
main.c:9:37: error: lvalue required as left operand of assignment
    9 |         if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
      |                                     ^
main.c:9:57: error: lvalue required as left operand of assignment
    9 |         if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
      |                                                         ^
Language: C

#include<stdio.h>

int main(){

	int a,b,c,d;
	scanf("%d",&a);
	
	scanf("%d%d%d",&b,&c,&d);
	if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
		printf("YES");
	}else{
		printf("NO");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: lvalue required as left operand of assignment
    9 |         if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
      |                 ^
main.c:9:37: error: lvalue required as left operand of assignment
    9 |         if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
      |                                     ^
main.c:9:57: error: lvalue required as left operand of assignment
    9 |         if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
      |                                                         ^
Language: C

#include<stdio.h>

int main(){

	int a,b,c,d;
	scanf("%d",&a);
	
	scanf("%d%d%d",&b,&c,&d);
	if((b*b = c*c + d*d) ||(c*c = d*d + b*b) ||(d*d = c*c + b*b)){
		printf("YES");
	}else{
		printf("NO");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: lvalue required as left operand of assignment
    9 |         if((b*b = c*c + d*d) ||(c*c = d*d + b*b) ||(d*d = c*c + b*b)){
      |                 ^
main.c:9:37: error: lvalue required as left operand of assignment
    9 |         if((b*b = c*c + d*d) ||(c*c = d*d + b*b) ||(d*d = c*c + b*b)){
      |                                     ^
main.c:9:57: error: lvalue required as left operand of assignment
    9 |         if((b*b = c*c + d*d) ||(c*c = d*d + b*b) ||(d*d = c*c + b*b)){
      |                                                         ^
Language: C

#include<stdio.h>
int main(void){
    int a,b,c,N,i;
    while(scanf("%d%d%d",&a,&b,&c)!=EOF){
        if(a*a==b*b+c*c){
            printf("YES\n");
        }
        if(b*b==a*a+c*c){
            printf("YES\n");
        }
        if(c*c==b*b+a*a){
            printf("YES\n");
        }
        else{
            printf("NO\n");
        }
        return 0;
}

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

#include<stdio.h>

int main(){
	int a;
	int b;
	int c;
	int d;
	int i;
	scanf("%d", &d);
	for(i = 0; i < d; i++){
		scanf("%d %d %d", &a, &b, &c);
		if(a * a = b * b + c * c){
			printf("Yes\n");
		}else if(b * b = a * a + c * c){
			printf("Yes\n");
		}else if(c * c = a * a + b * b){
			printf("Yes\n");
		}else{
			printf("No\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:26: error: lvalue required as left operand of assignment
   12 |                 if(a * a = b * b + c * c){
      |                          ^
main.c:14:32: error: lvalue required as left operand of assignment
   14 |                 }else if(b * b = a * a + c * c){
      |                                ^
main.c:16:32: error: lvalue required as left operand of assignment
   16 |                 }else if(c * c = a * a + b * b){
      |                                ^
Language: C

#include<stdio.h>

int main(){
	int a;
	int b;
	int c;
	int d;
	int i;
	scanf("%d", &d);
	for(i = 0; i < d; i++){
		scanf("%d", &a);
		scanf("%d", &b);
		scanf("%d", &c);
		if(a * a = b * b + c * c){
			printf("Yes\n");
		}else if(b * b = a * a + c * c){
			printf("Yes\n");
		}else if(c * c = a * a + b * b){
			printf("Yes\n");
		}else{
			printf("No\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:26: error: lvalue required as left operand of assignment
   14 |                 if(a * a = b * b + c * c){
      |                          ^
main.c:16:32: error: lvalue required as left operand of assignment
   16 |                 }else if(b * b = a * a + c * c){
      |                                ^
main.c:18:32: error: lvalue required as left operand of assignment
   18 |                 }else if(c * c = a * a + b * b){
      |                                ^
Language: C

#include<stdio.h>

int main(){
	int a;
	int b;
	int c;
	int d;
	int i;
	int aa;
	int bb;
	int cc;
	scanf("%d", &d);
	for(i = 0; i < d; i++){
		scanf("%d", &a);
		scanf("%d", &b);
		scanf("%d", &c);
		aa = a**;
		bb = b**;
		cc = c**;
		if(aa == bb + cc){
			printf("Yes\n");
		}else if(bb == aa + cc){
			printf("Yes\n");
		}else if(cc == aa + bb){
			printf("Yes\n");
		}else{
			printf("No\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:25: error: expected expression before ';' token
   17 |                 aa = a**;
      |                         ^
main.c:18:25: error: expected expression before ';' token
   18 |                 bb = b**;
      |                         ^
main.c:19:25: error: expected expression before ';' token
   19 |                 cc = c**;
      |                         ^
Language: C

#include<stdio.h>

int main(){
	int a;
	int b;
	int c;
	int d;
	int i;
	int aa;
	int bb;
	int cc;
	scanf("%d", &d);
	for(i = 0; i < d; i++){
		scanf("%d", &a);
		scanf("%d", &b);
		scanf("%d", &c);
		A = a;
		B = b;
		C = c;
		aa = a * a;
		bb = b * b;
		cc = c * c;
		if(aa == bb + cc){
			printf("Yes\n");
		}else if(bb == aa + cc){
			printf("Yes\n");
		}else if(cc == aa + bb){
			printf("Yes\n");
		}else{
			printf("No\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:17: error: 'A' undeclared (first use in this function)
   17 |                 A = a;
      |                 ^
main.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:17: error: 'B' undeclared (first use in this function)
   18 |                 B = b;
      |                 ^
main.c:19:17: error: 'C' undeclared (first use in this function)
   19 |                 C = c;
      |                 ^
Language: C

#include<stdio.h>

int main(){
	int a;
	int b;
	int c;
	int d;
	int i;
	scanf("%d", &d);
	for(i = 0; i < d; i++;){
		scanf("%d", &a);
		scanf("%d", &b);
		scanf("%d", &c);
		if(a * a == b * b + c * c){
			printf("Yes\n");
		}else if(b * b == a * a + c * c){
			printf("Yes\n");
		}else if(c * c == a * a + b * b){
			printf("Yes\n");
		}else{
			printf("No\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:30: error: expected ')' before ';' token
   10 |         for(i = 0; i < d; i++;){
      |            ~                 ^
      |                              )
Language: C

#include"bign.h"
bign p=19,g=2,x=9,p_1;
bign r,s,k,m;
bign hash(bign x){//
	bign hashsize=10;
	return x+hashsize;
}
int main(){
	bign one=1;
	p_1=p-one;
	printf("select a random numble:");
	cin>>k;
	printf("input message:");
	cin>>m;
	r=pow(g,k,p);
	s=(hash(m)-x*r)*inv(k,p_1)%p_1;
	printf("(r,s):");
	cout<<r<<" "<<s;
	return 0;
}

Compiler output:
main.c:1:9: fatal error: bign.h: No such file or directory
    1 | #include"bign.h"
      |         ^~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int main()
{
	
	
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d %d",&a,&b,&c);
		if(a<b){
			if(b<c){
				t=a;a=c;c=t;
			}
			else if(b>c){
				t=a;a=b;b=t;
				if(a<c){
					t=b;b=c;c=t;
				}
			}
		}else if(a>b){
			if(c>b){
				t=b;b=c;c=t;
				if(c>a){
					t=a;a=b;b=t;
				}
			}
		}
		
		if(a*a==b**b+c**c){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: 'n' undeclared (first use in this function)
    7 |         scanf("%d",&n);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=0;i<n;i++){
      |             ^
main.c:9:35: error: 'a' undeclared (first use in this function)
    9 |                 scanf("%d %d %d",&a,&b,&c);
      |                                   ^
main.c:9:38: error: 'b' undeclared (first use in this function)
    9 |                 scanf("%d %d %d",&a,&b,&c);
      |                                      ^
main.c:9:41: error: 'c' undeclared (first use in this function)
    9 |                 scanf("%d %d %d",&a,&b,&c);
      |                                         ^
main.c:12:33: error: 't' undeclared (first use in this function)
   12 |                                 t=a;a=c;c=t;
      |                                 ^
Language: C

#include <stdio.h>

int main()
{
	int a,b,c,t,i;
	
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d %d",&a,&b,&c);
		if(a<b){
			if(b<c){
				t=a;a=c;c=t;
			}
			else if(b>c){
				t=a;a=b;b=t;
				if(a<c){
					t=b;b=c;c=t;
				}
			}
		}else if(a>b){
			if(c>b){
				t=b;b=c;c=t;
				if(c>a){
					t=a;a=b;b=t;
				}
			}
		}
		
		if(a*a==b**b+c**c){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: 'n' undeclared (first use in this function)
    7 |         scanf("%d",&n);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:27: error: invalid type argument of unary '*' (have 'int')
   29 |                 if(a*a==b**b+c**c){
      |                           ^~
main.c:29:32: error: invalid type argument of unary '*' (have 'int')
   29 |                 if(a*a==b**b+c**c){
      |                                ^~
Language: C

#include <stdio.h>

int main()
{
	int a,b,c,t,i,n;
	
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d %d",&a,&b,&c);
		if(a<b){
			if(b<c){
				t=a;a=c;c=t;
			}
			else if(b>c){
				t=a;a=b;b=t;
				if(a<c){
					t=b;b=c;c=t;
				}
			}
			else{
				t=a;a=c;c=t;
			}
		}else if(a>b){
			if(c>b){
				t=b;b=c;c=t;
				if(c>a){
					t=a;a=b;b=t;
				}
			}
		}else{
			if(b<c){
				t=a;a=c;c=t
			}
		}
		
		if(a*a==b*b+c*c){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:32:44: error: expected ';' before '}' token
   32 |                                 t=a;a=c;c=t
      |                                            ^
      |                                            ;
   33 |                         }
      |                         ~
Language: C

#include <stdio.h>

int main( void ) {
	int i, n, a, b, c;

	for ( scanf( "%d", &n ); n--;  )
		scanf( "%d %d %d", &a, &b, &c );

		if ( a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b )
			puts( "YES" );
		else
			puts( "NO" );
	}

	return 0;
}

Compiler output:
main.c:15:9: error: expected identifier or '(' before 'return'
   15 |         return 0;
      |         ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

#include <stdio.h>

int main(){
int n,i;
int a,b,c;

scanf("%d",&n){
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a*a==b*b+c*c){
printf("YES");
}
else if(b*b==a*a+c*c){
printf("YES");
}
else if(c*c==a*a+b*b){
printf("YES");
}
else{
printf("NO");
}
}


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected ';' before '{' token
    7 | scanf("%d",&n){
      |               ^
      |               ;
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
    int N,a,b,c;
    scanf("%d",&N);
    while(N>0){
        scanf("%d %d %d",&a,&b,&c);
        if(a*a=b*b+c*c || b*b=c*c+a*a || c*c=a*a+b*b){
            printf("YES\n");
        }
        else{
            printf("NO\n");
        }
        N--;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:45: error: lvalue required as left operand of assignment
    7 |         if(a*a=b*b+c*c || b*b=c*c+a*a || c*c=a*a+b*b){
      |                                             ^
Language: C

#include <stdio.h>    
int main()
{
	int a;
	int i;
	int x, y, z;
	int max, M, N;
	
	scanf("%d",&a);
	for(i = 0; i < a; i++){
		scanf("%d %d %d",&x ,&y ,&z);
		if(x > y && x > z){
			max = x;
			M = y;
			N = z;
		}
		else if(y > x && y > z){
			max = y;
			M = x;
			N = z;
		}
		else{
			max = z;
			M = x;
			N = y;
		}
		if(max*max == M*M + N*N)
			printf("YES\n");
		else
			printf("NO\n");
	}

	re

Compiler output:
main.c: In function 'main':
main.c:33:9: error: 're' undeclared (first use in this function)
   33 |         re
      |         ^~
main.c:33:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:11: error: expected ';' at end of input
   33 |         re
      |           ^
      |           ;
main.c:33:9: error: expected declaration or statement at end of input
   33 |         re
      |         ^~
Language: C

#include <stdio.h>

int main(){
	int n, i, j, l1, l2, l3;
	
	scanf("%d", &n);
	i = 0;
	for (i<n){
		scanf("%d %d %d", &l1, &l2, &l3);
		if (l1*l1 == l2*l2 + l3*l3 || l2*l2 == l1*l1  +l3+l3 || l3*l3 == l1*l1 + l2*l2)
			printf("YES\n");
		else 
			printf("NO\n");
		i++;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected ';' before ')' token
    8 |         for (i<n){
      |                 ^
      |                 ;
main.c:8:17: error: expected expression before ')' token
Language: C

#include <stdio.h>

int main(){
	int n, i, j, l1, l2, l3;
	
	scanf("%d", &n);
	i = 0;
	for (i<n){
		scanf("%d %d %d", &l1, &l2, &l3);
		if (l1*l1 == l2*l2 + l3*l3 || l2*l2 == l1*l1  +l3*l3 || l3*l3 == l1*l1 + l2*l2)
			printf("YES\n");
		else 
			printf("NO\n");
		i++;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected ';' before ')' token
    8 |         for (i<n){
      |                 ^
      |                 ;
main.c:8:17: error: expected expression before ')' token
Language: C

#includ<stdio>
void judge(int *);
int main(void)
{
	int i,n,a,b,c,jud=0;
	
	scanf("%d",&n);
	for(i=1;i<=n;i++){
		scanf("%d %d %d",&a,&b,&c);
		if(a > b && a > c){
			if(a*a==b*b+c*c)
				jud=1;
		}
		else if(b > c){
			if(b*b==a*a+c*c)
				jud=1;
		}
		else{
			if(c*c==a*a+b*b)
				jud=1;
		}
		judge(&jud);
	}
	return 0;
}
void judge(int *p)
{
	if(*p==1)
		printf("YES\n");
	else
		printf("NO\n");
	*p=0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<stdio>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |         scanf("%d",&n);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includ<stdio>
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |         scanf("%d",&n);
      |         ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: In function 'judge':
main.c:29:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   29 |                 printf("YES\n");
      |                 ^~~~~~
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   31 |                 printf("NO\n");
      |                 ^~~~~~
main.c:31:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#includ<stdio.h>
void judge(int *);
int main(void)
{
	int i,n,a,b,c,jud=0;
	
	scanf("%d",&n);
	for(i=1;i<=n;i++){
		scanf("%d %d %d",&a,&b,&c);
		if(a > b && a > c){
			if(a*a==b*b+c*c)
				jud=1;
		}
		else if(b > c){
			if(b*b==a*a+c*c)
				jud=1;
		}
		else{
			if(c*c==a*a+b*b)
				jud=1;
		}
		judge(&jud);
	}
	return 0;
}
void judge(int *p)
{
	if(*p==1)
		printf("YES\n");
	else
		printf("NO\n");
	*p=0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |         scanf("%d",&n);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includ<stdio.h>
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |         scanf("%d",&n);
      |         ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: In function 'judge':
main.c:29:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   29 |                 printf("YES\n");
      |                 ^~~~~~
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   31 |                 printf("NO\n");
      |                 ^~~~~~
main.c:31:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

N = int(raw_input())
for i in range(N):
  a,b,c = sorted(map(int, raw_input().split()))
  print (a**2 + b**2 == c**2 and 'YES') or 'NO'

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = int(raw_input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | N = int(raw_input())
      |     ^~~
main.c:4:34: warning: multi-character character constant [-Wmultichar]
    4 |   print (a**2 + b**2 == c**2 and 'YES') or 'NO'
      |                                  ^~~~~
main.c:4:44: warning: multi-character character constant [-Wmultichar]
    4 |   print (a**2 + b**2 == c**2 and 'YES') or 'NO'
      |                                            ^~~~
Language: C

#include<stdio.h>

int main(){
  int a, b, c;
  while(scanf("%d %d %d", &a, &b, &c)){
    if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a){
      print("YES\n");
    } else {
      print("NO\n");
    }
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |       print("YES\n");
      |       ^~~~~
      |       printf
Language: C

#include<stdio.h>

int main(){
  int a, b, c;
  int N;
  int i;
  scanf("%d\n", &N);
  
  int ans[N];
  for(i=0;i<N;i++){
    if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a){
      ans[i] = 1;
    } else {
      ans[i] = 0;
    }
  }
  for(i=0;i<N;i++){
    if(ans[i]==1) {
      printf("YES\n");
    }else{ 
      printf("NO\n");
  }
 
  return 0;
}

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

#include<stdio.h>

int main(){
  int a, b, c;
  int N;
  int i;
  scanf("%d\n", &N);
  
  int ans[N];
  memset(x, 0, sizeof(ans));
  for(i=0;i<N;i++){
    if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a){
      ans[i] = 1;
    } else {
      ans[i] = 0;
    }
  }
  for(i=0;i<N;i++){
    if(ans[i]==1) {
      printf("YES\n");
    }else{ 
      printf("NO\n");
  }
 
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   10 |   memset(x, 0, sizeof(ans));
      |   ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'memset'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:10:3: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
   10 |   memset(x, 0, sizeof(ans));
      |   ^~~~~~
main.c:10:3: note: include '<string.h>' or provide a declaration of 'memset'
main.c:10:10: error: 'x' undeclared (first use in this function)
   10 |   memset(x, 0, sizeof(ans));
      |          ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  int a, b, c;
  int N;
  int i;
  scanf("%d\n", &N);
  
  int ans[N];
  memset(x, 0, sizeof(ans));
  for(i=0;i<N;i++){
    if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a){
      ans[i] = 1;
    } else {
      ans[i] = 0;
    }
  }
  for(i=0;i<N;i++){
    if(ans[i]==1) {
      printf("YES\n");
    }else{ 
      printf("NO\n");
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   10 |   memset(x, 0, sizeof(ans));
      |   ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'memset'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:10:3: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
   10 |   memset(x, 0, sizeof(ans));
      |   ^~~~~~
main.c:10:3: note: include '<string.h>' or provide a declaration of 'memset'
main.c:10:10: error: 'x' undeclared (first use in this function)
   10 |   memset(x, 0, sizeof(ans));
      |          ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
  int a, b, c;

  while(scanf("%d %d %d", &a, &b, &c) != EOF){
    if(a > b && a > c){
      if(a * a == b * b + c * c){
        printf("YES\n");
      }
    }else if(b > a && b > c){
      if(b * b == a * a + c * c){
        printf("YES\n");
      }
    }else if(c < a && c < b){
      if(c * c == a * a + c * c){
        printf("YES\n");
      }
    }else{
      pritnf("NO\n");
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:7: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |       pritnf("NO\n");
      |       ^~~~~~
      |       printf
Language: C

include<stdio.h>
int main(){
  int a, b, c, i;
  scanf("%d", &i);

  for(; i != 0; i--){
    scanf("%d %d %d", &a, &b, &c);
    if(a > b && a > c){
      if(a * a == b * b + c * c){
        printf("YES\n");
      }
    }else if(b > a && b > c){
      if(b * b == a * a + c * c){
        printf("YES\n");
      }
    }else if(c > a && c > b){
      if(c * c == a * a + b * b){
        printf("YES\n");
      }
    }else{
      printf("NO\n");
    }
  }
  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 a, b, c, n, i;
  scanf("%d", &n);

  for(i = 0; i < n; i++){
    scanf("%d %d %d", &a, &b, &c);
    if(a > b && a > c){
      if(a * a == b * b + c * c){
        printf("YES\n");
      }
    }else if(b > a && b > c){
      if(b * b == a * a + c * c){
        printf("YES\n");
      }
    }else if(c > a && c > b){
      if(c * c == a * a + b * b){
        printf("YES\n");
      }
    }else{
      printf("NO\n");
    }
  }
  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,values[3];
	scanf("%d\n",&i);

	for(j=0;j<i;j++)
	{
		scanf("%d %d %d",&values[0],&values[1],&values[2]);
		sort_aoj_volume0003(values);
		if(values[0]*values[0] + values[1]*values[1] == values[2]*values[2])
		{
			printf("YES\n");
		}
		else
		{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: implicit declaration of function 'sort_aoj_volume0003' [-Wimplicit-function-declaration]
   11 |                 sort_aoj_volume0003(values);
      |                 ^~~~~~~~~~~~~~~~~~~
Language: C

#include <stdio.h>
main()
{	int N,i,a,b,c;
	scanf("%d",&N);
	for(i=0;i<N;i++){
		scanf("%d%d%d",&a,&b,&c);
		if(a>b && a>c)
			a*a = b*b + c*c ? puts("YES") : puts("NO");
		else if(b>a && b>c)
			b*b = a*a + c*c ? puts("YES") : puts("NO");
		else
			c*c = a*a + b*b ? puts("YES") : puts("NO");
	}
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:29: error: lvalue required as left operand of assignment
    8 |                         a*a = b*b + c*c ? puts("YES") : puts("NO");
      |                             ^
main.c:10:29: error: lvalue required as left operand of assignment
   10 |                         b*b = a*a + c*c ? puts("YES") : puts("NO");
      |                             ^
main.c:12:29: error: lvalue required as left operand of assignment
   12 |                         c*c = a*a + b*b ? puts("YES") : puts("NO");
      |                             ^
Language: C

#include <stdio.h>
int main(void)
{	int N,i,a,b,c;
	scanf("%d",&N);
	for(i=0;i<N;i++){
		scanf("%d%d%d",&a,&b,&c);
		if(a>b && a>c)
			a*a = b*b + c*c ? puts("YES") : puts("NO");
		else if(b>a && b>c)
			b*b = a*a + c*c ? puts("YES") : puts("NO");
		else
			c*c = a*a + b*b ? puts("YES") : puts("NO");
	}
}

Compiler output:
main.c: In function 'main':
main.c:8:29: error: lvalue required as left operand of assignment
    8 |                         a*a = b*b + c*c ? puts("YES") : puts("NO");
      |                             ^
main.c:10:29: error: lvalue required as left operand of assignment
   10 |                         b*b = a*a + c*c ? puts("YES") : puts("NO");
      |                             ^
main.c:12:29: error: lvalue required as left operand of assignment
   12 |                         c*c = a*a + b*b ? puts("YES") : puts("NO");
      |                             ^
Language: C

#include <stdio.h>
int main()
{
	int n;
	int a,b,c;
	
	scanf("%d",&n);

	for(i=0;i<n;i++){
		if(((a*a) == (b*b+c*c) || (b*b) == (c*c+a*a) || (c*c) == (a*a+b*b))
			printf("YES\n");
		else
			printf("NO\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'i' undeclared (first use in this function)
    9 |         for(i=0;i<n;i++){
      |             ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:84: error: expected ')' before 'printf'
   10 |                 if(((a*a) == (b*b+c*c) || (b*b) == (c*c+a*a) || (c*c) == (a*a+b*b))
      |                   ~                                                                ^
      |                                                                                    )
   11 |                         printf("YES\n");
      |                         ~~~~~~                                                      
main.c:14:9: error: expected expression before '}' token
   14 |         }
      |         ^
Language: C

#include <stdio.h>
int main()
{
	int n;
	int a,b,c;
	
	scanf("%d",&n);

	for(i=0;i<n;i++){
		if((((a*a) == (b*b+c*c)) || ((b*b) == (c*c+a*a)) || ((c*c) == (a*a+b*b)))
			printf("YES\n");
		else
			printf("NO\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'i' undeclared (first use in this function)
    9 |         for(i=0;i<n;i++){
      |             ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:90: error: expected ')' before 'printf'
   10 |                 if((((a*a) == (b*b+c*c)) || ((b*b) == (c*c+a*a)) || ((c*c) == (a*a+b*b)))
      |                   ~                                                                      ^
      |                                                                                          )
   11 |                         printf("YES\n");
      |                         ~~~~~~                                                            
main.c:14:9: error: expected expression before '}' token
   14 |         }
      |         ^
Language: C

#include <stdio.h>
int main()
{
	int n,i;
	int a,b,c;
	
	scanf("%d",&n);

	for(i=0;i<n;i++){
		if(((a*a) == (b*b+c*c) || (b*b) == (c*c+a*a) || (c*c) == (a*a+b*b))
			printf("YES\n");
		else
			printf("NO\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:84: error: expected ')' before 'printf'
   10 |                 if(((a*a) == (b*b+c*c) || (b*b) == (c*c+a*a) || (c*c) == (a*a+b*b))
      |                   ~                                                                ^
      |                                                                                    )
   11 |                         printf("YES\n");
      |                         ~~~~~~                                                      
main.c:14:9: error: expected expression before '}' token
   14 |         }
      |         ^
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
    long long int a,b,c,d,n;

    scanf("%lld",&n);
    if(n<=1000)
    {
        for(w=1;w<=n;w++)
         {
            scanf("%lld%lld%lld",&a,&b,&d);

            if(a<=1000&&b<=1000&&d<=1000)
             {
                c=sqrt(a*a+b*b);

                if(c==d)
                    printf("YES\n");
                else
                    printf("NO\n");
             }

        }

      }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: 'w' undeclared (first use in this function)
   10 |         for(w=1;w<=n;w++)
      |             ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(void) {
	int  tmp;
	int n;
	scanf("%d", &n);
	
	for(int i=0; i<n; i++){
		int  a=0,b=0,c=0;
	
		scanf("%d %d %d", &a, &b, &c);
				
		if(a<b) {tmp=a; a=b; b=tmp;}
		if(a<c) {tmp=a; a=c; c=tmp;}	
		
		
		
		if( a == sqrt(b*b + c*c) ) printf("YES\n");
		else printf("NO\n");
		
	}
	
	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/ccTEOM5K.o: in function `main':
main.c:(.text+0xd8): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
Language: C

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

int main(void) {
	int tmp;
	int n;
	scanf("%d", &n);
	
	for(int i=0; i<n; i++){
		int  a=0,b=0,c=0;
	
		scanf("%d %d %d", &a, &b, &c);
				
		if(a<b) {tmp=a; a=b; b=tmp;}
		if(a<c) {tmp=a; a=c; c=tmp;}	
		
		
		
		if( a == sqrt(b*b + c*c) ) printf("YES\n");
		else printf("NO\n");
		
	}
	
	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/cctvMuS3.o: in function `main':
main.c:(.text+0xd8): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>
#define DETA 1000
int main(void)
{
  int x[1000] = {0}; 
  int y[1000] = {0};
  int z[1000] = {0};
  int i,j;

  scanf("%d", &i);

  for(j=0; j<i; j++){
  scanf("%d %d %d", &x[j], &y[j], &z[j]);
  }

  for(j=0; j<i; j++){
    if(x[j]*x[j] == y[j]*y[j] + z[j]*z[j] || y[j]*y[j] == x[j]*x[j] + z[j]*z[j] || z[j]*z[j] == x[j]*x[j] + y[j]*y[j]){
      printf("YES\n");
    }else{
      printf("NO\n");
    }
  }

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

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

int main(){

  int i,n,x[1000],y[1000],z[1000];

  
  
  scanf("%d",&i);
  

  for(n=0;n<i;++n){
    scanf("%d %d %d",&x[n],&y[n],&z[n]);

  }
  for(n=0;n<i;++n){
    x[n]=x[n]*x[n]+y[n]*y[n];

    z[n]=z[n]*z[n];

    if(x[n] == z[n]){
      printf("YES");
    }
    else{
      printf("NO");
    }
    return 0;    
}

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

#include<stdio.h>
main(){
  int a,b,c,N,i;
  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d %d %d",&a,&b,&c);
    if(c>=a &&c>=b){
    if(c*c==a*a+b*b){
      printf("YES\n");
    }
    else{
      printf("NO\n");
    }
    }
    if(b>=a && b>=c){
      if(b*b==a*a+c*c){
	printf("YES\n");
      }
      else{
	prinef("NO\n");
      }
    }
    if(a>=b && a>=c){
      if(a*a==b*b+c*c){
	printf("YES\n");
      }
      else{
	printf("NO\n");
      }
    }
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:20:9: error: implicit declaration of function 'prinef'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |         prinef("NO\n");
      |         ^~~~~~
      |         printf
Language: C

#include<stdio.h>
main(){
  int a,b,c,N,i;
  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d %d %d",&a,&b,&c);
    if(c>=a &&c>=b){
    if(c*c==a*a+b*b){
      printf("YES\n");
    }
    else{
      printf("NO\n");
    }
    }
    else if(b>=a && b>=c){
      if(b*b==a*a+c*c){
	printf("YES\n");
      }
      else{
	prinef("NO\n");
      }
    }
    else if(a>=b && a>=c){
      if(a*a==b*b+c*c){
	printf("YES\n");
      }
      else{
	printf("NO\n");
      }
    }
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:20:9: error: implicit declaration of function 'prinef'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |         prinef("NO\n");
      |         ^~~~~~
      |         printf
Language: C++

#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
    int n;
    cin>>n;
    while (n--)
        {
            int a,b,c;
            if (a*a + b*b =c*c)
            
                cout<<"YES";
                else 
                    cout<<"NO";
            
        }
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:21: error: lvalue required as left operand of assignment
   10 |             if (a*a + b*b =c*c)
      |                 ~~~~^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
    int n;
    cin>>n;
    while (n--)
        {
            int a,b,c;
            cin>>a>>b>>c;
            if (a*a + b*b =c*c)
            
                cout<<"YES";
                else 
                    cout<<"NO";
            
        }
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:21: error: lvalue required as left operand of assignment
   11 |             if (a*a + b*b =c*c)
      |                 ~~~~^~~~~
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int N;

int main(){
    cin>>N;
    int a[N][3];
    rep(i,N){
        rep(j,3){
            cin>>a[i][j];
        }
    }
    rep(i,N){
        sort(a[i],a[i]+3);
        if(pow(a[i][0],2)+pow(a[i][1],2)==pow(a[i[2],2]){
            out("Yes");
        }
        else{
            out("No");
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:31:50: error: invalid types 'int[int]' for array subscript
   31 |         if(pow(a[i][0],2)+pow(a[i][1],2)==pow(a[i[2],2]){
      |                                                  ^
a.cc:31:57: error: expected ')' before '{' token
   31 |         if(pow(a[i][0],2)+pow(a[i][1],2)==pow(a[i[2],2]){
      |           ~                                             ^
      |                                                         )
a.cc:37:5: error: expected primary-expression before '}' token
   37 |     }
      |     ^
Language: C++

#include <iostream>
#include <cstdlib>
#include <stdio.h>
#include <cmath>

using namespace std;


int main(){
    int a, b, c;
    char* str;
    str = (char*)malloc(sizeof(char) * 50);

    if(fgets(str, 50, stdin) == NULL) return 0; // 読み捨て

    while(fgets(str, 50, stdin) != NULL) {
        if(!strcmp("", str)) break;

        sscanf(str, "%d%d%d", &a, &b, &c);
        a = pow(a, 2);
        b = pow(b, 2);
        c = pow(c, 2);

        cout << ((a + b == c || b + c == a || b + c == a) ? "YES" : "NO") << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'strcmp' was not declared in this scope
   17 |         if(!strcmp("", str)) break;
      |             ^~~~~~
a.cc:5:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include <cmath>
  +++ |+#include <cstring>
    5 |
Language: C++

#include <stdio.h>

void right_triangle(int a, int b, int c)
{
    if ((a * a + b * b = c * c) || (a * a + c * c = b * b) || (b * b + c * c = a * a)) {
        printf("YES\n");
    }
    else {
        printf("NO\n");
    }
}

int main(void)
{
    int n, a, b, c;
    scanf("%d", &n);
    for (int i = 0; i < n; ++i) {
        scanf("%d %d %d", &a, &b, &c);
        right_triangle(a, b, c);
    }    
    return 0;
}

Compiler output:
a.cc: In function 'void right_triangle(int, int, int)':
a.cc:5:16: error: lvalue required as left operand of assignment
    5 |     if ((a * a + b * b = c * c) || (a * a + c * c = b * b) || (b * b + c * c = a * a)) {
      |          ~~~~~~^~~~~~~
a.cc:5:43: error: lvalue required as left operand of assignment
    5 |     if ((a * a + b * b = c * c) || (a * a + c * c = b * b) || (b * b + c * c = a * a)) {
      |                                     ~~~~~~^~~~~~~
a.cc:5:70: error: lvalue required as left operand of assignment
    5 |     if ((a * a + b * b = c * c) || (a * a + c * c = b * b) || (b * b + c * c = a * a)) {
      |                                                                ~~~~~~^~~~~~~
Language: C++

#include <stdio.h>

char divide(int math, int english, int japanese);
char class;

int main(void)
{
    int dataset;
    int math, english, japanese;

    while (1){
        scanf("%d", &dataset);
        if (dataset == 0){
            break;
        } else {
            while (dataset--){
                scanf("%d %d %d", &math, &english, &japanese);
                class = divide(math, english, japanese);
                printf("%c\n", class);
            }
        }
    }

    return 0;
}

char divide(int math, int english, int japanese)
{
    int sum = math + english + japanese;

    if (math == 100 || english == 100 || japanese == 100){
        class = 'A';
    } else if (math + english >= 90 * 2){
        class = 'A';
    } else if (sum >= 80 * 3){
        class = 'A';
    } else if (sum >= 70 * 3){
        class = 'B';
    } else if (sum >= 50 * 3 && (math >= 80 || english >= 80)){
        class = 'B';
    } else {
        class = 'C';
    }

    return class;
}

Compiler output:
a.cc:4:11: error: expected identifier before ';' token
    4 | char class;
      |           ^
a.cc:4:1: error: multiple types in one declaration
    4 | char class;
      | ^~~~
a.cc:4:11: error: declaration does not declare anything [-fpermissive]
    4 | char class;
      |           ^
a.cc: In function 'int main()':
a.cc:18:17: error: expected primary-expression before 'class'
   18 |                 class = divide(math, english, japanese);
      |                 ^~~~~
a.cc:19:32: error: expected primary-expression before 'class'
   19 |                 printf("%c\n", class);
      |                                ^~~~~
a.cc: In function 'char divide(int, int, int)':
a.cc:32:9: error: expected primary-expression before 'class'
   32 |         class = 'A';
      |         ^~~~~
a.cc:34:9: error: expected primary-expression before 'class'
   34 |         class = 'A';
      |         ^~~~~
a.cc:36:9: error: expected primary-expression before 'class'
   36 |         class = 'A';
      |         ^~~~~
a.cc:38:9: error: expected primary-expression before 'class'
   38 |         class = 'B';
      |         ^~~~~
a.cc:40:9: error: expected primary-expression before 'class'
   40 |         class = 'B';
      |         ^~~~~
a.cc:42:9: error: expected primary-expression before 'class'
   42 |         class = 'C';
      |         ^~~~~
a.cc:45:12: error: expected primary-expression before 'class'
   45 |     return class;
      |            ^~~~~
a.cc:45:11: error: expected ';' before 'class'
   45 |     return class;
      |           ^~~~~~
      |           ;
a.cc:45:12: error: expected primary-expression before 'class'
   45 |     return class;
      |            ^~~~~
Language: C++

#include <stdio.h>

enum {YES, NO} yn;

int tri_judge(int x, int y, int z);
int pow2(int x);

int main(void)
{
    int dataset;
    scanf("%d", &dataset);

    int side1, side2, side3;
    while (dataset--){
        scanf("%d %d %d", &side1, &side2, &side3);
        yn = tri_judge(side1, side2, side3);
        if (yn == YES){
            printf("YES\n");
        } else {
            printf("NO\n");
        }

    }

    return 0;
}

int tri_judge(int x, int y, int z)
{
    if (pow2(x) == pow2(y) + pow2(z)){
        yn = YES;
    } else if (pow2(y) == pow2(z) + pow2(x)){
        yn = YES;
    } else if (pow2(z) == pow2(x) + pow2(y)){
        yn = YES;
    } else {
        yn = NO;
    }

    return yn;
}

int pow2(int x)
{
    return x * x;
}

Compiler output:
a.cc:3:16: warning: built-in function 'yn' declared as non-function [-Wbuiltin-declaration-mismatch]
    3 | enum {YES, NO} yn;
      |                ^~
a.cc: In function 'int main()':
a.cc:16:23: error: invalid conversion from 'int' to '<unnamed enum>' [-fpermissive]
   16 |         yn = tri_judge(side1, side2, side3);
      |              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
      |                       |
      |                       int
Language: C++

#include <stdio.h>

enum {YES, NO} y_n;

int tri_judge(int x, int y, int z);
int pow2(int x);

int main(void)
{
    int dataset;
    scanf("%d", &dataset);

    int side1, side2, side3;
    while (dataset--){
        scanf("%d %d %d", &side1, &side2, &side3);
        y_n = tri_judge(side1, side2, side3);
        if (y_n == YES){
            printf("YES\n");
        } else {
            printf("NO\n");
        }

    }

    return 0;
}

int tri_judge(int x, int y, int z)
{
    if (pow2(x) == pow2(y) + pow2(z)){
        y_n = YES;
    } else if (pow2(y) == pow2(z) + pow2(x)){
        y_n = YES;
    } else if (pow2(z) == pow2(x) + pow2(y)){
        y_n = YES;
    } else {
        y_n = NO;
    }

    return y_n;
}

int pow2(int x)
{
    return x * x;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: invalid conversion from 'int' to '<unnamed enum>' [-fpermissive]
   16 |         y_n = tri_judge(side1, side2, side3);
      |               ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
      |                        |
      |                        int
Language: C++

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

bool right_triangle(int x, int y, int z); 

int main(void)
{
    int n, a, b, c;
    scanf("%d",&n);
    for(int i = 0; i < n; i++){
        scanf(%d %d %d, &a, &b, &c);
        if(right_triangle(a, b, c)){
            printf("YES\n");
        }else{
            printf("NO/n");
        }
    return 0;
}

bool right_triangle(int x, int y, int z)
{
    if(x*x + y*y = z*z || x*x +  z*z = y*y || z*z+ y*y = x*x ){
        return true;
    }
    return false;
}        

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected primary-expression before '%' token
   11 |         scanf(%d %d %d, &a, &b, &c);
      |               ^
a.cc:11:16: error: 'd' was not declared in this scope
   11 |         scanf(%d %d %d, &a, &b, &c);
      |                ^
a.cc:21:1: error: a function-definition is not allowed here before '{' token
   21 | {
      | ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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

bool right_triangle(int x, int y, int z); 

int main(void)
{
    int n, a, b, c;
    scanf("%d",&n);
    for(int i = 0; i < n; i++){
        scanf("%d %d %d", &a, &b, &c);
        if(right_triangle(a, b, c)){
            printf("YES\n");
        }else{
            printf("NO/n");
        }
    }
    return 0;
}

bool right_triangle(int x, int y, int z)
{
    if(x*x + y*y = z*z || x*x +  z*z = y*y || z*z+ y*y = x*x ){
        return true;
    }
    return false;
}        

Compiler output:
a.cc: In function 'bool right_triangle(int, int, int)':
a.cc:23:44: error: lvalue required as left operand of assignment
   23 |     if(x*x + y*y = z*z || x*x +  z*z = y*y || z*z+ y*y = x*x ){
      |                                        ~~~~^~~~~~~~~~~