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

for i in range(int(input())):
    llist = list(map(int,input().split()))
    llist.sort()
    if(llist[2]**2 == llist[0]**2 + llist[1]**2):
        print('Yes')
    else:
        print('No')


Compiler output:
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('Yes')
      |               ^~~~~
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         print('No')
      |               ^~~~
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for i in range(int(input())):
      | ^~~
Language: C++

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
            int n;
            n = int.Parse(Console.ReadLine());
            for (int i = 0; i < n; i++)
            {
                int a, b, c;
                a = int.Parse(Console.ReadLine());
                b = int.Parse(Console.ReadLine());
                c = int.Parse(Console.ReadLine());
                if (c * c == a * a + b * b)
                {
                    Console.WriteLine("YES");
                }
                else Console.WriteLine("NO");
            }
        }
    }
}



Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:24:6: error: expected ';' after class definition
   24 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication1::Program::Main()':
a.cc:10:17: error: expected primary-expression before 'int'
   10 |             n = int.Parse(Console.ReadLine());
      |                 ^~~
a.cc:14:21: error: expected primary-expression before 'int'
   14 |                 a = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:15:21: error: expected primary-expression before 'int'
   15 |                 b = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:16:21: error: expected primary-expression before 'int'
   16 |                 c = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:19:21: error: 'Console' was not declared in this scope
   19 |                     Console.WriteLine("YES");
      |                     ^~~~~~~
a.cc:21:22: error: 'Console' was not declared in this scope
   21 |                 else Console.WriteLine("NO");
      |                      ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a[3];
	while(cin >> a[0] >> a[1] >> a[2] && a[0] != EOF)
	{
		sort(a,a+3);
		if(a[0]*a[0] + a[1]*a[1] == a[2]*a[2])
			cout << "YES";
		else
			cout << "NO";
		cout << endl;
	}
	
}

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

#include <stdio.h>

int try(int a, int b, int c){
	if(a*a+b*b==c*c){
		return 1;
	}
	return 0;
}

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

Compiler output:
a.cc:3:5: error: expected unqualified-id before 'try'
    3 | int try(int a, int b, int c){
      |     ^~~
a.cc: In function 'int main()':
a.cc:15:20: error: expected primary-expression before 'try'
   15 |                 if(try(a, b, c) || try(a, c, b) || try(c, b, a)){
      |                    ^~~
a.cc:15:20: error: expected ')' before 'try'
   15 |                 if(try(a, b, c) || try(a, c, b) || try(c, b, a)){
      |                   ~^~~
      |                    )
Language: C++


#include <stdio.h>

int try(int a, int b, int c){
	if(a*a+b*b==c*c){
		return 1;
	}
	return 0;
}

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

Compiler output:
a.cc:4:5: error: expected unqualified-id before 'try'
    4 | int try(int a, int b, int c){
      |     ^~~
a.cc: In function 'int main()':
a.cc:16:20: error: expected primary-expression before 'try'
   16 |                 if(try(a, b, c) || try(a, c, b) || try(c, b, a)){
      |                    ^~~
a.cc:16:20: error: expected ')' before 'try'
   16 |                 if(try(a, b, c) || try(a, c, b) || try(c, b, a)){
      |                   ~^~~
      |                    )
Language: C++

#include <string>
#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>


using namespace std;

string tri(int a, int b, int c){
	if(a + b >= c && a - b <= c)return true;
	return false;
}

int main(void) {
	int len, a, b, c;
	cin >> len;
	for(int i = 0; i < len; i++){
		cin >> a >> b >> c;
		cout << tri(a, b, c) << endl;
	}
}

Compiler output:
a.cc: In function 'std::string tri(int, int, int)':
a.cc:25:44: error: could not convert 'true' from 'bool' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   25 |         if(a + b >= c && a - b <= c)return true;
      |                                            ^~~~
      |                                            |
      |                                            bool
a.cc:26:16: error: could not convert 'false' from 'bool' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   26 |         return false;
      |                ^~~~~
      |                |
      |                bool
Language: C++

#include <iostream>

using namespace std;

void solve(int a, int b, int c) {
	bool f = false;
	int max_num = max(a, max(b, c);
	int sum = a+b+c-max_num;
	if (max_num < sum) f = true;
	if (f) cout << "YES" << endl;
	else cout << "NO" << endl;
}

int main() {
	int num, a, b, c;
	cin >> num;
	for (int i=0; i<num; i++) {
		cin >> a >> b >> c;
		solve(a,b,c);
	}
	return 0;
}

Compiler output:
a.cc: In function 'void solve(int, int, int)':
a.cc:7:39: error: expected ')' before ';' token
    7 |         int max_num = max(a, max(b, c);
      |                          ~            ^
      |                                       )
Language: C++


#include <string>
#include <sstream>
#include <iostream>

int main(void) 
{
    std::string str;
    int lens[3];
    int nolines;

    getline(std::cin, str);
    std::istringstream str_s(str);

    str_s >> nolines;

    int i;
    for (i = 0; i < nolines; i++) {
        getline(std::cin, str);
        std::istringstream str_s(str);

        str_s >> lens[0] >> lens[1] >> lens[2];

        std::sort(lens, lens+3);

        if (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[1]) 
            std::cout << "YES" << std::endl;
        else
            std::cout << "NO"  << std::endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   24 |         std::sort(lens, lens+3);
      |              ^~~~
      |              qsort
Language: C++

#include <iostream>

using namespace std;

int main(){
    int N;
    cin>>N;
    if(cin.eof())return;

    while(N--){
        int x,y,z;
        cin>>x>>y>>z;
        if((x^2+y^2)==(z^2)||(x^2+z^2)==(y^2)||(y^2+z^2)==(x^2))cout<<"YES\n";
        else cout<<"NO\n";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: return-statement with no value, in function returning 'int' [-fpermissive]
    8 |     if(cin.eof())return;
      |                  ^~~~~~
Language: C++

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

Compiler output:
a.cc:2:79: warning: missing terminating " character
    2 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO:"YES"))a*=a,b*=b,c*=c;
      |                                                                               ^
a.cc:2:79: error: missing terminating " character
    2 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&b+c-a)?"NO:"YES"))a*=a,b*=b,c*=c;
      |                                                                               ^~~~~~~~~~~~~~~~~~
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){
      |     ^
Language: C++

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

Compiler output:
a.cc:3:36: warning: missing terminating " character
    3 | puts((a+b-c&&a+c-b&&b+c-a)?"NO:"YES"))
      |                                    ^
a.cc:3:36: error: missing terminating " character
    3 | puts((a+b-c&&a+c-b&&b+c-a)?"NO:"YES"))
      |                                    ^~~
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){
      |     ^
Language: C++

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

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){
      |     ^
Language: C++

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

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){
      |     ^
Language: C++

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

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){
      |     ^
Language: C++

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

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){
      |     ^
Language: C++

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

int main(){
	int n,a,b,c;
	int m=0;
	scanf("%d",&n);
	for(int i=0;i<n;i++){
		int a[3];
		for(int j=0;j<3;j++)scanf("%d",&a[j]);
		std::sort(a,a+3);
		
		m=max(a,b);
		m=max(m,c);
		
		if(a[0]*a[0]+a[1]*a[1] == a[2]*a[2])puts("YES");
		else{
			if(m<100)puts("NO");
			else puts("YES");
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
   13 |                 m=max(a,b);
      |                   ^~~
      |                   std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){for(;~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES")a*=a,b*=b,c*=c;}
      |     ^
Language: C++

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

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){for(;~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |     ^
Language: C++

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

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |     ^
Language: C++

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

Compiler output:
a.cc:1:85: warning: missing terminating " character
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":YES"))a*=a,b*=b,c*=c;}
      |                                                                                     ^
a.cc:1:85: error: missing terminating " character
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":YES"))a*=a,b*=b,c*=c;}
      |                                                                                     ^~~~~~~~~~~~~~~~~~~
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":YES"))a*=a,b*=b,c*=c;}
      |     ^
Language: C++

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

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |     ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
      |       ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
      |       ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i;main(a,b,c){for(scanf("%*d"),i=10;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | i;main(a,b,c){for(scanf("%*d"),i=10;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
      |       ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i;main(a,b,c){for(scanf("%*d"),i=400;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | i;main(a,b,c){for(scanf("%*d"),i=400;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
      |       ^
Language: C++

#include <ioatream>
#include <algorithm>

using namespace std;

int main(){
    int a[3];
    while(cin >> a[0] >> a[1] >> a[2]){
        sort(a, a+3);
        if(a[0]*a[0]+a[1]*a[1] == a[2]*a[2]) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
}

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

#include<iostream>
using namespace std;
int main(){
	int n=0;
	cin>>n;
	int a,b,c;
	int x,y,z;
	for(int i=1;i<=n;i++){
		cin>>a>>b>>c;
		if(a*a==b*b+c*c||b*b=a*a+c*c||c*c=a*a+b*b)cout<<"YES"<<endl;
		else cout<<"NO"<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:45: error: lvalue required as left operand of assignment
   10 |                 if(a*a==b*b+c*c||b*b=a*a+c*c||c*c=a*a+b*b)cout<<"YES"<<endl;
      |                                      ~~~~~~~^~~~~
Language: C++

#include "StdAfx.h"
#include "AOJ0003.h"
#include <string>
#include <sstream>
#include <iostream>
#include <stack>
#include <queue>
#include <vector>
using namespace std;

vector<string> exinputstring(){
	vector<string> ss;
	string s;
	while(getline(cin,s) ){
		ss.push_back(s);
	}
	
	return ss;
}
vector<int> exinputint(){
	vector<int> ss;
	int d;
	while( !cin.eof() ) {
		cin >>d;
		ss.push_back(d);
	}
	return ss;
}

main(){
	vector<int> inp=exinputint();
	vector<int>::iterator it = inp.begin();
	for (it++;it != inp.end();){
		int a=*it;it++;
		int b=*it;it++;
		int c=*it;it++;
		if ((a>=b&&b>=c&&a*a==b*b+c*c)||
			(b>=a&&b>=c&&b*b==a*a+c*c)||
			(c>=a&&c>=b&&c*c==a*a+b*b)){
				cout<<"YES";}else{cout<<"NO";}

	}
}

Compiler output:
a.cc:1:10: fatal error: StdAfx.h: No such file or directory
    1 | #include "StdAfx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a[3];
    int n;
    cin >> n;
    for (int i = 0; i < n; i++){
	cin >> a[0] >> a[1] >> a[2];
	sort(a, a + 3);
	if (a[0] * a[0] + a[1] * a[1] == a[2] * a[2]) puts("YES");
	else puts("NO");
    }
    return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |         sort(a, a + 3);
      |         ^~~~
      |         short
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a[3];
    int n;
    cin >> n;
    for (int i = 0; i < n; i++){
	cin >> a[0] >> a[1] >> a[2];
	sort(a, a + 3);
	if (a[0] * a[0] + a[1] * a[1] == a[2] * a[2]) puts("YES");
	else puts("NO");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |         sort(a, a + 3);
      |         ^~~~
      |         short
Language: C++

#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
int T;
scanf("%d",&T);
for(int t=0;t<T;t++){
int edge[3];
printf("%d %d %d",edge,edge+1,edge+2);
sort(edge,edge+3,greater<int>());
if(edge[0]*edge[0]==edge[1]*edge[1]+edge[2]*edge[2]){
printf("%s\n","YES");
}else{
printf("%s\n","NO");
}
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: 'sort' was not declared in this scope; did you mean 'short'?
   13 | sort(edge,edge+3,greater<int>());
      | ^~~~
      | short
Language: C++


#include "cstdio"


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

	scanf("%d",&n);

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

		if(b > a && b > c){
			if( b^2 == a^2 + c^2){
				printf("YES");
			}else {
				printf("NO");
			}}
			if(c > a && c > b){
				if( c^2 == a^2 + b^2){
					printf("YES");
				}else {
					printf("NO");
				}}}}


	return 0;
}

Compiler output:
a.cc:34:9: error: expected unqualified-id before 'return'
   34 |         return 0;
      |         ^~~~~~
a.cc:35:1: error: expected declaration before '}' token
   35 | }
      | ^
Language: C++

#include <cstdio>

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

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

Compiler output:
a.cc:3:1: error: 'imt' does not name a type; did you mean 'int'?
    3 | imt main() {
      | ^~~
      | int
Language: C++

#include <cstdio>

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:69: error: expected primary-expression before '==' token
    9 |                 if(a^2 + b^2 == c^2 || c^2 + a^2 == b^2 || b^2 + c^ == a^2){
      |                                                                     ^~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main() {

    int sankaku[3];
    
    while (1) {
    cin >> sankaku[0] >> sankaku[1] >> sankaku[2];
    sort (sankaku, sankaku + 3);
    
    if (sankaku[2] == (sankaku[0] * sankaku[0]) + (sankaku[1] * sankaku[1])) {
        cout << "YES" << endl;
    }else {
        cout << "NO" << endl;
    }
    }
    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |     sort (sankaku, sankaku + 3);
      |     ^~~~
      |     short
Language: C++

#include <iostream>
using namespace std;

int main() {

    int N = 3;
    int hen[3];
    
    cout << N;
    
 
        cin >> hen[0] >> hen[1] >> hen[2];
    
    
    sort(hen, hen + 3);
    
  
    
    if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) {
        cout << "YES";
       else cout << "NO";
        
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |     sort(hen, hen + 3);
      |     ^~~~
      |     short
a.cc:21:8: error: expected '}' before 'else'
   21 |        else cout << "NO";
      |        ^~~~
a.cc:19:63: note: to match this '{'
   19 |     if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) {
      |                                                               ^
a.cc: At global scope:
a.cc:25:5: error: expected unqualified-id before 'return'
   25 |     return 0;
      |     ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {

    int N;
    cin >> N;
    //cout << N;
    int hen[3];
    while (N --> 0) {
        cin >> hen[0] >> hen[1] >> hen[2];
        sort(hen, hen + 3);
        
        if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) {
            cout << "YES";
        } else {
            cout << "NO";
        }
    }
    

    return 0;
}
  
    
    if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) {
        cout << "YES";
       else cout << "NO";
        
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |         sort(hen, hen + 3);
      |         ^~~~
      |         short
a.cc: At global scope:
a.cc:26:5: error: expected unqualified-id before 'if'
   26 |     if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) {
      |     ^~
a.cc:32:5: error: expected unqualified-id before 'return'
   32 |     return 0;
      |     ^~~~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {

    int N;
    cin >> N;
 
    int hen[3];
    while (N --> 0) {
        cin >> hen[0] >> hen[1] >> hen[2];
        sort(hen, hen + 3);
        
        if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) {
            cout << "YES";
        } else {
            cout << "NO";
        }
    }
    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |         sort(hen, hen + 3);
      |         ^~~~
      |         short
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define MOD 1000000007 //10^9+7
#define INF 1000000000 //10^9

char m[500][500];

int main ()
{
    int H,W;
    cin>>H>>W;
    
    for (int i=0; i<H; i++) {
        for (int j=0; j<W; j++) {
            cin>>m[i][j];
        }
    }
    
    queue<pint < pint > >;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:11: error: 'pint' {aka 'std::pair<int, int>'} is not a template
   39 |     queue<pint < pint > >;
      |           ^~~~
a.cc:39:5: error: declaration does not declare anything [-fpermissive]
   39 |     queue<pint < pint > >;
      |     ^~~~~~~~~~~~~~~~~~~~~
Language: C++

print "\n".join(s for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))]))

Compiler output:
a.cc:1:61: warning: multi-character character constant [-Wmultichar]
    1 | print "\n".join(s for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))]))
      |                                                             ^~~~~
a.cc:1:70: warning: multi-character character constant [-Wmultichar]
    1 | print "\n".join(s for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))]))
      |                                                                      ^~~~
a.cc:1:1: error: 'print' does not name a type; did you mean 'int'?
    1 | print "\n".join(s for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))]))
      | ^~~~~
      | int
Language: C++

a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO',[sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]

Compiler output:
a.cc:1:55: warning: multi-character character constant [-Wmultichar]
    1 | a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO',[sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]
      |                                                       ^~~~~
a.cc:1:64: warning: multi-character character constant [-Wmultichar]
    1 | a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO',[sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]
      |                                                                ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO',[sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]
      | ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(int argc, char** argv)
{
    int num;

    cin >> num;
    for (int i = 0; i < num; i++) {
        vector<int> v = vector<int>(3);
        cin >> v[0] >> v[1] >> v[2];
        sort(v.begin(), v.end());
        if (v[0] * v[0] + v[1] * v[1] == v[2] * v[2]) {
            cout << "YES\n";
        } else {
            cout << "NO\n";
        }
    }
    return 0;
}
 

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |         sort(v.begin(), v.end());
      |         ^~~~
      |         short
Language: C++

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

		if((b*b)+(c*c) == (a*a))
			cout << "YES" << endl;
		else
			cout << "NO" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> n;
      |         ^~~
a.cc:21:25: error: 'cout' was not declared in this scope
   21 |                         cout << "YES" << endl;
      |                         ^~~~
a.cc:21:42: error: 'endl' was not declared in this scope
   21 |                         cout << "YES" << endl;
      |                                          ^~~~
a.cc:23:25: error: 'cout' was not declared in this scope
   23 |                         cout << "NO" << endl;
      |                         ^~~~
a.cc:23:41: error: 'endl' was not declared in this scope
   23 |                         cout << "NO" << endl;
      |                                         ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
 int a,b,c,n;
 while (cin>>n)
 for(int i=0;i<=n;i++)
  {
  while(cin>>a,b,c)
{
int asq=a*a,bsq=b*b,csq=c*c;
if(asq+bsq==csq||bsq+csq==asq||

Compiler output:
a.cc: In function 'int main()':
a.cc:13:32: error: expected primary-expression at end of input
   13 | if(asq+bsq==csq||bsq+csq==asq||
      |                                ^
a.cc:13:32: error: expected ')' at end of input
   13 | if(asq+bsq==csq||bsq+csq==asq||
      |   ~                            ^
      |                                )
a.cc:13:32: error: expected statement at end of input
a.cc:13:32: error: expected '}' at end of input
a.cc:11:1: note: to match this '{'
   11 | {
      | ^
a.cc:13:32: error: expected '}' at end of input
   13 | if(asq+bsq==csq||bsq+csq==asq||
      |                                ^
a.cc:9:3: note: to match this '{'
    9 |   {
      |   ^
a.cc:13:32: error: expected '}' at end of input
   13 | if(asq+bsq==csq||bsq+csq==asq||
      |                                ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

import sys

N = int(sys.stdin.readline())

def check(num_list):
    largest = max(num_list)
    largest_idx = num_list.index(largest)
    tmp = sum([pow(x, 2) for i, x in enumerate(num_list) if i != largest_idx])
    if tmp == pow(largest, 2):
        return "YES"
    else:
        return "NO"

for i in xrange(N):
    line = sys.stdin.readline()
    num_list = map(int, line.strip().split())
    print "{0}".format(check(num_list))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int main(void){
	int x[3];
	cin >> x[1];
	string n = "NO", y = "YES";
	while(cin >> x[0] >> x[1] >> x[2]){
		sort(x,x + 3);
		if(x[2] * x[2] == x[1] * x[1] + x[0] * x[0])
			cout << y << endl;
		else
			cout << n << endl;
		i++;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'i' was not declared in this scope
   15 |                 i++;
      |                 ^
Language: C++

#include<stdio.h>
#include<algorithm.h>
#include<math.h>
int main(){
	int a[3];
	int n;
	scanf("%d",&n);
	while(n>0){
		scanf("%d %d %d",&a[0],&a[1],&a[2]);
		sort(a,a+3);
		
		if(a[0]*a[0] +a[1]*a[1]==a[2]*a[2]){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
		n--;
	}
	
}

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

#include <iostream>
int main(){

	int n;
	int sd[3];
	int max,m=-1;
	bool isRect=false;
	bool isTri=true;

	cin>>n;

	for(int i=0;i<n;++i){
		cin>>sd[0]>>sd[1]>>sd[2];
		//長辺の判定
		max=0;
		for(int i=0;i<3;++i){
			if(sd[i]==0){isTri=false;}
			if(sd[i]>max){m=i;max=sd[i]}
		}

		//直角三角形の判定
		if(isTri){
			switch(m){
			case 0:
				if(sd[0]*sd[0] == (sd[1]*sd[1] + sd[2]*sd[2])){isRect=true;}else{isRect=false;}
				break;
			case 1:
				if(sd[1]*sd[1] == (sd[0]*sd[0] + sd[2]*sd[2])){isRect=true;}else{isRect=false;}
				break;
			case 2:
				if(sd[2]*sd[2] == (sd[1]*sd[1] + sd[0]*sd[0])){isRect=true;}else{isRect=false;}
				break;
			}
		}

		if(isRect){cout<<"YES\n";}else{cout<<"NO\n";}

	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:52: error: expected ';' before '}' token
   18 |                         if(sd[i]>max){m=i;max=sd[i]}
      |                                                    ^
      |                                                    ;
a.cc:36:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   36 |                 if(isRect){cout<<"YES\n";}else{cout<<"NO\n";}
      |                            ^~~~
      |                            std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:36:48: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   36 |                 if(isRect){cout<<"YES\n";}else{cout<<"NO\n";}
      |                                                ^~~~
      |                                                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){

	int n;
	int sd[3];
	int max,m=-1;
	bool isRect=false;
	bool isTri=true;

	cin>>n;

	for(int i=0;i<n;++i){
		cin>>sd[0]>>sd[1]>>sd[2];
		//長辺の判定
		max=0;
		for(int i=0;i<3;++i){
			if(sd[i]==0){isTri=false;}
			if(sd[i]>max){m=i;max=sd[i]}
		}

		//直角三角形の判定
		if(isTri){
			switch(m){
			case 0:
				if(sd[0]*sd[0] == (sd[1]*sd[1] + sd[2]*sd[2])){isRect=true;}else{isRect=false;}
				break;
			case 1:
				if(sd[1]*sd[1] == (sd[0]*sd[0] + sd[2]*sd[2])){isRect=true;}else{isRect=false;}
				break;
			case 2:
				if(sd[2]*sd[2] == (sd[1]*sd[1] + sd[0]*sd[0])){isRect=true;}else{isRect=false;}
				break;
			}
		}

		if(isRect){cout<<"YES\n";}else{cout<<"NO\n";}

	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:52: error: expected ';' before '}' token
   19 |                         if(sd[i]>max){m=i;max=sd[i]}
      |                                                    ^
      |                                                    ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: unable to find numeric literal operator 'operator""\U0000ff100'
    5 |         int k[10０0][3],ct;
      |               ^~~~~
a.cc:9:35: error: 'k' was not declared in this scope
    9 |                 scanf("%d %d %d",&k[f1][0],&k[f1][1],&k[f1][2]);
      |                                   ^
a.cc:14:36: error: 'k' was not declared in this scope
   14 |                                 if(k[f][f1]>k[f][f2]){
      |                                    ^
a.cc:23:32: error: 'k' was not declared in this scope
   23 |                 if(pow((double)k[f1][0],2)==pow((double)k[f1][1],2)+pow((double)k[f1][2],2)){
      |                                ^
Language: C++

(function(undefined){
	'use strict';
	(function init() {
		this.output = function() {
			console.log.apply( console, arguments );
		};
		this.stdin = process.openStdin();
		stdin.setEncoding('utf8');
		this.input_list = [];
		stdin.on('data', function(chunk){
			var result = chunk.match(/\d+/g);
			input_list = input_list.concat(result);
		});
		this.input_number = function() {
			return parseInt( input_list.splice(0,1)[0] );
		};
	}).call( this );
	(function solver(){
		function sq(x) {
			return x * x;
		}
		function check(v) {
			return sq(v.a)+sq(v.b)===sq(v.c)
			|| sq(v.b)+sq(v.c)===sq(v.a)
			|| sq(v.c)+sq(v.a)===sq(v.b);
		}
		setTimeout( function solve() {
			var n = input_number();
			var vertexes = [];
			while ( n -- )
				vertexes.push({
					a: input_number(),
					b: input_number(),
					c: input_number()
				});
			vertexes.forEach(function(vertex){
				output( check(vertex) ? 'YES' : 'NO' );
			});
		}, 0 );
	})();
}).call(global);

Compiler output:
a.cc:2:9: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    2 |         'use strict';
      |         ^~~~~~~~~~~~
a.cc:8:35: warning: multi-character character constant [-Wmultichar]
    8 |                 stdin.setEncoding('utf8');
      |                                   ^~~~~~
a.cc:10:26: warning: multi-character character constant [-Wmultichar]
   10 |                 stdin.on('data', function(chunk){
      |                          ^~~~~~
a.cc:11:51: error: stray '\' in program
   11 |                         var result = chunk.match(/\d+/g);
      |                                                   ^
a.cc:37:57: warning: multi-character character constant [-Wmultichar]
   37 |                                 output( check(vertex) ? 'YES' : 'NO' );
      |                                                         ^~~~~
a.cc:37:65: warning: multi-character character constant [-Wmultichar]
   37 |                                 output( check(vertex) ? 'YES' : 'NO' );
      |                                                                 ^~~~
a.cc:1:10: error: expected ')' before '(' token
    1 | (function(undefined){
      | ~        ^
      |          )
a.cc:41:2: error: expected unqualified-id before ')' token
   41 | }).call(global);
      |  ^
Language: C++

#include <stdio.h>


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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'sqrt' was not declared in this scope
   11 |         sum=sqrt((a*a)+(b*b));
      |             ^~~~
Language: C++

#include <cstdio>

int main(){
	int n;
	int a[3];
	scanf("%d",&n);

	for (int i=0;i<n;++i){
		for (int j=0;j<3;++j) scanf("%d",a+j);
		bool z=false;
		for (int k=0;k<3;++k)
			if (a[k]*a[k]+a[(k+1)%3]*a[(k+1)%3]==a[(k+2)%3]*a[(k+2)%3])
				z=true;
		if (z) print("YES\n");
		else print("NO\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: 'print' was not declared in this scope; did you mean 'printf'?
   14 |                 if (z) print("YES\n");
      |                        ^~~~~
      |                        printf
a.cc:15:22: error: 'print' was not declared in this scope; did you mean 'printf'?
   15 |                 else print("NO\n");
      |                      ^~~~~
      |                      printf
Language: C++

#include <iostream>
using namespace std;

int right_triangle(int a,int b,int c)
{
	if (   a == sqrt(pow(b,2)+pow(c,2)) 
	    || b == sqrt(pow(c,2)+pow(a,2))
	    || c == sqrt(pow(a,2)+pow(b,2)))
	    return 1;
	else
		return 0;
}

int main()
{
	int a[3],n;
	cin >> n;
	for(int j=0;j<=n-1;j++){
		for(int i=0;i<=2;i++)
			cin >> a[i];
		switch (right_triangle(a[0],a[1],a[2]))
		{
		case 0:
			cout << "NO" << endl;
			break;
		case 1:
			cout << "YES" << endl;
			break;
		default:
			cout << "error" << endl;
			break;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int right_triangle(int, int, int)':
a.cc:6:26: error: 'pow' was not declared in this scope
    6 |         if (   a == sqrt(pow(b,2)+pow(c,2))
      |                          ^~~
a.cc:6:21: error: 'sqrt' was not declared in this scope
    6 |         if (   a == sqrt(pow(b,2)+pow(c,2))
      |                     ^~~~
a.cc:12:1: warning: control reaches end of non-void function [-Wreturn-type]
   12 | }
      | ^
Language: C++

int main(void)
{
	int a,b,c,i,k;
	int sort[3];
	int num;
	int max,mid,min;
	int d=1,n=3;
	num<=1000;
	
	scanf("%d",&num);
	
	
    while(d<=num){
		scanf("%d %d %d",&sort[0],&sort[1],&sort[2]);
		for(n=3;n<=1;n--){
			for(i=0;i<=n-1;i++){
				if(sort[i]>sort[i+1]){
						k=sort[i];
						sort[i]=sort[i+1];
						sort[i+1]=k;
					}
			}
		}
		max=sort[2];
		mid=sort[1];
		min=sort[0];
		if(max*max==mid*mid+min*min){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
		d++;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf' was not declared in this scope
   10 |         scanf("%d",&num);
      |         ^~~~~
a.cc:28:25: error: 'printf' was not declared in this scope
   28 |                         printf("YES\n");
      |                         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:30:25: error: 'printf' was not declared in this scope
   30 |                         printf("NO\n");
      |                         ^~~~~~
a.cc:30:25: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>

using namespace std;

int main(){
    int t, n[3];
    cin >> t;
    while(t--){
        cin >> n[0] >> n[1] >> n[2];
        sort( n, n+2);
        for(int i=0;i<3;i++) n[i]*=n[i];
        if(n[2]-n[0]-n[1]) cout << "NO" <<endl;
        else cout << "YES" <<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |         sort( n, n+2);
      |         ^~~~
      |         short
Language: C++

#Include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <cmath>
using namespace std;
typedef vector<int> VI;
#define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i )

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    vector<vector<int>> triangles;
    
    int n;
    cin >> n;
    
    REP(i, 0, n) {
        vector<int> tmp;
        int a, b, c;
        cin >> a >> b >> c;
        tmp.push_back(a);
        tmp.push_back(b);
        tmp.push_back(c);
        
        sort(tmp.begin(), tmp.end());
        triangles.push_back(tmp);
    }

    for(auto sides : triangles) {
        if (sides[2] * sides[2] == sides[0]*sides[0]+sides[1]*sides[1]) {
            cout << "YES" << endl;
        } else {
            cout << "NO" << endl;
        }
    }
    
    return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:13:10: error: 'std::ios' has not been declared
   13 |     std::ios::sync_with_stdio(false);
      |          ^~~
a.cc:14:10: error: 'cin' is not a member of 'std'
   14 |     std::cin.tie(0);
      |          ^~~
a.cc:8:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    7 | #include <cmath>
  +++ |+#include <iostream>
    8 | using namespace std;
a.cc:19:5: error: 'cin' was not declared in this scope
   19 |     cin >> n;
      |     ^~~
a.cc:19:5: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:13: error: 'cout' was not declared in this scope
   35 |             cout << "YES" << endl;
      |             ^~~~
a.cc:35:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:30: error: 'endl' was not declared in this scope
   35 |             cout << "YES" << endl;
      |                              ^~~~
a.cc:8:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    7 | #include <cmath>
  +++ |+#include <ostream>
    8 | using namespace std;
a.cc:37:13: error: 'cout' was not declared in this scope
   37 |             cout << "NO" << endl;
      |             ^~~~
a.cc:37:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:37:29: error: 'endl' was not declared in this scope
   37 |             cout << "NO" << endl;
      |                             ^~~~
a.cc:37:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#Include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <cmath>
using namespace std;
typedef vector<int> VI;
#define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i )

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    vector<vector<int>> triangles;
    
    int n;
    cin >> n;
    
    REP(i, 0, n) {
        vector<int> tmp;
        int a, b, c;
        cin >> a >> b >> c;
        tmp.push_back(a);
        tmp.push_back(b);
        tmp.push_back(c);
        
        sort(tmp.begin(), tmp.end());
        triangles.push_back(tmp);
    }

    for(auto sides : triangles) {
        if (sides[2] * sides[2] == sides[0]*sides[0]+sides[1]*sides[1]) {
            cout << "YES" << endl;
        } else {
            cout << "NO" << endl;
        }
    }
    
    return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:13:5: error: 'ios' has not been declared
   13 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin.tie(0);
      |     ^~~
a.cc:8:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    7 | #include <cmath>
  +++ |+#include <iostream>
    8 | using namespace std;
a.cc:35:13: error: 'cout' was not declared in this scope
   35 |             cout << "YES" << endl;
      |             ^~~~
a.cc:35:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:30: error: 'endl' was not declared in this scope
   35 |             cout << "YES" << endl;
      |                              ^~~~
a.cc:8:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    7 | #include <cmath>
  +++ |+#include <ostream>
    8 | using namespace std;
a.cc:37:13: error: 'cout' was not declared in this scope
   37 |             cout << "NO" << endl;
      |             ^~~~
a.cc:37:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:37:29: error: 'endl' was not declared in this scope
   37 |             cout << "NO" << endl;
      |                             ^~~~
a.cc:37:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'