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

#include <stdio.h>

int main(){

int i,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");
      |                           ^
Language: C

#include<stdio.h>

int main(){
	int N,baseline,height,obliqueline,i;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %d",&baseline,&height,&obliqueline);
		if((baseline^2+height^2)==(obliqueline^2)){
			printf("YES");
		else{
			printf("NO");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: expected '}' before 'else'
   10 |                 else{
      |                 ^~~~
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include<stdio.h>

int main(){
	int N,baseline,height,obliqueline,i;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %d",&baseline,&height,&obliqueline);
		if((baseline^2+height^2)==(obliqueline^2)){
			printf("YES");
		else{
			printf("NO");
		}
	}
	return 0;
}

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

#include<stdio.h>

int main(){
	int N,baseline,height,i;
	double a,b,c,d,obliqueline;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %lf",&baseline,&height,&obliqueline);
		a=pow(baseline,2);
		b=pow(height,2);
		d=pow(obliqueline,2);
		c=sqrt(a+b);
		if(c==obliqueline){
			printf("YES\n");
		}
		elseif((c=sqrt(a+d))==height){
			printf("YES\n");
		}
		elseif((c=sqrt(b+d))==baseline){
			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 'pow' [-Wimplicit-function-declaration]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow'
main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   12 |                 c=sqrt(a+b);
      |                   ^~~~
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   16 |                 elseif((c=sqrt(a+d))==height){
      |                 ^~~~~~
main.c:16:46: error: expected ';' before '{' token
   16 |                 elseif((c=sqrt(a+d))==height){
      |                                              ^
      |                                              ;
Language: C

#include<stdio.h>

int main(){
	int N,baseline,height,i;
	double a,b,c,d,obliqueline;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %lf",&baseline,&height,&obliqueline);
		a=pow(baseline,2);
		b=pow(height,2);
		d=pow(obliqueline,2);
		c=sqrt(a+b);
		if(c==obliqueline){
			printf("YES\n");
		}
		c=sqrt(a+d);
		elseif(c==height){
			printf("YES\n");
		}
		c=sqrt(b+d);
		elseif(c==baseline){
			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 'pow' [-Wimplicit-function-declaration]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow'
main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   12 |                 c=sqrt(a+b);
      |                   ^~~~
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:17:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   17 |                 elseif(c==height){
      |                 ^~~~~~
main.c:17:34: error: expected ';' before '{' token
   17 |                 elseif(c==height){
      |                                  ^
      |                                  ;
main.c:21:36: error: expected ';' before '{' token
   21 |                 elseif(c==baseline){
      |                                    ^
      |                                    ;
Language: C

#include<stdio.h>

int main(){
	int N,baseline,height,i;
	double a,b,c,d,obliqueline;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %lf",&baseline,&height,&obliqueline);
		a=pow(baseline,2);
		b=pow(height,2);
		d=pow(obliqueline,2);
		c=sqrt(a+b);
		if(c==obliqueline){
			printf("YES\n");
		}
		elseif((c=sqrt(a+d))==height);{
			printf("YES\n");
		}
		elseif((c=sqrt(b+d))==baseline){
			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 'pow' [-Wimplicit-function-declaration]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow'
main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   12 |                 c=sqrt(a+b);
      |                   ^~~~
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   16 |                 elseif((c=sqrt(a+d))==height);{
      |                 ^~~~~~
main.c:19:48: error: expected ';' before '{' token
   19 |                 elseif((c=sqrt(b+d))==baseline){
      |                                                ^
      |                                                ;
Language: C

#include<stdio.h>

int main(){
	int N,baseline,height,i;
	double a,b,c,d,obliqueline;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %lf",&baseline,&height,&obliqueline);
		a=pow(baseline,2);
		b=pow(height,2);
		d=pow(obliqueline,2);
		c=sqrt(a+b);
		if(c==obliqueline){
			printf("YES\n");
		}
		elseif((c=sqrt(a+d))==height);{
			printf("YES\n");
		}
		elseif((c=sqrt(b+d))==baseline);{
			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 'pow' [-Wimplicit-function-declaration]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow'
main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   12 |                 c=sqrt(a+b);
      |                   ^~~~
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   16 |                 elseif((c=sqrt(a+d))==height);{
      |                 ^~~~~~
main.c:22:17: error: 'else' without a previous 'if'
   22 |                 else{
      |                 ^~~~
Language: C

#include<stdio.h>

int main(){
	int N,baseline,height,i;
	double a,b,c,d,obliqueline;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %lf",&baseline,&height,&obliqueline);
		a=pow(baseline,2);
		b=pow(height,2);
		d=pow(obliqueline,2);
		c=sqrt(a+b);
		if(c==obliqueline){
			printf("YES\n");
		}
		if((c=sqrt(a+d))==height);{
			printf("YES\n");
		}
		if((c=sqrt(b+d))==baseline);{
			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 'pow' [-Wimplicit-function-declaration]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow'
main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   12 |                 c=sqrt(a+b);
      |                   ^~~~
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:22:17: error: 'else' without a previous 'if'
   22 |                 else{
      |                 ^~~~
Language: C

#include<stdio.h>

int main(){
	int N,baseline,height,i;
	double a,b,c,d,obliqueline;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %lf",&baseline,&height,&obliqueline);
		a=pow(baseline,2);
		b=pow(height,2);
		d=pow(obliqueline,2);
		c=sqrt(a+b);
		if(c==obliqueline){
			printf("YES\n");
		}
		elseif((c=sqrt(a+d);)==height){
			printf("YES\n");
		}
		elseif((c=sqrt(b+d);)==baseline){
			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 'pow' [-Wimplicit-function-declaration]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow'
main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   12 |                 c=sqrt(a+b);
      |                   ^~~~
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   16 |                 elseif((c=sqrt(a+d);)==height){
      |                 ^~~~~~
main.c:16:36: error: expected ')' before ';' token
   16 |                 elseif((c=sqrt(a+d);)==height){
      |                        ~           ^
      |                                    )
main.c:16:47: error: expected ';' before '{' token
   16 |                 elseif((c=sqrt(a+d);)==height){
      |                                               ^
      |                                               ;
Language: C

#include<stdio.h>

int main(){
	int N,i;
	double a,b,c,d,obliqueline,baseline,height;
	scanf("%d",&N);
	for(i=1;i<=N;i++){
		scanf("%d %d %lf",&baseline,&height,&obliqueline);
		a=pow(baseline,2);
		b=pow(height,2);
		d=pow(obliqueline,2);
		c=sqrt(a+b);
		if(c==obliqueline){
			printf("YES\n");
		}
		elseif((c=sqrt(a+d))==height){
			printf("YES\n");
		}
		elseif((c=sqrt(b+d))==baseline){
			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 'pow' [-Wimplicit-function-declaration]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    9 |                 a=pow(baseline,2);
      |                   ^~~
main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow'
main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   12 |                 c=sqrt(a+b);
      |                   ^~~~
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   16 |                 elseif((c=sqrt(a+d))==height){
      |                 ^~~~~~
main.c:16:46: error: expected ';' before '{' token
   16 |                 elseif((c=sqrt(a+d))==height){
      |                                              ^
      |                                              ;
Language: C

#include <stdio.h>
int main(void)
{
	int a, i;
	int x,y,z;
	int j,k,l;
	scanf("%d", &a);
	for (i=0;i<3;i++)
	{
		scanf("%d%d%d", &x, &y, &z);
		j=x*x+y*y;
		k=x*x+z*z;
		l=y*y+z*z;

		if (j==z*z || k==y*y || l==x*x)
		{
			printf("YES\n");
		}
		else
			printf("NO\n");

	}
	return 0;
}???

Compiler output:
main.c:24:2: error: expected identifier or '(' before '?' token
   24 | }???
      |  ^
Language: C

#include<stdio.h>

void checkTri(int,int,int);

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

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

Compiler output:
main.c: In function 'main':
main.c:12:9: error: 'Return' undeclared (first use in this function)
   12 |         Return 0;
      |         ^~~~~~
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:15: error: expected ';' before numeric constant
   12 |         Return 0;
      |               ^~
      |               ;
Language: C

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int a,b,c,n;
    cin>>n;
    for(int i=0; i<n; i++)
    {
        cin>>a>>b>>c;
        if((a*a)+(b*b)==(c*c))
        {
            cout<<"YES"<<endl;
        }
        else
        {
            cout<<"NO"<<endl;
        }
    }
    return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=0;i<n;i++)
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:44: error: expected ';' before 'if'
   10 |                 scanf(" %d %d %d",&a,&b,&c)
      |                                            ^
      |                                            ;
   11 |                 if(c*c=a*a+b*b)
      |                 ~~
Language: C

#include<stdio.h>
int main(void)
{
	int n;
	int a,b,c;
	
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf(" %d %d %d",&a,&b,&c)
		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:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=0;i<n;i++)
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:44: error: expected ';' before 'if'
   10 |                 scanf(" %d %d %d",&a,&b,&c)
      |                                            ^
      |                                            ;
   11 |                 if(c*c=a*a+b*b)
      |                 ~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:44: error: expected ';' before 'if'
   10 |                 scanf(" %d %d %d",&a,&b,&c)
      |                                            ^
      |                                            ;
   11 |                 if(c*c=a*a+b*b)
      |                 ~~
Language: C

#include<stdio.h>
int main(void)
{
	int n,i;
	int a,b,c;
	
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf(" %d %d %d",&a,&b,&c);
		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:11:23: error: lvalue required as left operand of assignment
   11 |                 if(c*c=a*a+b*b)
      |                       ^
Language: C

#include<stdio.h>
int main(void)
{
	int n,i;
	int a,b,c;
	
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d %d %d",&a,&b,&c);
		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:11:23: error: lvalue required as left operand of assignment
   11 |                 if(c*c=a*a+b*b)
      |                       ^
Language: C

#include<stdio.h>

int main(void)
{
	int dataset = 0;
	int a,b,c;
	int i;
	scanf("%d",&dataset);
	for(i = 0;i < dataset;i++)
	{
		scanf("%d",&a);
		scanf("%d",&b);
		scanf("%d",&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:14:31: error: lvalue required as left operand of assignment
   14 |                 if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b))
      |                               ^
main.c:14:52: error: lvalue required as left operand of assignment
   14 |                 if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b))
      |                                                    ^
main.c:14:73: error: lvalue required as left operand of assignment
   14 |                 if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b))
      |                                                                         ^
Language: C

#include<stdio.h>

int main(void)
{
	int dataset = 0;
	int a = 0;
	int b = 0;
	int c = 0;
	int i;
	scanf("%d",&dataset);
	for(i = 0;i < dataset;i++)
	{
		scanf("%d",&a);
		scanf("%d",&b);
		scanf("%d",&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:16:31: error: lvalue required as left operand of assignment
   16 |                 if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b))
      |                               ^
main.c:16:52: error: lvalue required as left operand of assignment
   16 |                 if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b))
      |                                                    ^
main.c:16:73: error: lvalue required as left operand of assignment
   16 |                 if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b))
      |                                                                         ^
Language: C

#include<stdio.h>

int main(void)
{
	int dataset = 0;
	int a = 0;
	int b = 0;
	int c = 0;
	int i;
	scanf("%d",&dataset);
	for(i = 0;i < dataset;i++)
	{
		scanf("%d",&a);
		scanf("%d",&b);
		scanf("%d",&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:16:77: error: expected statement before ')' token
   16 |                 if(a*a + b*b == c*c || b*b + c*c == a*a || c*c + a*a == b*b))
      |                                                                             ^
main.c:19:18: error: 'else' without a previous 'if'
   19 |                 }else{
      |                  ^~~~
Language: C

#include<stdio.h>

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:47: error: lvalue required as left operand of assignment
    9 |         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(void)
{
	int N;
	int x, y, z;
	int i;
	scanf("%d", &N);

	for (i = 0; i < N; ++i) {
		scanf("%d %d %d", &x, &z, &y);
		flag = 0;
		if (x >= y && x >= z) {
			if (x*x == (y*y + z*z)) {
				printf("Yes\n");
			} else {
				printf("No\n");
			}
		} else if (y >= x && y >= z) {
			if (y*y == (x*x + z*z)) {
				printf("Yes\n");
			} else {
				printf("No\n");
			}
		} else {
			if (z*z == (x*x + y*y)) {
				printf("Yes\n");
			} else {
				printf("No\n");
			}
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: 'flag' undeclared (first use in this function)
   12 |                 flag = 0;
      |                 ^~~~
main.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
    int l,N;
    printf("Enter number:");
    scanf("%d%d",&l,&N);
    if(1 ? length of the side ? 1,000!=EOF)
    {
;
        printf("%d",yes);

    }
    else
        printf("%d",no);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'length' undeclared (first use in this function)
    7 |     if(1 ? length of the side ? 1,000!=EOF)
      |            ^~~~~~
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:18: error: expected ':' before 'of'
    7 |     if(1 ? length of the side ? 1,000!=EOF)
      |                  ^~~
      |                  :
main.c:10:21: error: 'yes' undeclared (first use in this function)
   10 |         printf("%d",yes);
      |                     ^~~
main.c:14:21: error: 'no' undeclared (first use in this function)
   14 |         printf("%d",no);
      |                     ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'else' without a previous 'if'
    7 |     else
      |     ^~~~
main.c: At top level:
main.c:10:1: error: expected identifier or '(' before 'return'
   10 | return 0;}
      | ^~~~~~
main.c:10:10: error: expected identifier or '(' before '}' token
   10 | return 0;}
      |          ^
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)
    
    if(a==(b*b+c*c)/a||b==(c*c+a*a)/b||c==(a*a+b*b)/c)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return(0);
}

  

Compiler output:
main.c: In function 'main':
main.c:9:29: error: expected ';' before 'if'
    9 |     scanf("%d%d%d",&a,&b,&c)
      |                             ^
      |                             ;
   10 | 
   11 |     if(a==(b*b+c*c)/a||b==(c*c+a*a)/b||c==(a*a+b*b)/c)
      |     ~~                       
main.c:13:5: error: 'else' without a previous 'if'
   13 |     else
      |     ^~~~
Language: C

#include<stdio.h>
int main(){
int a,b,c,i,n,;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a*a==b*b+c*c || b*b==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:3:15: error: expected identifier or '(' before ';' token
    3 | int a,b,c,i,n,;
      |               ^
Language: C

nt main(void)
{
	int a[10], n, i, j, work, pt, pt2;
	char ans[3001];
	scanf("%d", &n);
	for (int m=0;m<n;m++){
		for (i=0;i<3;i++)
		{
			scanf("%d", &a[i]);
		}

		for(i=0;i<2;i++){
			for(j=i+1;j<3;j++){
				if (a[i]>a[j]){
					work = a[i];
					a[i] = a[j];
					a[j] = a[i];
				}
			}
		}
		pt=a[2]*a[2];
		pt2=(a[0]*a[0])+(a[1]*a[1]);
		if(pt==pt2){
			ans[m]="YES";
		}else{
			ans[m]="NO";
		}
	}
	for (int m=0;m<n;m++){
	}

	return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'nt'; did you mean 'int'?
    1 | nt main(void)
      | ^~
      | int
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%d", &n);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | nt main(void)
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%d", &n);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:24:31: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   24 |                         ans[m]="YES";
      |                               ^
main.c:26:31: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   26 |                         ans[m]="NO";
      |                               ^
Language: C

#include<stdio.h>
int main(){
int x,y,z,i;
i=0;
scanf("%d",&i)
while(i!=0){
scanf("%d %d %d",&x,&y,&z);
if(z*z==y*y+x*x){
printf("YES");
}
else{
printf("NO");
}
i=i-1;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ';' before 'while'
    5 | scanf("%d",&i)
      |               ^
      |               ;
    6 | while(i!=0){
      | ~~~~~
Language: C

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

int main(){
int a[1001],b[1001],c[1001];
int i;
int n;
scanf("%d",&n);
for(i=0;i<n;i++){
	
	
	scanf("%d%d%d",&a,&b,&c);
	
	
	
}
for(i=0;i<n;i++){
	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:18:13: error: invalid operands to binary * (have 'int *' and 'int *')
   18 |         if(a*a+b*b==c*c){
      |            ~^
      |            ||
      |            |int *
      |            int *
main.c:18:17: error: invalid operands to binary * (have 'int *' and 'int *')
   18 |         if(a*a+b*b==c*c){
      |               ~ ^
      |               | |
      |               | int *
      |               int *
main.c:18:22: error: invalid operands to binary * (have 'int *' and 'int *')
   18 |         if(a*a+b*b==c*c){
      |                   ~~ ^
      |                   |  |
      |                   |  int *
      |                   int *
Language: C

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

##include<stdio.h>

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

int main(void){
	int x;
	int l,m,n;
	scanf("%d",&x);
	for(x=0;x<n;x++){
	scanf("%d %d %d",&l,&m,&n);
	
	if(l>m&&l>n){
		isRightTriangle(l,m,n);
		
	}else if(m>l&&m>n){
		isRightTriangle(m,l,n);
		
	}else{
		isRightTriangle(n,l,m);
		
	}
	}
	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>
      |          ^
main.c: In function 'main':
main.c:14:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   14 |         scanf("%d",&x);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | ##include<stdio.h>
main.c:14:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   14 |         scanf("%d",&x);
      |         ^~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:19:17: error: implicit declaration of function 'isRightTriangle' [-Wimplicit-function-declaration]
   19 |                 isRightTriangle(l,m,n);
      |                 ^~~~~~~~~~~~~~~
Language: C

#include <stdio.h>

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

  while (scanf("%d %d %d", &a, &b, %c) != EOF) {
    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:4:15: error: expected identifier or '(' before ';' token
    4 |   int a, b, c,;
      |               ^
main.c:6:36: error: expected expression before '%' token
    6 |   while (scanf("%d %d %d", &a, &b, %c) != EOF) {
      |                                    ^
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C


int main(void)
{
    int x, tri[3], i, j, maxi, n;

    scanf("%d", &n);

    for(i=0; i<n; i++){
        max=0; x=0;
        for(j=0; j<3; j++){
            scanf("%d", &tri[i]);
            tri[i] *= tri[i];
            if(max < tri[i]){
                maxi = j;
            }
        }
        for(j=0; j<3; j++){
            if(j != maxi){
                x+=tri[j];
            }
        }
        if(tri[maxi] == x){
            printf("YES\n");
        }else{
            printf("NO\n");            
        }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     scanf("%d", &n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |     scanf("%d", &n);
      |     ^~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:9: error: 'max' undeclared (first use in this function); did you mean 'maxi'?
    9 |         max=0; x=0;
      |         ^~~
      |         maxi
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   23 |             printf("YES\n");
      |             ^~~~~~
main.c:23:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:23:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   25 |             printf("NO\n");
      |             ^~~~~~
main.c:25:13: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:18: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   17 |                 }elseif(b2[i] == a2[i] + b2[i]){
      |                  ^~~~~~
main.c:17:48: error: expected ';' before '{' token
   17 |                 }elseif(b2[i] == a2[i] + b2[i]){
      |                                                ^
      |                                                ;
Language: C

#include<stdio.h>

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

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

#include<stdio.h>
#include<math.h>
int *sort(int input[3])
{
	for(int i=0;i<3-1;i++)
		for ( int j = i; j < 3;  j++)
		{
			if (input[i] < input[j])
			{
				int tmp = input[i];
				input[i] = input[j];
				input[j] = tmp;
			}
		}
	return input;
}
int main()
{
	int a, b, c;
	int count;
	int input[3],output[1000][3];
	scanf("%d", &count);
	int i = 0;
	while (count>i)
	{
		if (scanf("%d %d %d", &a, &b, &c) == EOF)
			break;
		else
		{
			input[0] = a;
			input[1] = b;
			input[2] = c;
			input = sort(input);
			output[count] = input;
		}
		i++;
	}
	for (i = 0; i < count; i++)
	{
		if (output[i][0] * output[i][0] == output[i][1] * output[i][1] + output[i][2] * output[i][2])
			printf("YES\n");
		else
		{
			printf("NO\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:33:31: error: assignment to expression with array type
   33 |                         input = sort(input);
      |                               ^
main.c:34:39: error: assignment to expression with array type
   34 |                         output[count] = input;
      |                                       ^
Language: C

#include<stdio.h>

int main(){

int a,b,c,i,n;

scanf("%d",&n);

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

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

return 0;
}

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

#include<stdio.h>

int main()
{
int N, i, j, tmp;
int R[3];

scanf("%d", &N);

for(i=0; i<N; i++){
scanf("%d", &R[3]);
for(i=0; i<3; i++){
for(j=0; j<3; j++){
if(R[i]<R[j]){
tmp = R[j];
R[j] = R[i];
R[i] = tmp;
}
}
}
}

if(R[0]*R[0]=R[1]*R[1]+R[2]*R[2]){
puts("Yes");
}else{
puts("No");
}

return 0;
}

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

#include<stdio.h>

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

scanf("%d", &N);

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

if(a<=b && b<=c){
max = c;
}else if(a<=c && c<=b){
max = b;
}else if(b<=c && c<=a){
max = a;
}else if(b<=a && a<=c){
max = c;
}else if(c<=a && a<=b){
max = b;
}else if(c<=b && b<=a){
max = a;
}

if(a==max){
if(a*a==b*b+c*c){
puts("Yes");
}else{
puts("No");
}
}else if(b==max){
if(b*b==a*a+c*c){
puts("Yes");
}else{
puts("No");
}
}else if(c==max){
if(c*c==a*a+b*b){
puts("Yes");
}else{
puts("No");
}
}

}

return 0;
}

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

#define SIDE_NUM 3

void swap(int *a, int *b);

int main(void){
	int dataNum;
	int side[SIDE_NUM];
	int i,j;
	bool endFlg = false;

	//セット数取り込み
	scanf("%d", &dataNum);

	for(i=0; i<dataNum; ++i){
		//三角形データ取り込み
		for(j=0; j<SIDE_NUM; ++j){
			scanf("%d", &side[i]);
		}

		//ソート
		while(endFlg == false){
			endFlg = true;
			for(j=0; j<2; ++j){
				if(side[j]<side[j+1]){
					swap(&side[j], &side[j+1]);
					endFlg = false;
				}
			}
		}

		//直角三角形かどうかの判定(三平方を満たすかどうか)
		if((side[0] * side[0]) == ((side[1] * side[1]) + (side[2] * side[2]))){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
	}
	return 0;
}

void swap(int *a, int *b){
    *b ^= *a;
    *a ^= *b;
    *b ^= *a;
}



Compiler output:
main.c: In function 'main':
main.c:9:9: error: unknown type name 'bool'
    9 |         bool endFlg = false;
      |         ^~~~
main.c:1:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | #define SIDE_NUM 3
main.c:9:23: error: 'false' undeclared (first use in this function)
    9 |         bool endFlg = false;
      |                       ^~~~~
main.c:9:23: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:9:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   12 |         scanf("%d", &dataNum);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define SIDE_NUM 3
main.c:12:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   12 |         scanf("%d", &dataNum);
      |         ^~~~~
main.c:12:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:22:34: error: 'true' undeclared (first use in this function)
   22 |                         endFlg = true;
      |                                  ^~~~
main.c:22:34: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:33:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   33 |                         printf("YES\n");
      |                         ^~~~~~
main.c:33:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:33:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:33:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:35:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   35 |                         printf("NO\n");
      |                         ^~~~~~
main.c:35:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>
int main(void)
{
    int x[1000],y[1000],z[1000];
    int i;
    int n;

 /*   while(1){
        scanf("%d",&n);
        if(n>1000){
            break;
        }
    }
*/

    scanf("%d",&n);
    

    for(i = 0; i <= n; i ++){
        scanf("%d %d %d",&x[i],&y[i],&z[i]);
        if(x[i]<1||x[i]>1000||y[i]<1||y[i]>1000||z[i]>i||z[i]<1000){
            i++;
        }
    }


/*    int n;
    int x,y,z;
    int a,b,c;
    int i,j,k;

 //   scanf("%d\n",&n);
 //   scanf("%d",&n);
 //   printf("3\n");
    scanf("%d %d %d",&x,&y,&z);
    scanf("%d %d %d",&a,&b,&c);
    scanf("%d %d %d",&i,&j,&k);*/


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

    if(x[i] == y[i] + z[i] || y[i] == x[i] + z[i] || z[i] == x[i] + y[i]){
        printf("YES\n");
    }else{
        printf("NO\n");
    }
    }
 /*   if(a*a==b*b+c*c){
        printf("YES\n");
    }else if(b*b==a*a+c*c){
        printf("YES\n");
    }else if(c*c==a*a+b*b){
        printf("YES\n");
    }else{
        printf("NO\n");
    }

    i *= i;
    j *= j;
    k *= k;

    if(i == j + k || j == i + k || k == i + j){
        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

   x[i] *= x[i];
    y[i] *= y[i];
    z[i] *= z[i];

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



Compiler output:
main.c:1:6: error: 'i' undeclared here (not in a function)
    1 |    x[i] *= x[i];
      |      ^
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*=' token
    1 |    x[i] *= x[i];
      |         ^~
main.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*=' token
    2 |     y[i] *= y[i];
      |          ^~
main.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*=' token
    3 |     z[i] *= z[i];
      |          ^~
main.c:5:5: error: expected identifier or '(' before 'if'
    5 |     if(x[i] == y[i] + z[i] || y[i] == x[i] + z[i] || z[i] == x[i] + y[i]){
      |     ^~
main.c:7:6: error: expected identifier or '(' before 'else'
    7 |     }else{
      |      ^~~~
main.c:10:5: error: expected identifier or '(' before '}' token
   10 |     }
      |     ^
Language: C

#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter the number of data set N\n")
scanf("%d\n",N);
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:5:43: error: expected ';' before 'scanf'
    5 | printf("Enter the number of data set N\n")
      |                                           ^
      |                                           ;
    6 | scanf("%d\n",N);
      | ~~~~~                                      
main.c:11:9: error: expected '(' before '{' token
   11 | else if {
      |         ^
      |         (
Language: C

#include<stdio.h>

int main()
{
    int a,c,i,k,j;
    scanf ("%d",&a);
    for(c=1;c<=a;c++)
    {
        scanf("%d %d %d",&i,&j,&k);
        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:10:20: error: 'b' undeclared (first use in this function)
   10 |         if(((a*a)=(b*b)+(c*c))||((b*b)=(a*a)+(c*c))||((c*c)=(a*a)+(b*b)))
      |                    ^
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
    int a,c,i,k,j,b;
    scanf ("%d",&i);
    for(c=1;c<=i;c++)
    {
        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:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected ';' before ')' token
    7 |     for(j=0,j<i;j++){
      |                    ^
      |                    ;
main.c:24:19: error: lvalue required as left operand of assignment
   24 |         if(a*a+b*b=c*c) printf("YES\n");
      |                   ^
Language: C

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



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

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




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


round = int(input(""))
for i in range (0,round):
    arr = []
    temp = input("")
    a,b,c = temp.split(" ")
    arr.append(int(a))
    arr.append(int(b))
    arr.append(int(c))
    arr.sort()
    if(pow(arr[0],2)+pow(arr[1],2)==pow(arr[2],2)):
        print("YES")
    else:
        print("NO")



Compiler output:
main.c:2:1: warning: data definition has no type or storage class
    2 | round = int(input(""))
      | ^~~~~
main.c:2:1: error: type defaults to 'int' in declaration of 'round' [-Wimplicit-int]
main.c:2:1: warning: built-in function 'round' declared as non-function [-Wbuiltin-declaration-mismatch]
main.c:2:9: error: expected expression before 'int'
    2 | round = int(input(""))
      |         ^~~