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

#include <stdio.h>

int main(){
  int n,i,a[2];

  scanf("%d",&n);

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

    if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) printf("YES\n");
    else printf("NO\n");
  }

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:13:93: error: lvalue required as left operand of assignment
   13 |     if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) printf("YES\n");
      |                                                                                             ^
Language: C

#include <stdio.h>

int main(){
  int n,i,a[2];

  scanf("%d",&n);

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

    if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES");
    else puts("NO");
  }

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:13:93: error: lvalue required as left operand of assignment
   13 |     if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES");
      |                                                                                             ^
Language: C

#include <stdio.h>

int main(){
  int n,i,a[3];

  scanf("%d",&n);

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

    if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES");
    else puts("NO");
  }

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:13:93: error: lvalue required as left operand of assignment
   13 |     if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES");
      |                                                                                             ^
Language: C

#include <stdio.h>

int main(){
  int n,i,a[3];

  scanf("%d",&n);

  for(i=0;i<n;i++){
    scanf("%d%d%d",&a[0],&a[1],&a[2]);
    if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES");
    else puts("NO");
  }

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:10:93: error: lvalue required as left operand of assignment
   10 |     if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES");
      |                                                                                             ^
Language: C

#include <stdio.h>

int main(){
  int n,i,a[3];

  scanf("%d",&n);

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

  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:11:62: error: lvalue required as left operand of assignment
   11 |       a[0]*a[0]+a[2]*a[2]=a[1]*a[1] ||    a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) printf("YES\n");
      |                                                              ^
Language: C

#include <stdio.h>

int main(){
	
	int n,k,i,j,temp;
	scanf("%d",&j);
	
	int x[3];
	for(k=0;k<j;k++){
		scanf("%d %d %d",x[0],x[1],x[2]);
				
		for (i = 0; i < 3 - 1; i++) {
        for (j = 3 - 1; j > i; j--) {
            if (x[j - 1] > x[j]) {  /* ツ前ツづ個要ツ素ツづ個陛サツつェツ妥・ツつォツつゥツづつスツづァ */
                temp = x[j];        /* ツ古ーツ環キツつキツづゥ */
                x[j] = x[j - 1];
                x[j - 1]= temp;
            }
        }	
			
			if(x[3]*x[3]==x[1]*x[1]+x[2]*x[2]){
				prinitf("YES\n");
			}else {
				printf("NO\n");
			}
		}
		
			return 0;
			}

Compiler output:
main.c: In function 'main':
main.c:22:33: error: implicit declaration of function 'prinitf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   22 |                                 prinitf("YES\n");
      |                                 ^~~~~~~
      |                                 printf
main.c:29:25: error: expected declaration or statement at end of input
   29 |                         }
      |                         ^
Language: C

#include <stdio.h>

int main(){
	
	int n,k,i,j,temp;
	scanf("%d",&j);
	
	int x[3];
	for(k=0;k<j;k++){
		scanf("%d %d %d",&x[0],&x[1],&x[2]);
				
		for (i = 0; i < 3 - 1; i++) {
        for (j = 3 - 1; j > i; j--) {
            if (x[j - 1] > x[j]) {  /* ツ前ツづ個要ツ素ツづ個陛サツつェツ妥・ツつォツつゥツづつスツづァ */
                temp = x[j];        /* ツ古ーツ環キツつキツづゥ */
                x[j] = x[j - 1];
                x[j - 1]= temp;
            }
        }	
			
			if(x[3]*x[3]==x[1]*x[1]+x[2]*x[2]){
				prinitf("YES\n");
			}else {
				printf("NO\n");
			}
		}
		
			return 0;
			}

Compiler output:
main.c: In function 'main':
main.c:22:33: error: implicit declaration of function 'prinitf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   22 |                                 prinitf("YES\n");
      |                                 ^~~~~~~
      |                                 printf
main.c:29:25: error: expected declaration or statement at end of input
   29 |                         }
      |                         ^
Language: C

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

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

#include <stdio.h>

int maint(void) {
  int t, i, a, b, c, d;
  scanf("%d", &t);

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

Compiler output:
main.c: In function 'maint':
main.c:18:5: error: expected '}' before 'else'
   18 |     else {
      |     ^~~~
Language: C

#include <stdio.h>

int main(void) {
  int t, i, a, b, c, d;
  scanf("%d", &t);

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

Compiler output:
main.c: In function 'main':
main.c:18:5: error: expected '}' before 'else'
   18 |     else {
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:22: error: 'ac' undeclared (first use in this function); did you mean 'c'?
    7 | if(a*a+b*b-c*c==0||a*ac*c-b*b==0||b*b+c*c-a*a==0)
      |                      ^~
      |                      c
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main()
{

	int i,a,b[100],c,d,e;
	scanf("%d",&a);
	for(i=0;i<a;i++)
	{
		scnaf("%d%d%d",&c,&d,&e);
		if(c+d>e)
			b[i]=0;
		else
			b[i]=1;
	}
	for(i=0;i<a;i++)
	{
		if(b[i]==0)
			printf("YES\n");
		else
			printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |                 scnaf("%d%d%d",&c,&d,&e);
      |                 ^~~~~
      |                 scanf
Language: C

#include<stdio.h>

__int64 i,j,n,a[5];

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

Compiler output:
main.c:3:1: error: unknown type name '__int64'; did you mean '__int64_t'?
    3 | __int64 i,j,n,a[5];
      | ^~~~~~~
      | __int64_t
Language: C

#include<stdio.h>

__int64 i,j,n,a[5];

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

Compiler output:
main.c:3:1: error: unknown type name '__int64'; did you mean '__int64_t'?
    3 | __int64 i,j,n,a[5];
      | ^~~~~~~
      | __int64_t
Language: C

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

  scanf("&d",&n);
  for(i=0;i<n;i++)
    {
      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))
	{printf("YES");}    
      else{printf("NO");}
    }
    return 0;
  
}
  

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

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

  scanf("%d",&n);
  for(i=0;i<n;i++)
    {
      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))
	{printf("YES");}    
      else{printf("NO");}
    }
    return 0;
  
}
  

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

int main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO":"YES")a*=a,b*=b,c*=c;}

Compiler output:
main.c: In function 'main':
main.c:1:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
    1 | int main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO":"YES")a*=a,b*=b,c*=c;}
      |     ^~~~
main.c:1:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:5: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | int main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO":"YES")a*=a,b*=b,c*=c;}
      |                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO":"YES")a*=a,b*=b,c*=c;}
main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | int main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO":"YES")a*=a,b*=b,c*=c;}
      |                     ^~~~~
main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:59: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | int main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO":"YES")a*=a,b*=b,c*=c;}
      |                                                           ^~~~
main.c:1:59: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:97: error: expected ')' before 'a'
    1 | int main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO":"YES")a*=a,b*=b,c*=c;}
      |                    ~                                                                            ^
      |                                                                                                 )
main.c:1:112: error: expected expression before '}' token
    1 | int main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO":"YES")a*=a,b*=b,c*=c;}
      |                                                                                                                ^
Language: C

main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                 ^~~~
main.c:1:23: error: expected ';' before ')' token
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                       ^
      |                       ;
main.c:1:23: error: expected expression before ')' token
main.c:1:25: error: implicit declaration of function 'scnaf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                         ^~~~~
main.c:1:50: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                                                  ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
main.c:1:88: error: expected ';' before ')' token
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                                                                                        ^
      |                                                                                        ;
main.c:1:88: error: expected statement before ')' token
Language: C

main(a,b,c){for((gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c){for((gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:18: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for((gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                  ^~~~
main.c:1:26: error: implicit declaration of function 'scnaf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for((gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                          ^~~~~
main.c:1:51: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for((gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                                                   ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | main(a,b,c){for((gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
Language: C

main(a,b,c){for(gets();scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c){for(gets();scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets();scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                 ^~~~
main.c:1:24: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets();scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,c){for(gets();scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
main.c:1:24: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b,c){for(gets();scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                        ^~~~~
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:49: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets();scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                                                 ^~~~
main.c:1:49: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

main(a,b,c){for(gets(a);~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c){for(gets(a);~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets(a);~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                 ^~~~
main.c:1:26: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets(a);~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,c){for(gets(a);~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
main.c:1:26: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b,c){for(gets(a);~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                          ^~~~~
main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:51: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(gets(a);~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                                                   ^~~~
main.c:1:51: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c;puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c;puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c;puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c;puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c;puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:54: error: expected ')' before ';' token
    1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c;puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                                    ~                 ^
      |                                                      )
main.c:1:94: error: expected ';' before 'a'
    1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c;puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                                                                                              ^
      |                                                                                              ;
main.c:1:109: error: expected expression before '}' token
    1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c;puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |                                                                                                             ^
main.c:1:109: error: expected expression before '}' token
Language: C

main(a,b,c,d){
	d=10;
	for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
	return 0;
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c,d){
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:3:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |         for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,c,d){
main.c:3:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |         for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
      |             ^~~~~
main.c:3:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:57: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    3 |         for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
      |                                                         ^~~~
main.c:3:57: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:3:110: error: expected ';' before ')' token
    3 |         for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
      |                                                                                                              ^
      |                                                                                                              ;
main.c:3:110: error: expected statement before ')' token
Language: C

main(a,b,c,d){
	d=10;
	for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
	return 0;
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c,d){
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:3:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |         for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,c,d){
main.c:3:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |         for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
      |             ^~~~~
main.c:3:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:57: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    3 |         for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
      |                                                         ^~~~
main.c:3:57: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:3:111: error: expected statement before ')' token
    3 |         for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
      |                                                                                                               ^
Language: C

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

int judge(double a,double b,double c){
  int j=0;
  if(a*a==b*b+c*c)) j=1;
 else if(b*b==a*a+c*c) j=1;
 else if(c*c==a*a+b*b) j=1;
 else ;
return j;
}



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

  int tri[n][3];
  
  int i=0;
  for(i;i<n;i++){
      scanf("%d %d %d",&tri[i][0],&tri[i][1],&tri[i][2]);
	}
  i=0;
  for(i;i<n;i++){
    int j=0;
    j=judge(tri[i][0],tri[i][1],tri[i][2]);
    
    if(j==1)
      printf("YES");
    else
      printf("NO");
  }
}

Compiler output:
main.c: In function 'judge':
main.c:6:19: error: expected statement before ')' token
    6 |   if(a*a==b*b+c*c)) j=1;
      |                   ^
main.c:7:2: error: 'else' without a previous 'if'
    7 |  else if(b*b==a*a+c*c) j=1;
      |  ^~~~
Language: C

#include<stdio.h>
int  k(int a,int b,int c);
void r(int *a,int *b,int *c);
main()
{
int i,a;
int b[1000],c[1000],d[1000],flag;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d%d%d",&b[i],&c[i],&d[i]);
}
for(i=0;i<a;i++){
flag=k(b[i],c[i],d[i]);
if(flag<0) printf("YES\n");
else printf("NO\n");
}
}
int k(int a,int b,int c){
r(&a,&b,&c);
if(c*c==a*a+b*b) return -1;
else return 0;
}


void r(int *a,int *b,int *c){
int k;
if(a<b) {
if(b<c) return;
else(b>c){
b=k;
c=b; 
k=c;
}
}
if(b<a) {
if(c>a) return;
else(c<a) {
a=k;
c=a;
k=a;
}
}
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main()
      | ^~~~
main.c: In function 'r':
main.c:29:10: error: expected ';' before '{' token
   29 | else(b>c){
      |          ^
      |          ;
main.c:37:10: error: expected ';' before '{' token
   37 | else(c<a) {
      |          ^~
      |          ;
Language: C

// aoj-0003.c

#include <stdio.h>

int main() {
	int i, j, lcnt;
	int tri[3], temp;
	
	scanf("%d", &lcnt);	// Get how many times to loop
	
	for(i=0; i<lcnt; ++i) {
		scanf("%d %d %d", &tri[0], &tri[1], &tri[2]);
		
		for(j=(3-1); j>0; --j;) {
			// Bubble Sort lengths of lines
			if(trii[i] < tri[i-1]) {
				temp = tri[i-1];
				tri[i] = tri[i-1];
			}
		}
		
		if ((tri[0]^2 + tri[1]^2) == tri[2]^2) {
			printf("YES\n");
		} else {
			printf("NO\n");
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:38: error: expected ')' before ';' token
   14 |                 for(j=(3-1); j>0; --j;) {
      |                    ~                 ^
      |                                      )
main.c:16:28: error: 'trii' undeclared (first use in this function); did you mean 'tri'?
   16 |                         if(trii[i] < tri[i-1]) {
      |                            ^~~~
      |                            tri
main.c:16:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

// aoj-0003.c

#include <stdio.h>

int main() {
	int i, j, lcnt;
	int tri[3], temp;
	
	scanf("%d", &lcnt);	// Get how many times to loop
	
	for(i=0; i<lcnt; ++i) {
		scanf("%d %d %d", &tri[0], &tri[1], &tri[2]);
		
		for(j=(3-1); j>0; --j;) {
			// Bubble Sort lengths of lines
			if(tri[i] < tri[i-1]) {
				temp = tri[i-1];
				tri[i] = tri[i-1];
			}
		}
		
		if ((tri[0]^2 + tri[1]^2) == tri[2]^2) {
			printf("YES\n");
		} else {
			printf("NO\n");
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:38: error: expected ')' before ';' token
   14 |                 for(j=(3-1); j>0; --j;) {
      |                    ~                 ^
      |                                      )
Language: C

#include <stdio.h>

int main(void){
	int a,b,c,j,t;
	whie(scanf("%d %d %d",&a,&b,&c)==3){
		if(a<b) t=a, a=b, b=t;
		if(b<c) t=c, c=b, b=t;
		if(c*c!=b*b+a*a) printf("NO\n");
		else printg("YES\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'whie' [-Wimplicit-function-declaration]
    5 |         whie(scanf("%d %d %d",&a,&b,&c)==3){
      |         ^~~~
main.c:5:44: error: expected ';' before '{' token
    5 |         whie(scanf("%d %d %d",&a,&b,&c)==3){
      |                                            ^
      |                                            ;
Language: C

#include <stdio.h>

int main(void){
	int a,b,c,j,t;
	while(scanf("%d %d %d",&a,&b,&c)==3){
		if(a<b) t=a, a=b, b=t;
		if(b<c) t=c, c=b, b=t;
		if(c*c!=b*b+a*a) printf("NO\n");
		else printg("YES\n");
	}
	return 0;
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
    6 |         a = n*malloc(sizeof(int));
      |               ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:6:15: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
    6 |         a = n*malloc(sizeof(int));
      |               ^~~~~~
main.c:6:15: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:6:14: error: invalid operands to binary * (have 'int' and 'void *')
    6 |         a = n*malloc(sizeof(int));
      |              ^~~~~~~~~~~~~~~~~~~~
      |               |
      |               void *
main.c:7:14: error: invalid operands to binary * (have 'int' and 'void *')
    7 |         b = n*malloc(sizeof(int));
      |              ^~~~~~~~~~~~~~~~~~~~
      |               |
      |               void *
main.c:8:14: error: invalid operands to binary * (have 'int' and 'void *')
    8 |         c = n*malloc(sizeof(int));
      |              ^~~~~~~~~~~~~~~~~~~~
      |               |
      |               void *
Language: C

#include <cstdio>

int main() {
	int a,b,c,n;
	scanf("%d",&n);

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

Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C

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

#define MAX(a,b) (a > b ? a : b)
int main(void){
	int c;
	scanf("%d",&c);
	for(;c;c--){
		int x,y,z;
		bool f;
		scanf("%d%d%d",&x,&y,&z);
		if(MAX(z,MAX(x,y))==x)
			f = (pow(y,2) + pow(z,2) == pow(x,2));
		else{
			if(MAX(z,MAX(x,y))==y)
				f = (pow(x,2) + pow(z,2) == pow(y,2));
			else
				f= (pow(x,2)+pow(y,2)==pow(z,2));
		}
		std::cout << (f?"YES":"NO") << std::endl;
	}
	return 0;
}
		

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

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

int main(){
	int d;
	cin>>d;
	while(d>0){
		int num[3];
		for(int i = 0 ; i < 3 ; i++ )
		{
			cin>>num[i];
		}
		for(int i = 0 ; i < 3 ; i++)
		{
			for(int j = i+1; j < 3 ; j++)
			{
				if( num[i] > num[j] )
				{
					int q = num[i];
					num[i] = num[j];
					num[j] = q;
				}
			}
		}
		if( num[2]*num[2] - num[1]*num[1] == num[0]*num[0] )
		{
			cout<<"YES"<<endl;
		}else{
			cout<<"NO"<<endl;
		}
		d--;
	}
}

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

#include<iostream>
#include<math.h>
using namespace std;
int N;
double a, b, c;

void rep(double* x,double* y){
	double d;
	d = *x;
	*x = *y;
	*y = d;
}

int main(){
	
	cin >> N;
	for(int i = 0; i < N; ++i){
		cin >> a >> b >> c;
		
		if(a < b || a < c){
			if(b < c){
				rep(&a, &c);
			}else{
				rep(&a, &b);
			}
		}

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


	}
	return 0;
}

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


#include<stdio.h>
int check(int a,int b,int c){
	return (a*a==b*b+c*c||b*b==a*a+c*c||c*c==b*b+a*a)?1:0;
int main(){
	int a,b,c;
	while(scanf("%d %d %d",&a,&b,&c)!=EOF){
		ifcheck(a,b,c))printf("YES\n");
		else printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: implicit declaration of function 'ifcheck'; did you mean 'check'? [-Wimplicit-function-declaration]
    8 |                 ifcheck(a,b,c))printf("YES\n");
      |                 ^~~~~~~
      |                 check
main.c:8:31: error: expected ';' before ')' token
    8 |                 ifcheck(a,b,c))printf("YES\n");
      |                               ^
      |                               ;
main.c:8:31: error: expected statement before ')' token
main.c:9:17: error: 'else' without a previous 'if'
    9 |                 else printf("NO\n");
      |                 ^~~~
main.c: In function 'check':
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C


#include<stdio.h>
int check(int a,int b,int c){
	return (a*a==b*b+c*c||b*b==a*a+c*c||c*c==b*b+a*a)?1:0;
}
int main(){
	int a,b,c;
	while(scanf("%d %d %d",&a,&b,&c)!=EOF){
		ifcheck(a,b,c))printf("YES");
		else printf("YES");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: implicit declaration of function 'ifcheck'; did you mean 'check'? [-Wimplicit-function-declaration]
    9 |                 ifcheck(a,b,c))printf("YES");
      |                 ^~~~~~~
      |                 check
main.c:9:31: error: expected ';' before ')' token
    9 |                 ifcheck(a,b,c))printf("YES");
      |                               ^
      |                               ;
main.c:9:31: error: expected statement before ')' token
main.c:10:17: error: 'else' without a previous 'if'
   10 |                 else printf("YES");
      |                 ^~~~
Language: C

#include<stdio.h>
int check(int a,int b,int c){
	return (a*a==b*b+c*c||b*b==a*a+c*c||c*c==b*b+a*a)?1:0;
}
int main(){
	int x,y,a,b,c;
	scanf("%d",&x);
	int *ans;
	ans=(int*)malloc(sizeof(int)*x);
	for(y=0;y<x;x++){
		scanf("%d %d %d",&a,&b,&c)
		if(1==check(a,b,c))ans[y]=1;
		else ans[y]=0;
	}
	for(y=0;y<x;x++){
		if(y)printf("YES\n");
		else printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:19: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
    9 |         ans=(int*)malloc(sizeof(int)*x);
      |                   ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | int check(int a,int b,int c){
main.c:9:19: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
    9 |         ans=(int*)malloc(sizeof(int)*x);
      |                   ^~~~~~
main.c:9:19: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:11:43: error: expected ';' before 'if'
   11 |                 scanf("%d %d %d",&a,&b,&c)
      |                                           ^
      |                                           ;
   12 |                 if(1==check(a,b,c))ans[y]=1;
      |                 ~~                         
main.c:13:17: error: 'else' without a previous 'if'
   13 |                 else ans[y]=0;
      |                 ^~~~
Language: C

int main(int argc, char *argv[])
{
  int a, b, c;

  while(!feof(stdin) && !ferror(stdin)) {

    scanf("%d %d %d", &a, &b, &c);
    scanf("%*[^\n]");

    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:5:10: error: implicit declaration of function 'feof' [-Wimplicit-function-declaration]
    5 |   while(!feof(stdin) && !ferror(stdin)) {
      |          ^~~~
main.c:5:15: error: 'stdin' undeclared (first use in this function)
    5 |   while(!feof(stdin) && !ferror(stdin)) {
      |               ^~~~~
main.c:1:1: note: 'stdin' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
  +++ |+#include <stdio.h>
    1 | int main(int argc, char *argv[])
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
    5 |   while(!feof(stdin) && !ferror(stdin)) {
      |               ^~~~~
main.c:5:26: error: implicit declaration of function 'ferror' [-Wimplicit-function-declaration]
    5 |   while(!feof(stdin) && !ferror(stdin)) {
      |                          ^~~~~~
main.c:7:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |     scanf("%d %d %d", &a, &b, &c);
      |     ^~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |       printf("YES\n");
      |       ^~~~~~
main.c:11:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |       printf("NO\n");
      |       ^~~~~~
main.c:13:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int check(long a,long b,long c);

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

int check(long a,long b,long c){
	int t;
	if(c<a){
		t=a;
		a=c;
		c=t;
	}
	if(c<b){
		t=b;
		b=c;
		c=t;
	}
	if(a*a+b*b==c*c)return 0;
	else return 1;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>
  int main(){
   int i,j,k,l,m;
   int x[3];
    scanf("%d",&i);
     forj=0;j<i;j++){
      for(k=0;k<3;k++){
       scanf("%d",x[k]);
       }
        for(l=0;l<3;l++){
         for(m=0;m<2;m++){
           if(x[m]<x[m+1]){
             int y=x[m+1];
              x[m+1] = x[m];
               x[m] = y;
               }
               }
               }
               if(x[0]*x[0] == x[1]*x[1]+x[2]*x[2]){
 printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: 'forj' undeclared (first use in this function)
    6 |      forj=0;j<i;j++){
      |      ^~~~
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:20: error: expected ';' before ')' token
    6 |      forj=0;j<i;j++){
      |                    ^
      |                    ;
main.c:6:20: error: expected statement before ')' token
Language: C

#include<stdio.h>
  int main(){
   int n,a,b,c,i;
    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 = a*a+c*c|| c*c = a*a+b*b){
         printf("YES\n");
          }else{
            printf("NO\n");
             }
              }
return 0;
}

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

#include<stdio.h>
  int main(){
   int n,a,b,c,i;
    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 = a*a+c*c || c*c = a*a+b*b){
         printf("YES\n");
          }else{
            printf("NO\n");
             }
              }
return 0;
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:4:16: error: 'n' undeclared (first use in this function)
    4 |   scanf("%d", &n);
      |                ^
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:22: error: 'a' undeclared (first use in this function)
    6 |     scanf("%d%d%d", &a, &b, &c);
      |                      ^
main.c:6:26: error: 'b' undeclared (first use in this function)
    6 |     scanf("%d%d%d", &a, &b, &c);
      |                          ^
main.c:6:30: error: 'c' undeclared (first use in this function)
    6 |     scanf("%d%d%d", &a, &b, &c);
      |                              ^
Language: C

#include<stdio.h>
#include<math.h>
int main(void)
{
	int k[100][3],ct;
	int mem=0;
	scanf("%d",&ct);
	for(int f1=0;f1<ct;f1++){
		scanf("%d %d %d",&k[f1][0],&k[f1][1],&k[f1][2]);
	}
	for(int f=0;f<ct;f++){
		for(int f1=0;f1<3;f1++){
			for(int f2=0;f2<3;f2++){
				if(k[f][f1]>k[f][f2]){
					mem=k[f][f1];
					k[f][f1]=k[f][f2];
					k[f][f2]=mem;
				}
			}
		}
	}
	for(int f1=0;f1<ct;f1++){
		if(pow((double)k[f1][0],2)==pow((double)k[f1][1],2)+pow((double)k[f1][2],2)){
			printf("YES\n");
		}
		else{
			printf("NO\n");
		}
	}
	return 0;
}

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

#include<stdio.h>
#include<math.h>
int main(void)
{
	int k[100][3],ct;
	int mem;
	scanf("%d",&ct);
	for(int f1=0;f1<ct;f1++){
		scanf("%d %d %d",&k[f1][0],&k[f1][1],&k[f1][2]);
	}
	for(int f=0;f<ct;f++){
		for(int f1=0;f1<3;f1++){
			for(int f2=0;f2<3;f2++){
				if(k[f][f1]>k[f][f2]){
					mem=k[f][f1];
					k[f][f1]=k[f][f2];
					k[f][f2]=mem;
				}
			}
		}
	}
	for(int f1=0;f1<ct;f1++){
		if(pow((double)k[f1][0],2)==pow((double)k[f1][1],2)+pow((double)k[f1][2],2)){
			printf("YES\n");
		}
		else{
			printf("NO\n");
		}
	}
	return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:8:45: error: stray '\' in program
    8 |                                 printf("YES"\n);
      |                                             ^
main.c:8:45: error: expected ')' before 'n'
    8 |                                 printf("YES"\n);
      |                                       ~     ^~
      |                                             )
main.c:10:44: error: stray '\' in program
   10 |                                 printf("NO"\n);
      |                                            ^
main.c:10:44: error: expected ')' before 'n'
   10 |                                 printf("NO"\n);
      |                                       ~    ^~
      |                                            )
main.c: At top level:
main.c:14:9: error: expected identifier or '(' before 'return'
   14 |         return 0;
      |         ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C

#include <stdio.h>

int main()
{
	int sets, i, j, k, side[3];
	scanf("%d", &sets);
	for(k = 0; k < sets; k++) {
		for(i = 0; i < 3; i++) {
			scanf("%d", &side[i]);
		}
		for(i = 0; i < 3; i++) {
			for(j = 0; j < 2; j++) {
				if(side[j] >= side[j + 1]) {
					tmp = side[j + 1];
					side[j + 1] = side[j];
					side[j] = tmp;
				}
			}
		}
		if(side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) printf("YES\n");
		else printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:41: error: 'tmp' undeclared (first use in this function)
   14 |                                         tmp = side[j + 1];
      |                                         ^~~
main.c:14:41: note: each undeclared identifier is reported only once for each function it appears in
Language: C

gfagdgaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | gfagdgaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'gfagdgaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' [-Wimplicit-int]