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

#include <stdio.h>

int main(){
int a,b,c,i,j;
scanf("%d",&j);
for (i=1;i<=j;i++) {
scanf("%d %d %d",&a,&b,&c);
if (a*a+b*b=c*c) {printf("YES\n");}
else if (b*b+c*c=a*a) {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:8:12: error: lvalue required as left operand of assignment
    8 | if (a*a+b*b=c*c) {printf("YES\n");}
      |            ^
main.c:9:17: error: lvalue required as left operand of assignment
    9 | else if (b*b+c*c=a*a) {printf("YES\n");}
      |                 ^
main.c:10:17: error: lvalue required as left operand of assignment
   10 | else if (c*c+a*a=b*b) {printf("YES\n");}
      |                 ^
Language: C

int main(){
int a,b,c,i,j;
scanf("%d",&j);
for (i=1;i<=j;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:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d",&j);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d",&j);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:42: error: lvalue required as left operand of assignment
    6 | if (a*a+b*b=c*c || b*b+c*c=a*a || c*c+a*a=b*b) {printf("YES\n");}
      |                                          ^
main.c:6:49: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | if (a*a+b*b=c*c || b*b+c*c=a*a || c*c+a*a=b*b) {printf("YES\n");}
      |                                                 ^~~~~~
main.c:6:49: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:49: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:49: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 | else {printf("NO\n");}
      |       ^~~~~~
main.c:7:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(){
int a,b,c,i,j;
scanf("%d",&j);
for (i=0;i<j;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:8:42: error: lvalue required as left operand of assignment
    8 | if (a*a+b*b=c*c || b*b+c*c=a*a || c*c+a*a=b*b) {printf("YES\n");}
      |                                          ^
Language: C

int main(){
int a,b,c,i,j;
scanf("%d\n",&j);
for (i=1;i<=j;i++) {
scanf("%d %d %d\n",&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:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d\n",&j);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d\n",&j);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:42: error: lvalue required as left operand of assignment
    6 | if (a*a+b*b=c*c || b*b+c*c=a*a || c*c+a*a=b*b) {printf("YES\n");}
      |                                          ^
main.c:6:49: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | if (a*a+b*b=c*c || b*b+c*c=a*a || c*c+a*a=b*b) {printf("YES\n");}
      |                                                 ^~~~~~
main.c:6:49: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:49: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:49: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 | else {printf("NO\n");}
      |       ^~~~~~
main.c:7:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

int main(void){
int i,k;
scanf("%d",i);
for(k=0;k<i;k++){
	scanf("%lf %lf %lf",a,b,c);
	if(hypot(a,b) == c){
		printf("YES");
	}
	else{
			printf("NO");
	}
}


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:29: error: 'a' undeclared (first use in this function)
    8 |         scanf("%lf %lf %lf",a,b,c);
      |                             ^
main.c:8:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:31: error: 'b' undeclared (first use in this function)
    8 |         scanf("%lf %lf %lf",a,b,c);
      |                               ^
main.c:8:33: error: 'c' undeclared (first use in this function)
    8 |         scanf("%lf %lf %lf",a,b,c);
      |                                 ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:37: error: expected expression before ']' token
    6 |                 scanf("%d %d %d",&a[],b[],c[]);
      |                                     ^
main.c:10:24: error: invalid operands to binary + (have 'int *' and 'int *')
   10 |                 if((a<b+c) || (b<a+c) || (c<a+b)){
      |                      ~ ^
      |                      | |
      |                      | int *
      |                      int *
main.c:10:35: error: invalid operands to binary + (have 'int *' and 'int *')
   10 |                 if((a<b+c) || (b<a+c) || (c<a+b)){
      |                                 ~ ^
      |                                 | |
      |                                 | int *
      |                                 int *
main.c:10:46: error: invalid operands to binary + (have 'int *' and 'int *')
   10 |                 if((a<b+c) || (b<a+c) || (c<a+b)){
      |                                            ~ ^
      |                                            | |
      |                                            | int *
      |                                            int *
main.c:14:25: error: implicit declaration of function 'rpintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |                         rpintf("NO");
      |                         ^~~~~~
      |                         printf
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:24: error: invalid operands to binary + (have 'int *' and 'int *')
   10 |                 if((a<b+c) || (b<a+c) || (c<a+b)){
      |                      ~ ^
      |                      | |
      |                      | int *
      |                      int *
main.c:10:35: error: invalid operands to binary + (have 'int *' and 'int *')
   10 |                 if((a<b+c) || (b<a+c) || (c<a+b)){
      |                                 ~ ^
      |                                 | |
      |                                 | int *
      |                                 int *
main.c:10:46: error: invalid operands to binary + (have 'int *' and 'int *')
   10 |                 if((a<b+c) || (b<a+c) || (c<a+b)){
      |                                            ~ ^
      |                                            | |
      |                                            | int *
      |                                            int *
main.c:14:25: error: implicit declaration of function 'rpintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |                         rpintf("NO");
      |                         ^~~~~~
      |                         printf
Language: C

#include <stdio.h>

int n, i, k;

scanf("%d", &n);

int l[n][3];

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

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

for(k=0; k<2; k++){

if(l[i][0]>l[i][1]){
temp=l[i][0];
l[i][0]=l[i][1];
l[i][1]=temp;
}

if(l[i][1]>l[i][2]){
temp=l[i][1];
l[i][1]=l[i][2];
l[i][2]=temp;
}

}
}

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

if((l[i][0])*(l[i][0])+(l[i][1])*(l[i][1])=(l[i][2])*(l[i][2]))
printf("YES\n");
else
printf("NO\n");

return 0;

}

Compiler output:
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d", &n);
      |       ^~~~
main.c:5:13: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d", &n);
      |             ^
main.c:7:5: error: variably modified 'l' at file scope
    7 | int l[n][3];
      |     ^
main.c:9:1: error: expected identifier or '(' before 'for'
    9 | for(i=0; i<n; i++)
      | ^~~
main.c:9:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    9 | for(i=0; i<n; i++)
      |           ^
main.c:9:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    9 | for(i=0; i<n; i++)
      |                ^~
main.c:12:1: error: expected identifier or '(' before 'for'
   12 | for(i=0; i<n; i++){
      | ^~~
main.c:12:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   12 | for(i=0; i<n; i++){
      |           ^
main.c:12:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   12 | for(i=0; i<n; i++){
      |                ^~
main.c:31:1: error: expected identifier or '(' before 'for'
   31 | for(i=0; i<n; i++){
      | ^~~
main.c:31:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   31 | for(i=0; i<n; i++){
      |           ^
main.c:31:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   31 | for(i=0; i<n; i++){
      |                ^~
Language: C

#include <stdio.h>

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

return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:19:1: error: 'temp' undeclared (first use in this function)
   19 | temp=l[i][0];
      | ^~~~
main.c:19:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:34:43: error: lvalue required as left operand of assignment
   34 | if((l[i][0])*(l[i][0])+(l[i][1])*(l[i][1])=(l[i][2])*(l[i][2]))
      |                                           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:36:43: error: lvalue required as left operand of assignment
   36 | if((l[i][0])*(l[i][0])+(l[i][1])*(l[i][1])=(l[i][2])*(l[i][2]))
      |                                           ^
Language: C

#include <stdio.h>

void right_triangle (int x, int y, int z)
{
    if(x * x = y * y + z * z || y * y = z * z + x * x || z * z = x * x + y * y){
        printf("YES\n");
    } else {
        printf("NO\n");
    }
}

int main(void)
{
    int n;
    scanf("%d", &n);
    int i;
    for (i = 0; i < n; ++i){
        int x, y, z;
        scanf("%d %d %d", &x, &y, &z);
        right_triangle(x, y, z);
    }
    return 0;
}

Compiler output:
main.c: In function 'right_triangle':
main.c:5:64: error: lvalue required as left operand of assignment
    5 |     if(x * x = y * y + z * z || y * y = z * z + x * x || z * z = x * x + y * y){
      |                                                                ^
Language: C

#include <stdio.h>

void right_triangle (int x, int y, int z)
{
    if(x * x = y * y + z * z || y * y = z * z + x * x || z * z = x * x + y * y){
        printf("YES\n");
    } else {
        printf("NO\n");
    }
}

int main(void)
{
    int n;
    scanf("%d", &n);
    for (int i = 0; i < n; ++i){
        int x, y, z;
        scanf("%d %d %d", &x, &y, &z);
        right_triangle(x, y, z);
    }
    return 0;
}

Compiler output:
main.c: In function 'right_triangle':
main.c:5:64: error: lvalue required as left operand of assignment
    5 |     if(x * x = y * y + z * z || y * y = z * z + x * x || z * z = x * x + y * y){
      |                                                                ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,c;
  int count,i;
  scanf("%d",&count);
  for(i=0;i<count;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\n");
    else printf("NO\n");
  }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:31: error: expected ';' before 'if'
   10 |     scanf("%d %d %d",&a,&b,&c)
      |                               ^
      |                               ;
   11 | 
   12 |     if(((a*a+b*b)==c*c)||((a*a+c*c)==b*b)||((b*b+c*c)==a*a))printf("YES\n");
      |     ~~                         
main.c:13:5: error: 'else' without a previous 'if'
   13 |     else printf("NO\n");
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:14: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
    9 |       if((c==sqrt(a*a+b*b)|| b==(c*c+a*a)|| a==(b*b+c*c)
      |              ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:9:14: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
    9 |       if((c==sqrt(a*a+b*b)|| b==(c*c+a*a)|| a==(b*b+c*c)
      |              ^~~~
main.c:9:14: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:9:57: error: expected ')' before 'printf'
    9 |       if((c==sqrt(a*a+b*b)|| b==(c*c+a*a)|| a==(b*b+c*c)
      |          ~                                              ^
      |                                                         )
   10 |             printf("YES\n");
      |             ~~~~~~                                       
main.c:12:27: error: expected ')' before '}' token
   12 |             printf("NO\n")
      |                           ^
      |                           )
   13 |      }
      |      ~                     
main.c:9:9: note: to match this '('
    9 |       if((c==sqrt(a*a+b*b)|| b==(c*c+a*a)|| a==(b*b+c*c)
      |         ^
main.c:13:6: error: expected expression before '}' token
   13 |      }
      |      ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:13: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
    9 |       if(c==sqrt(a*a+b*b)|| b==(c*c+a*a)|| a==(b*b+c*c))
      |             ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:9:13: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
    9 |       if(c==sqrt(a*a+b*b)|| b==(c*c+a*a)|| a==(b*b+c*c))
      |             ^~~~
main.c:9:13: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:27: error: expected ';' before '}' token
   12 |             printf("NO\n")
      |                           ^
      |                           ;
   13 |      }
      |      ~
Language: C

##include<stdio.h>
int main()
{
    int n,a,b,c,i;
    while(scanf("%d",&n)==1){
        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:1:1: error: stray '##' in program
    1 | ##include<stdio.h>
      | ^~
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ##include<stdio.h>
      |          ^
Language: C

#include<stdio.h>
int main()
{
    int j,a,b,c,i;
    while(scanf("%d",&n)==1){
        for(i=0;i<j;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:5:23: error: 'n' undeclared (first use in this function)
    5 |     while(scanf("%d",&n)==1){
      |                       ^
main.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

void sort_asc(int *v, int c){
    int i, j;
    int t;

    for(i = 0; i < c - 1; i++){
        if(v[i] > v[i+1]){
            t = v[i+1];
            v[i+1] = v[i];
            v[i] = t;
            for(j = i; j > 0; j--){
                if(v[j] < v[j-1]){
                    t = v[j-1];
                    v[j-1] = v[j];
                    v[j] = t;
                }else{
                    break;
                }
            }
        }
    }
    return;
}

int main(){
    int cnt, i;
    int v[3];
    
    scanf("%d", &cnt);
    for(i = 0; i < cnt; i++){
        scanf("%d %d %d", &v[0], &v[1], &v[2]);
        sort_asc(v, 3);
        if(v[2]^2 == v[0]^2 + v[1]^2){
            print("YES");
        }else{
            print("NO");
        }
    }
    return 0;
}

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

#include<stdio.h>

int main(void) {
	int N, i;
	scanf_s("%d", &N);

	int a[1000], b[1000], c[1000];

	for (i = 0; i < N; i++) {
		scanf_s("%d &d &d", &a[i], &b[i], &c[i]);
	}

	for (i = 0; i < N; i++) {
		int A = a[i] * a[i];
		int B = b[i] * b[i];
		int C = c[i] * c[i];
		if (A + B == C || B + C == A || C + A == B) {
			printf("YES\n");
		}
		else
		{
			printf("NO\n");
		}
	}
	return 0;
}

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

#include<stdio.h>

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

	scanf_s("%d",&N);
	
	for (i = 0; i < N; i++) {
		scanf_s("%d %d %d", &a, &b, &c);
		int A = a*a;
		int B = b*b;
		int C = c*c;
		if (A + B == C || B + A == C || C + A == B) {
			printf("YES");
		}
		else
		{
			printf("NO");
		}
	}
	return 0;
}

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

#include<stdio.h>

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

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

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

#include<stdio.h>

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

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:116: error: expected expression before '||' token
   11 |                 if ((a[i] * a[i]) + (b[i] * b[i]) == (c[i] * c[i])||(a[i] * a[i]) + (c[i] * c[i]) == (b[i] * b[i]))||(c[i] * c[i]) + (b[i] * b[i]) == (a[i] * a[i])){
      |                                                                                                                    ^~
main.c:11:164: error: expected statement before ')' token
   11 |                 if ((a[i] * a[i]) + (b[i] * b[i]) == (c[i] * c[i])||(a[i] * a[i]) + (c[i] * c[i]) == (b[i] * b[i]))||(c[i] * c[i]) + (b[i] * b[i]) == (a[i] * a[i])){
      |                                                                                                                                                                    ^
main.c:14:17: error: 'else' without a previous 'if'
   14 |                 else {
      |                 ^~~~
Language: C

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

int main(){

    int length[3];
    int n;

    fscanf(stdin, "%d", &n);
    while ( (fscanf(stdin, "%d %d %d", &length[0], &length[1], &length[2])) != EOF){
        // 1. ?????????????????¨??¨??????.
        if (length[0] == length[1] ||
                length[1] == length[2] ||
                length[0] == length[2]){
            printf("NO\n");
            continue;
        }

        // 2. ??????????????????c??¨??????, c^2 = a^2 + b^2
        int max_index = 0;
        double tmp = 0;
        for(int i=1; i<n; ++i){
            if(length[max_index] < length[i]){
                max_index = i;
            }
        }

        for (int i=0; i<3; i++){
            if (i != max_index){
                tmp += pow((double)length[i], 2.0);
            }
        }

        if (pow((double)length[max_index], 2.0) == tmp) {
            printf("YES\n");
        }else{
            printf("NO\n");
        }
    }

    return 0;
}

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

// 20151005



#include<stdio.h>




int main() {
  int N;       // ????????????????????°
  int a, b, c; // ??\???





  /* ????????????????????°??\??? */
  scanf("&d", N);
  for (i = 0; i < N; i ++) {
    /** 3 ?????????????????\??? **/
    scanf("&d &d &d", a, b, c);
    /*** ??¶?´??????? ***/
    if (a < 1000 && b < 1000 && c < 1000) {
      braak;
    }
    /**** 3 ?????????????????????????????????****/
    if (a * a = b * b + c * c) {
      san = 1;
    }
    if (b * b = c * c + a * a) {
      san = 1;
    }
    if (c * c = a * a + b * b) {
      san = 1;
    }
    /***** ??¨??? *****/
    if (san = 1) {
      printf("YES\n");
    }
    else {
      printf("NO\n");
    }
  }




  /* ?????? */
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:8: error: 'i' undeclared (first use in this function)
   20 |   for (i = 0; i < N; i ++) {
      |        ^
main.c:20:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:7: error: 'braak' undeclared (first use in this function)
   25 |       braak;
      |       ^~~~~
main.c:28:15: error: lvalue required as left operand of assignment
   28 |     if (a * a = b * b + c * c) {
      |               ^
main.c:29:7: error: 'san' undeclared (first use in this function)
   29 |       san = 1;
      |       ^~~
main.c:31:15: error: lvalue required as left operand of assignment
   31 |     if (b * b = c * c + a * a) {
      |               ^
main.c:34:15: error: lvalue required as left operand of assignment
   34 |     if (c * c = a * a + b * b) {
      |               ^
Language: C

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

int data[1000][3];

/**------------ SUB ROUTIONE -------------*/
/**------------ SUB ROUTIONE -------------*/
int main()
{
	int  n,i,a,b,c;
	char inp[96];

	/**--init --**/

	/**--input--**/
	gets(inp);
	sscanf_s(inp,"%d",&n);

	for (i=0 ; i<n ; i++) {
		gets(inp);
		sscanf(inp,"%d %d %d",&(data[i][0]),&(data[i][1]),&(data[i][2]));
	}

	/**--CALC--**/
	for (i=0 ; i<n ; i++) {
		a = data[i][0];
		b = data[i][1];
		c = data[i][2];
		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:19:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   19 |         gets(inp);
      |         ^~~~
      |         fgets
main.c:20:9: error: implicit declaration of function 'sscanf_s'; did you mean 'sscanf'? [-Wimplicit-function-declaration]
   20 |         sscanf_s(inp,"%d",&n);
      |         ^~~~~~~~
      |         sscanf
Language: C

#include<stdio.h>
int Pita(int a, int b, int c);
int main(void){
int N, a, b, c, i, t;
scanf("%d", &N);
for(i = 0; i < N; i++){
scanf("%d%d%d", a, b, c);
t = Pita(a, b, c);
if(t == 1) printf("Yes\n");
else printf("No\n");
}
return 0;
}

int Pita(int a, int b, int c){
if(a > b && a > c){
if(a == (b * b + c * c))
return 1
else return 0;
}else(b > a && b > c){
if(b == (a * a + c * c))
return 1
else return 0;
}else if(c > a && c > b){
if(c == (a * a + b * b))
return 1
else return 0;
}else{
return 0;
}
}

Compiler output:
main.c: In function 'Pita':
main.c:18:9: error: expected ';' before 'else'
   18 | return 1
      |         ^
      |         ;
   19 | else return 0;
      | ~~~~     
main.c:20:22: error: expected ';' before '{' token
   20 | }else(b > a && b > c){
      |                      ^
      |                      ;
Language: C

#include<stdio.h>
int Pita(int a, int b, int c);
int main(void){
int N, a, b, c, i, t;
scanf("%d", &N);
for(i = 0; i < N; i++){
scanf("%d%d%d", a, b, c);
t = Pita(a, b, c);
if(t == 1){
printf("Yes\n");
}else{
printf("No\n");
}
}
return 0;
}

int Pita(int a, int b, int c){
if(a > b && a > c){
if(a == (b * b + c * c))
return 1
else return 0;
}else(b > a && b > c){
if(b == (a * a + c * c))
return 1
else return 0;
}else if(c > a && c > b){
if(c == (a * a + b * b))
return 1
else return 0;
}else{
return 0;
}
}

Compiler output:
main.c: In function 'Pita':
main.c:21:9: error: expected ';' before 'else'
   21 | return 1
      |         ^
      |         ;
   22 | else return 0;
      | ~~~~     
main.c:23:22: error: expected ';' before '{' token
   23 | }else(b > a && b > c){
      |                      ^
      |                      ;
Language: C

#include<stdio.h>
int Pita(int a, int b, int c);
int main(void){
int N, a, b, c, i, t;
scanf("%d", &N);
for(i = 0; i < N; i++){
scanf("%d%d%d", a, b, c);
t = Pita(a, b, c);
if(t == 1){
printf("Yes\n");
}else{
printf("No\n");
}
}
return 0;
}

int Pita(int a, int b, int c){
if(a > b && a > c){
if(a == (b * b + c * c))
return 1;
else return 0;
}else(b > a && b > c){
if(b == (a * a + c * c))
return 1;
else return 0;
}else if(c > a && c > b){
if(c == (a * a + b * b))
return 1
else return 0;
}else{
return 0;
}
}

Compiler output:
main.c: In function 'Pita':
main.c:23:22: error: expected ';' before '{' token
   23 | }else(b > a && b > c){
      |                      ^
      |                      ;
Language: C

#include<stdio.h>
int Pita(int a, int b, int c);
int main(void){
int N, a, b, c, i, t;
scanf("%d", &N);
for(i = 0; i < N; i++){
scanf("%d%d%d", a, b, c);
t = Pita(a, b, c);
if(t == 1){
printf("Yes\n");
}else{
printf("No\n");
}
}
return 0;
}

int Pita(int a, int b, int c){
if(a > b && a > c){
if(a == (b * b + c * c)){
return 1;
}else{ 
return 0;
}
}else(b > a && b > c){
if(b == (a * a + c * c)){
return 1;
}else{
return 0;
}
}else if(c > a && c > b){
if(c == (a * a + b * b)){
return 1;
}else 
return 0;
}
}else{
return 0;
}
}

Compiler output:
main.c: In function 'Pita':
main.c:25:22: error: expected ';' before '{' token
   25 | }else(b > a && b > c){
      |                      ^
      |                      ;
main.c: At top level:
main.c:37:2: error: expected identifier or '(' before 'else'
   37 | }else{
      |  ^~~~
main.c:40:1: error: expected identifier or '(' before '}' token
   40 | }
      | ^
Language: C

#include<stdio.h>
int Pita(int a, int b, int c);
int main(void){
int N, a, b, c, i, t;
scanf("%d", &N);
for(i = 0; i < N; i++){
scanf("%d%d%d", a, b, c);
t = Pita(a, b, c);
if(t == 1){
printf("Yes\n");
}else{
printf("No\n");
}
}
return 0;
}

int Pita(int a, int b, int c){
if(a > b && a > c){
if(a == (b * b + c * c)){
return 1;
}else{ 
return 0;
}
}else(b > a && b > c){
if(b == (a * a + c * c)){
return 1;
}else{
return 0;
}
}else if(c > a && c > b){
if(c == (a * a + b * b)){
return 1;
}else {
return 0;
}
}else{
return 0;
}
}

Compiler output:
main.c: In function 'Pita':
main.c:25:22: error: expected ';' before '{' token
   25 | }else(b > a && b > c){
      |                      ^
      |                      ;
Language: C

#include<stdio.h>

int main(void){
    int n1, n2, n3, m;
    scanf("%d",&m);
    for(i = 0;i < m;i++) {
        scanf("%d %d %d",&n1,&n2,&n3);
        if(n1 * n1 + n2 * n2 = n3 * n3)
            printf("YES");
        else
            printf("NO");
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'i' undeclared (first use in this function)
    6 |     for(i = 0;i < m;i++) {
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:30: error: lvalue required as left operand of assignment
    8 |         if(n1 * n1 + n2 * n2 = n3 * n3)
      |                              ^
Language: C

#include<iostream>
using namespace std;
int main(){
    int a,b,c,d,s,t,n,i;
    cin >> n;
    for(i=0;i<n;i++){
    cin >> a >> b >> c;
    if(a<b){
        d=b;
        b=a;
        a=d;
    }if(b<c){
        d=c;
        c=b;
        b=d;
    }if(a<b){
        d=b;
        b=a;
        a=d;
    }
    s=a*a;
    t=(b*b)+(c*c);
    if(s==t){
        cout << "Yes"<< endl;
        }else {
        cout << "No" << endl;
        }
    }

 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>
#include<conio.h>

int main()
{
int n,i,a,b,c;
scanf("%d",&n);
for(i=1;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:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include <math.h >
int main(void) {
	int a, b, c, t, x, y;
	t = a ; x = b ; y = c; 
	if(t<=b){
		t = b ; x = c ; y = a ;
	}
	if(t<=c){
		t = c ; x = a ; y = b;
		
	}
	if(t==sqrt(pow(x)+pow(y)){
	printf("YES")
	}
	else{
		printf("NO")
	}
	return 0;
}

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

#include <stdio.h>
#include <math.h >
int main(void) {
	int a, b, c, t, x, y;
	t = a ; x = b ; y = c; 
	if(t<=b){
		t = b ; x = c ; y = a ;
	}
	if(t<=c){
		t = c ; x = a ; y = b;
		
	}
	if(t==sqrt(pow(x)+pow(y)){
	printf("YES");
	}
	else{
		printf("NO");
	}
	return 0;
}

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

#include <stdio.h>
#include <math.h >
int main(void) {
	int a, b, c, t, x, y;
	t = a ; x = b ; y = c; 
	if(t<=b){
		t = b ; x = c ; y = a ;
	}
	if(t<=c){
		t = c ; x = a ; y = b;
		
	}
	
	if(t==sqrt(pow(x)+pou(y))){
	printf("YES");
	}
	else{
		printf("NO");
	}
	return 0;
}

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

#include <stdio.h>
#include <math.h >
int main(void) {
	int a, b, c, t, x, y;
	t = a ; x = b ; y = c; 
	if(t<=b){
		t = b ; x = c ; y = a ;
	}
	if(t<=c){
		t = c ; x = a ; y = b ;
	}
	x = pow(x); y = pow(y);
	if(t==sqrt(x+y)){
		printf("YES");
	}
	else{
		printf("NO");
	}
	return 0;
}

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

#include <stdio.h>
#include <math.h>
int main(void) {
	int a, b, c, t, x, y;
	t = a ; x = b ; y = c; 
	if(t<=b){
		t = b ; x = c ; y = a ;
	}
	if(t<=c){
		t = c ; x = a ; y = b ;
	}
	x = pow(x); y = pow(y);
	if(t==sqrt(x+y)){
		printf("YES");
	}
	else{
		printf("NO");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:13: error: too few arguments to function 'pow'
   12 |         x = pow(x); y = pow(y);
      |             ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
main.c:12:25: error: too few arguments to function 'pow'
   12 |         x = pow(x); y = pow(y);
      |                         ^~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
Language: C

#include <stdio.h>
#include <math.h>
int main(void) {
	int a, b, c, t, x, y;
	
	scanf("%d %d %d",&a,%b,&c);
	
	t = a ; x = b ; y = c; 
	if(t<=b){
		t = b ; x = c ; y = a ;
	}
	else{}
	if(t<=c){
		t = c ; x = a ; y = b ;
	}
	else{}
	t = pow(t,2) ;x = pow(x,2); y = pow(y,2);
	if(t==sqrt(x+y)){
		printf("YES");
	}
	else{
		printf("NO");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected expression before '%' token
    6 |         scanf("%d %d %d",&a,%b,&c);
      |                             ^
Language: C

#include <stdio.h>
#include <math.h>
int main(void) {
	int a, b, c, t, x, y;
	
	scanf("%d",&a);
	scanf("%d",&b);
        scanf("%d",&c);
	t = a ; x = b ; y = c; 
	if(t<=b){
		t = b ; x = c ; y = a ;
	}
	else{}
	if(t<=c){
		t = c ; x = a ; y = b ;
	}
	else{}
	t = pow(t,2) ;x = pow(x,2); y = pow(y,2);
	if(t==sqrt(x+y)){
		printf("YES");
	}
	else{
		printf("NO");
	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:25:9: error: expected declaration or statement at end of input
   25 |         return 0;
      |         ^~~~~~
Language: C

#include<iostream>
using namespace std;

void rate() {
int x, y, z;
	cin >> x >> y >> z;
	if (x*x + y*y == z*z || y*y + z*z == x*x || z*z + x*x == y*y) {
		cout << "YES\n";
	}
	else {
		cout << "NO\n";
	}

}

int main() {
	int i, k;
		cin >> k;
		for (i = 1; i <= k; i = i + 1) {
			rate();
		}
	
	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 main()
{
    int a,b,c;
    while(scanf("%d %d %d",&a,&b,&c)!=EOF){
        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");
        }
    }
    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:6:24: error: lvalue required as left operand of assignment
    6 |         if(((a*a)+(b*b)=(c*c))||((a*a)+(c*c)=(b*b))||((b*b)+(c*c)=(a*a))){
      |                        ^
main.c:6:45: error: lvalue required as left operand of assignment
    6 |         if(((a*a)+(b*b)=(c*c))||((a*a)+(c*c)=(b*b))||((b*b)+(c*c)=(a*a))){
      |                                             ^
main.c:6:66: error: lvalue required as left operand of assignment
    6 |         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,i,a,b,c;
	scanf("%d\n",&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{
				printf("NO\n");
			}
			
		}else if(b>a && b>c){
			if(b*b == a*a+c*c){
				printf("YES\n");
			}else{
				printf("NO\n");
			}
		}else{
			if(c*c == b*b + a*a){
				printf("YES\n");
			}else{
				printf("N0\n");
			}
		}
		
	}
	return 0;
}

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

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

void right_triangle(int, int, int);

int main(){
	int N, a, b, c;
	scanf("%d", &N);
	while(scanf("%d %d %d", &a, &b, &c) != EOF){
		right_triangle(a, b, c);
	}
	return 0;
}

void right_triangle(int x, int y, int z){
	int tmp;
	if(x > z){				//sort
		tmp = z;
		z = x;
		x = tmp;
	}
	if(y > z){
		tmp = z;
		z = y;
		y = tmp;cle
	}

	if(z == (int)sqrt((double)x*x+y*y)){			
		printf("YES\n");
	}else{
		printf("NO\n");
	}
}

Compiler output:
main.c: In function 'right_triangle':
main.c:25:25: error: 'cle' undeclared (first use in this function)
   25 |                 y = tmp;cle
      |                         ^~~
main.c:25:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:28: error: expected ';' before '}' token
   25 |                 y = tmp;cle
      |                            ^
      |                            ;
   26 |         }
      |         ~
Language: C

#include <stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include <stdio.h>

int main(){
	int N,a,b,c;

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

	if(a*a+b*b==c*c && b*b+c*c==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:11:17: error: expected '}' before 'else'
   11 |                 else 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 N,a,b,c;

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

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

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: expected '}' before 'else'
   11 |                 else if printf("NO\n");
      |                 ^~~~
main.c:11:25: error: expected '(' before 'printf'
   11 |                 else if 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 N,a,b,c;

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

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: 'i' undeclared (first use in this function)
    7 |         for(i=0;i<N;i++){
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:25: error: expected '}' before 'else'
   11 |                         else printf("NO\n");
      |                         ^~~~
Language: C

#include <stdio.h>

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

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

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:11:25: error: expected '}' before 'else'
   11 |                         else printf("NO\n");
      |                         ^~~~
Language: C

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d", &count);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d", &count);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:17: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    9 |                 scanf_s("%d %d %d", &leng1, &leng2, &leng3);
      |                 ^~~~~~~
main.c:12:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |                         printf("Yes\n");
      |                         ^~~~~~
main.c:12:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("Yes\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |                         printf("Yes\n");
      |                         ^~~~~~
main.c:20:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   23 |                         printf("No\n");
      |                         ^~~~~~
main.c:23:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

scanf("%d\n", &n);

for(i=0;i<n;i++)
{
  scanf("%d %d %d\n", &a,&b,&c);

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

}
  
    return 0;
}

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

#include <stdio.h>

int main(){

int i,n,a,b,c;

while(scanf("%d",a)!=EOF){

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

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




}



}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: lvalue required as left operand of assignment
   12 | if(a*a+b*b==c*c || c*c+a*a=b*b || b*b+c*c==a*a) printf("YES");
      |                           ^