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

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

bool check_triangle(int a, int b, int c);

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

	return 0;
}

bool check_triangle(int a, int b, int c)
{
	
	vector<int> edges;
	edges.push_back(a);
	edges.push_back(b);
	edges.push_back(c);
	sort(edges.begin(),edges.end());

	if (edges[0]*edges[0] + edges[1]*edges[1]　== edges[2]*edges[2])
		return true;
	else
		return false;		
}

Compiler output:
a.cc:33:50: error: extended character 　 is not valid in an identifier
   33 |         if (edges[0]*edges[0] + edges[1]*edges[1]　== edges[2]*edges[2])
      |                                                  ^
a.cc: In function 'bool check_triangle(int, int, int)':
a.cc:33:50: error: expected ')' before '\U00003000'
   33 |         if (edges[0]*edges[0] + edges[1]*edges[1]　== edges[2]*edges[2])
      |            ~                                     ^~
      |                                                  )
Language: C++

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

int main()
{
 int n[3],t;
 scanf("%d", &t);
 while(t!=0){
  scanf("%d %d %d", &n[0],&n[1], &n[2]);
  sort(n,n+3);

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

}

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

#include <iostream>

int main()
{
    int n;
    std::cin >> n;

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

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

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

Compiler output:
a.cc:1:1: error: 'nt' does not name a type; did you mean 'int'?
    1 | nt main(){scanf("%*d");for(int a,b,c;~scanf("%d%d%d",&a,&b,&c);puts(b+c-a?a+c-b?a+b-c?"NO":"YES":"YES":"YES")){a*=a;b*=b;c*=c;}}
      | ^~
      | int
Language: C++

#include <stdio.h>

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

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

int chk(int a, int b, int c){
	int x;

	if(a >= b){
		x = a;
		a = b;
		b = x;
	}

	if(b >= c){
		x = b;
		b = c;
		c = x;
	}

	if(a >= b){
		x = a;
		a = b;
		b = x;
	}

	if(c*c == a*a + b*b) return 1;
	else return 0;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:20: error: 'chk' was not declared in this scope
    9 |                 if(chk(a, b, c)) printf("YES\n");
      |                    ^~~
Language: C++

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

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

  scanf("%d",&N);
  for(i = 0;i<N;i++){
    cin >> a >> b >> c;
    a*=a;
    b*=b;
    c*=c;
    if(a+b==c||b+c==a||a+c==b)cout << "YES" << endl;
    else cout << "NO" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:31: error: expected '}' at end of input
   15 |     else cout << "NO" << endl;
      |                               ^
a.cc:9:21: note: to match this '{'
    9 |   for(i = 0;i<N;i++){
      |                     ^
a.cc:15:31: error: expected '}' at end of input
   15 |     else cout << "NO" << endl;
      |                               ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;

int main(){
  int a,b,c;
  while(scanf("%d %d %d",&a,&b,&c)!=EOF){
  a*=a;
  b*=b;
  c*=c;
  if(a==(b+c)||b==(a+c)||c==(a+b))cout << "YES" <<endl;
  else cout << "NO" <<endl;
  }
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: expected '}' at end of input
   15 |   return 0;
      |            ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: expected '}' at end of input
   15 |   return 0;
      |            ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <cstdio>
using namespace std;

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

  scanf("%d",&N);
  for(i = 0;i<N;i++){
    cin >> a >> b >> c;
    a*=a;
    b*=b;
    c*=c;
    if(a+b==c||b+c==a||a+c==b)cout << "YES" << endl;
    else cout << "NO" << endl;

}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> a >> b >> c;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:13:31: error: 'cout' was not declared in this scope
   13 |     if(a+b==c||b+c==a||a+c==b)cout << "YES" << endl;
      |                               ^~~~
a.cc:13:31: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:48: error: 'endl' was not declared in this scope
   13 |     if(a+b==c||b+c==a||a+c==b)cout << "YES" << endl;
      |                                                ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:14:10: error: 'cout' was not declared in this scope
   14 |     else cout << "NO" << endl;
      |          ^~~~
a.cc:14:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:26: error: 'endl' was not declared in this scope
   14 |     else cout << "NO" << endl;
      |                          ^~~~
a.cc:14:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <cmath>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

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

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

#include <iostream>
#include <cmath>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main()
{
    int a,b,c,N;
    priority_queue< double, vector<double>, greater<double> > que;
    cin >> N;
    REP(i,N) {
        cin >> a >> b >> c;
        que.push(a);que.push(b);que.push(c);
        c=que.top();
        que.pop();
        b=que.top();
        que.pop();
        a=que.top();
        que.pop();
        if (a*a+b*b==c*c) cout << "YES" << endl;
        else cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'priority_queue' was not declared in this scope
    9 |     priority_queue< double, vector<double>, greater<double> > que;
      |     ^~~~~~~~~~~~~~
a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
    2 | #include <cmath>
  +++ |+#include <queue>
    3 | #define REP(i,n) for(int i=0;i<n;i++)
a.cc:9:21: error: expected primary-expression before 'double'
    9 |     priority_queue< double, vector<double>, greater<double> > que;
      |                     ^~~~~~
a.cc:13:9: error: 'que' was not declared in this scope
   13 |         que.push(a);que.push(b);que.push(c);
      |         ^~~
Language: C++

#include <iostream>
#include <cmath>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main()
{
    int a,b,c,N;
    priority_queue< int, vector<int>, greater<int> > que;
    cin >> N;
    REP(i,N) {
        cin >> a >> b >> c;
        que.push(a);que.push(b);que.push(c);
        c=que.top();
        que.pop();
        b=que.top();
        que.pop();
        a=que.top();
        que.pop();
        if (a*a+b*b==c*c) cout << "YES" << endl;
        else cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'priority_queue' was not declared in this scope
    9 |     priority_queue< int, vector<int>, greater<int> > que;
      |     ^~~~~~~~~~~~~~
a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
    2 | #include <cmath>
  +++ |+#include <queue>
    3 | #define REP(i,n) for(int i=0;i<n;i++)
a.cc:9:21: error: expected primary-expression before 'int'
    9 |     priority_queue< int, vector<int>, greater<int> > que;
      |                     ^~~
a.cc:13:9: error: 'que' was not declared in this scope
   13 |         que.push(a);que.push(b);que.push(c);
      |         ^~~
Language: C++

#include <iostream>
#include <cmath>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main()
{
    double a,b,c,N;
    priority_queue< double, vector<double>, greater<double> > que;
    cin >> N;
    REP(i,N) {
        cin >> a >> b >> c;
        que.push(a);que.push(b);que.push(c);
        c=que.top();
        que.pop();
        b=que.top();
        que.pop();
        a=que.top();
        que.pop();
        if (a*a+b*b==c*c) cout << "YES" << endl;
        else cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'priority_queue' was not declared in this scope
    9 |     priority_queue< double, vector<double>, greater<double> > que;
      |     ^~~~~~~~~~~~~~
a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
    2 | #include <cmath>
  +++ |+#include <queue>
    3 | #define REP(i,n) for(int i=0;i<n;i++)
a.cc:9:21: error: expected primary-expression before 'double'
    9 |     priority_queue< double, vector<double>, greater<double> > que;
      |                     ^~~~~~
a.cc:13:9: error: 'que' was not declared in this scope
   13 |         que.push(a);que.push(b);que.push(c);
      |         ^~~
Language: C++

#include <iostream>
#include <cmath>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main()
{
    double a,b,c,N;
    priority_queue< double, vector<double>, greater<double> > que;
    cin >> N;
    REP(i,N) {
        cin >> a >> b >> c;
        que.push(a);que.push(b);que.push(c);
        a=que.top();
        que.pop();
        b=que.top();
        que.pop();
        c=que.top();
        que.pop();
        if (a*a+b*b==c*c) cout << "YES" << endl;
        else cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'priority_queue' was not declared in this scope
    9 |     priority_queue< double, vector<double>, greater<double> > que;
      |     ^~~~~~~~~~~~~~
a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
    2 | #include <cmath>
  +++ |+#include <queue>
    3 | #define REP(i,n) for(int i=0;i<n;i++)
a.cc:9:21: error: expected primary-expression before 'double'
    9 |     priority_queue< double, vector<double>, greater<double> > que;
      |                     ^~~~~~
a.cc:13:9: error: 'que' was not declared in this scope
   13 |         que.push(a);que.push(b);que.push(c);
      |         ^~~
Language: C++

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

int main()
{
    double a,b,c,N;
    priority_queue< double, vector<double>, greater<double> > que;
    cin >> N;
    for(int i=0;i<N;i++) {
        cin >> a >> b >> c;
        que.push(a);
        que.push(b);
        que.push(c);
        a=que.top();
        que.pop();
        b=que.top();
        que.pop();
        c=que.top();
        que.pop();
        if (a*a+b*b==c*c) cout << "YES" << endl;
        else cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'priority_queue' was not declared in this scope
    8 |     priority_queue< double, vector<double>, greater<double> > que;
      |     ^~~~~~~~~~~~~~
a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
    2 | #include <cmath>
  +++ |+#include <queue>
    3 | using namespace std;
a.cc:8:21: error: expected primary-expression before 'double'
    8 |     priority_queue< double, vector<double>, greater<double> > que;
      |                     ^~~~~~
a.cc:12:9: error: 'que' was not declared in this scope
   12 |         que.push(a);
      |         ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected ';' before 'while'
    5 |     scanf("%d",&a)
      |                   ^
      |                   ;
    6 |     while(scanf("%d%d%d",&a,&b,&c)>0)printf(a*a+b*b==c*c?"YES\n":"NO\n");
      |     ~~~~~
Language: C++

#include <stdio.h>

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

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

#include <iostream>

using namespace std;

int main(void){

  int n;
  int triangle[3];

  cin >> n;

  while(n--){

  for( int i = 0 ; i < 3 ; i++ ){
    cin >> triangle[i]; 
  }

  sort( triangle , triangle + 3 );

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

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

#include"iostream"
using namespace std;
int main()
{
	int n;
	cin>>n;
	while(n--)
	{
		int a,b,c;
		cin>>a>>b>>c;
		if(a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a)cout<<"YES"<<endl;
		else cou<<"NO"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: 'cou' was not declared in this scope
   12 |                 else cou<<"NO"<<endl;
      |                      ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>

using namespace std;
int main()
{
	int n;
	cin >> n;
	
	vector <int>a;
	for(int i=0;i<n;i++){
		for(int j=0,j<3,j++){
		int temp;
		cin >> temp;
		a.push_back(temp);
		sort(a.begin(),a.end());
		}
			
		if(a[1]*a[1]+a[2]*a[2]>=a[3]*a[3]){
			cout<< "YES" << endl;
		}else{
			cout<< "NO" << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: expected ';' before '<' token
   13 |                 for(int j=0,j<3,j++){
      |                              ^
      |                              ;
a.cc:13:30: error: expected primary-expression before '<' token
a.cc:13:36: error: expected ';' before ')' token
   13 |                 for(int j=0,j<3,j++){
      |                                    ^
      |                                    ;
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;
int main()
{
	int n;
	cin >> n;
	
	for(int i=0;i<n;i++){
			int a,b,c,max,min,mid;
			cin >> a >> b >> c;
			max(a,b,c)=max;
			min(a,b,c)=min;
			if(a!=max&&a!=min){	
				a=mid;
			}if(b!=max&&b!=min){
				b=mid;
			}if(c!=max&&c!=min){
				c=mid;
			}
		if(min*min+mid*mid>=max*max){
			cout<< "YES" << endl;
		}else{
			cout<< "NO" << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: 'max' cannot be used as a function
   13 |                         max(a,b,c)=max;
      |                         ~~~^~~~~~~
a.cc:14:28: error: 'min' cannot be used as a function
   14 |                         min(a,b,c)=min;
      |                         ~~~^~~~~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <cmath>

#define ll long long

using namespace std;

int mian()
{
    ll T,t,num,a,b,c,A,B,C;
    cin>>T;
    for( t=1; t<=T; t++)
    {
        cin>>a>>b>>c;
        A=(ll)pow(a,2);
        B=(ll)pow(b,2);
        C=(ll)pow(c,2);
        if( ((a+b)>c) && ((b+c)>a) && ((c+a)>b))
            printf("NO\n");
        else if( (A+B)==C )
            printf("YES\n");
        else if((B+C)== A)
            printf("YES\n");
        else if((A+C) == B)
            printf("YES\n");
        else
            printf("NO\n");
    }
    return 0;
}

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

#include <iostream>
 
using namespace std;
int main(){
  int n;
cin >> n;
  while( n-- ){
    int a,b,c;
    cin >> a >> b >> c;
    if(a == b && b == c)cout << "YES";
    else cout << "NO";
    cout << endl;
  }
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected '}' at end of input
   14 |   return 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b,c,d;
cin>>a;
for(int i=0;i<a;i++){
cin>>b>>c>>d;
if(a*a==b*b+c*c){
cout<<YES<<endl;}
else if(b*b==a*a+c*c){
cout<<YES<<endl;}
else if(c*c==a*a+b*b){
cout<<YES<<endl;}
else {
cout<<NO<<endl;}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'YES' was not declared in this scope
    9 | cout<<YES<<endl;}
      |       ^~~
a.cc:11:7: error: 'YES' was not declared in this scope
   11 | cout<<YES<<endl;}
      |       ^~~
a.cc:13:7: error: 'YES' was not declared in this scope
   13 | cout<<YES<<endl;}
      |       ^~~
a.cc:15:7: error: 'NO' was not declared in this scope
   15 | cout<<NO<<endl;}
      |       ^~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

YES = "YES"
NO = "NO"

def sq(x)
	return x * x
end

gets.to_i.times do
	puts ->(l){
		if sq(l[0]) + sq(l[1]) == sq(l[2])
			return YES
		elsif sq(l[1]) + sq(l[2]) == sq(l[0])
			return YES
		elsif sq(l[2]) + sq(l[0]) == sq(l[1])
			return YES
		end
		return NO
	}.call gets.split(' ').map(&:to_i)
end

Compiler output:
a.cc:1:1: error: 'YES' does not name a type
    1 | YES = "YES"
      | ^~~
a.cc:18:10: error: expected unqualified-id before '.' token
   18 |         }.call gets.split(' ').map(&:to_i)
      |          ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int ans=0;
int N,a,b,c;
cin>>N;
for(int i=0;i<N;i++){
cin>>a>>b>>c;
if(a*a==b*b+c*c){
ans+=ans;}
else if(b*b==a*a+c*c){
ans+=ans;}
else if(c*c==a*a+b*b){
ans+=ans;}
if(ans>0){
cout<"<YES"<<endl;}
else{
cout<<"NO"<<endl;}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: invalid operands of types 'const char [5]' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 | cout<"<YES"<<endl;}
      |      ~~~~~~^~~~~~
Language: C++

#incude <iostream>
using namespace std;

int N,a,b,c;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude <iostream>
a.cc:11:7: error: 'cout' was not declared in this scope
   11 |       cout << "YES" << endl;
      |       ^~~~
a.cc:11:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:24: error: 'endl' was not declared in this scope
   11 |       cout << "YES" << endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude <iostream>
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout << "NO" << endl;
      |       ^~~~
a.cc:13:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:23: error: 'endl' was not declared in this scope
   13 |       cout << "NO" << endl;
      |                       ^~~~
a.cc:13:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

timel = int(raw_input())
for gomi in xrange(timel):
 a,b,c = map(lambda x: int(x)**2, raw_input().split())
 if a+b==c or b+c==a or c+a==b:
  print "YES"
 else:
  print "NO"

Compiler output:
a.cc:1:1: error: 'timel' does not name a type
    1 | timel = int(raw_input())
      | ^~~~~
Language: C++

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

int main(){
	int n;
	cin >> n;
	for(int i = 0; i < 3; i++){
		vector<int> vec;
		int a, b, c;
		cin >> a >> b >> c;
		vec.push_back(a);
		vec.push_back(b);
		vec.push_back(c);
		sort( vec.begin(), vec.end() );
		if(vec[0] + vec[1] >vec[2]){
			cout << "YES" << endl;
		}
		else{
			cout << "NO" << endl;
		}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: expected '}' at end of input
   22 |                 }
      |                  ^
a.cc:9:35: note: to match this '{'
    9 |         for(int i = 0; i < 3; i++){
      |                                   ^
a.cc:22:18: error: expected '}' at end of input
   22 |                 }
      |                  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <iostream>
int main(void){
	int n,a,b,c;
	std::cin>>n;
	for (;n--;){
		std::cin>>a>>b>>c;
		if (a>b) swap(a,b);
		if (b>c) swap(b,c);
		if (a*a+b*b==c*c)
			std::cout<<"YES\n";
		else
			std::cout<<"NO\n";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'swap' was not declared in this scope
    7 |                 if (a>b) swap(a,b);
      |                          ^~~~
a.cc:7:26: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:8:26: error: 'swap' was not declared in this scope
    8 |                 if (b>c) swap(b,c);
      |                          ^~~~
a.cc:8:26: note: suggested alternatives:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
Language: C++

#include <iostream>
#include <conio.h>
using namespace std ;

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

bool ans = false ;

int main()
{
	int N ;
	cin >> N ;

	bool ans = false ;

	for( int i = 0 ; i < N ; i ++ )
	{
		int a,b,c ;
		cin >> a >> b >> c ;

		if( a > b )
		{
			if( a > c )		// 最大値はa
			{
				ans = solve(a,b,c) ;
			}
			else if( a < c )	// 最大値はc
			{
				ans = solve(c,a,b) ;
			}
		}
		else if( a < b )
		{
			if( b > c )		// 最大値はb
			{
				ans = solve(b,a,c) ;
			}
			else if( b < c )	// 最大値はc
			{
				ans = solve(c,a,b) ;
			}
		}

		if( ans == true ){ cout << "YES" << "\n" ; }
		else{ cout << "NO" << "\n" ; }
	}

	_getch() ;
	return 0 ;
}

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

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

#include <iostream>
#include <conio.h>
using namespace std ;

int N ;
int a,b,c,x,y,z ;

int main()
{
	cin >> N ;

	while( N > 0 )
	{
		cin >> a >> b >> c ;

		x = max( a, max( b, c ) ) ;
		y = min( a, max( b, c ) ) ;
		z = min( a, min( b, c ) ) ;

		if( (x*x) == ((y*y) + (z*z) ) )
		{
			cout << "YES" << endl ;
		}
		else
		{
			cout << "NO" << endl ;
		}

		N -- ;
	}

	_getch() ;
	return 0 ;
}

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

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

int main()
{
priority_queue<int> que;
int n;
cin>>n;
fot(int i=0;i<n;i++)
{
int a,b,c;
for(int j=0;j<3;j++)
{
cin>>a;
que.push(a);
}
a=que.top();
que.pop();
b=que.top()
que.pop();
c=que.top()
que.pop();
if(a-b<c)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before 'int'
   10 | fot(int i=0;i<n;i++)
      |     ^~~
a.cc:10:13: error: 'i' was not declared in this scope
   10 | fot(int i=0;i<n;i++)
      |             ^
Language: C++

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

typedef struct{
    int m[3];
}triangle;

int main( void ){

    triangle *tri;
    int e;
    scanf( "%d",&e );
    if(( tri = ( triangle * ) malloc( sizeof( triangle ) * e )) == NULL ) return -1;
    for( int i = 0;i < e;i++ )scanf( "%d %d %d",
                                        &tri[i].m[0],&tri[i].m[1],&tri[i].m[2] );

    for( int i = 0;i < e;i++ ){
        for( int k = 0;k < 2;k++ ){
            for( int j = 0;j < 2;j++ ){
                if( tri[i].m[j] => tri[i].m[j+1] ){
                    int buf = tri[i].m[j];
                    tri[i].m[j] = tri[i].m[j+1];
                    tri[i].m[j+1] = buf;
                }
            }
        }
        if( tri[i].m[0] * tri[i].m[0] + tri[i].m[1] * tri[i].m[1] == tri[i].m[2] * tri[i].m[2] ) printf( "YES\n" );   
        else printf( "NO\n" );
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: 'malloc' was not declared in this scope
   13 |     if(( tri = ( triangle * ) malloc( sizeof( triangle ) * e )) == NULL ) return -1;
      |                               ^~~~~~
a.cc:3:1: note: 'malloc' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
    2 | #include <string.h>
  +++ |+#include <cstdlib>
    3 | 
a.cc:20:34: error: expected primary-expression before '>' token
   20 |                 if( tri[i].m[j] => tri[i].m[j+1] ){
      |                                  ^
Language: C++

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

typedef struct{
    int m[3];
}triangle;

int main( void ){

    triangle *tri;
    int e;
    scanf( "%d",&e );
    if(( tri = ( triangle * ) malloc( sizeof( triangle ) * e )) == NULL ) return -1;
    for( int i = 0;i < e;i++ )scanf( "%d %d %d",
                                        &tri[i].m[0],&tri[i].m[1],&tri[i].m[2] );

    for( int i = 0;i < e;i++ ){
        for( int k = 0;k < 2;k++ ){
            for( int j = 0;j < 2;j++ ){
                if( tri[i].m[j] => tri[i].m[j+1] ){
                    int buf = tri[i].m[j];
                    tri[i].m[j] = tri[i].m[j+1];
                    tri[i].m[j+1] = buf;
                }
            }
        }
        if( tri[i].m[0] * tri[i].m[0] + tri[i].m[1] * tri[i].m[1] == tri[i].m[2] * tri[i].m[2] ) printf( "YES\n" );   
        else printf( "NO\n" );
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:34: error: expected primary-expression before '>' token
   21 |                 if( tri[i].m[j] => tri[i].m[j+1] ){
      |                                  ^
Language: C++

#include <iostream>
#include <vector>

bool check_right_triangle(int a, int b, int c)
{
    if(a * a == b * b + c * c || b * b == c * c + a * a || c * c == a * a + b * b)
        return true;
    else return false;
}

int main()
{
    const int max_num_of_data = 1000;
    const int min = 1;
    const int max = 1000;
    
    int num_of_data;
    //std::cout << "データ数の入力" << std::endl;
    std::cin >> num_of_data;
    if(num_of_data > max_num_of_data){
        std::cout << "データ数<=" << max_num_of_data << std::endl;
        return 1;
    }
    
    int a, b, c;
    //std::cout << num_of_data << "個の整数データa b cの入力" << std::endl;
    for(int i = 0; i < num_of_data; ++i){
        std::cin >> a >> b >> c;
        if(min <= a && a <= max && min <= b && b <= max && min <= c && c <= max){
            if(check_right_triangle(a, b, c)
                std::cout << "Yes" << std::endl;
            else
                std::cout << "No" << std::endl;
        }else{
            --i;
            std::cout << "整数は" << min <<"以上" << max << "以下に設定" << std::endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:45: error: expected ';' before 'std'
   30 |             if(check_right_triangle(a, b, c)
      |                                             ^
      |                                             ;
   31 |                 std::cout << "Yes" << std::endl;
      |                 ~~~                          
a.cc:32:13: error: expected primary-expression before 'else'
   32 |             else
      |             ^~~~
a.cc:31:49: error: expected ')' before 'else'
   31 |                 std::cout << "Yes" << std::endl;
      |                                                 ^
      |                                                 )
   32 |             else
      |             ~~~~                                 
a.cc:30:15: note: to match this '('
   30 |             if(check_right_triangle(a, b, c)
      |               ^
Language: C++

int main(){
	int n;
	cin>>n;
	int hen1,hen2,hen3,saidai;

	for(int i=0;i<n;i++){
	cin>>hen1>>hen2>>hen3;

	saidai=hen1;
	if(saidai<hen2){
		saidai=hen2;
		hen2=0;
	}
	else if(saidai<hen3){
		saidai=hen3;
		hen3=0;
	}
	else if(saidai==hen1)
		hen1=0;
	if(saidai*saidai==hen1*hen1+hen2*hen2+hen3*hen3)
		cout<<"YES"<<"\n";
	else{
		cout<<"NO"<<"\n";
	}
	}
	
	
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<n,i++)
      |       ^
a.cc:7:18: error: expected ';' before ')' token
    7 |   for(i=0;i<n,i++)
      |                  ^
      |                  ;
Language: Java


import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNextInt()) {
            double a = scan.nextDouble();
            double b = scan.nextDouble();
            double c = scan.nextDouble();
            double d = scan.nextDouble();
            double e = scan.nextDouble();
            double f = scan.nextDouble();
            double db;
            double ae;
            double x;
            double y;
            double j;
            double g;
            db = d * b;
            ae = a * e;
                           ///yを求める
            j = db - ae;
　　　　　　　　　　　　　　///（db-ae)yという形
            y = ((d * c) - (a * f)) / j;

            g = y * b;

            x = (-1 * (g) + c) / a;

            System.out.printf("%.3f %.3f\n", x, y);

        }
    }
}



Compiler output:
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
 ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
  ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
   ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
    ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
     ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
      ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
       ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
        ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
         ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
          ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
           ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
            ^
Main.java:25: error: illegal character: '\u3000'
??????????????///?db-ae)y????
             ^
14 errors
Language: Java


import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNextInt()) {
            double a = scan.nextDouble();
            double b = scan.nextDouble();
            double c = scan.nextDouble();
            double d = scan.nextDouble();
            double e = scan.nextDouble();
            double f = scan.nextDouble();
            double db;
            double ae;
            double x;
            double y;
            double j;
            double g;
            db = d * b;
            ae = a * e;
                                       j = db - ae;
　　　　　　　　　　　　　            y = ((d * c) - (a * f)) / j;

            g = y * b;

            x = (-1 * (g) + c) / a;

            System.out.printf("%.3f %.3f\n", x, y);

        }
    }
}



Compiler output:
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
 ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
  ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
   ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
    ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
     ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
      ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
       ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
        ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
         ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
          ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
           ^
Main.java:24: error: illegal character: '\u3000'
?????????????            y = ((d * c) - (a * f)) / j;
            ^
13 errors
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double a,b,c,d,e,f;
		double x,y;
		
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			d = sc.nextInt();
			e = sc.nextInt();
			f = sc.nextInt();
			
			if(d!=0) y = (c-((a*f)/d))/(b-((a*e)/d));
			else y = 0;
			if(a!=0) x = (c-(b*y))/a;
			else x = 0;
			
			System.out.printf("%.3f %.3f\n", x,y);
		}
	}

Compiler output:
Main.java:24: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.Scanner;


public class SimultaneousEquation {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextInt()){
			double a = sc.nextInt();
			double b = sc.nextInt();
			double c = sc.nextInt();
			double d = sc.nextInt();
			double e = sc.nextInt();
			double f = sc.nextInt();
			double x, y;
			x = c/a + (-1)*(b/a);
			y = f/e + (-1)*d*x;
			x = (-1*b*y + c)/a;
			x = (int)(x*1000 + 0.5) / (double)1000;
			y = (int)(y*1000 + 0.5) / (double)1000;
			System.out.printf("\f \f",x ,y);
		}
	}
}

Compiler output:
Main.java:4: error: class SimultaneousEquation is public, should be declared in a file named SimultaneousEquation.java
public class SimultaneousEquation {
       ^
1 error
Language: Java

import java.util.Scanner;
public Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a,b,c,d,e,f;
		double x,y;

		while(sc.hasNext()){
			a=sc.nextInt();
			b=sc.nextInt();
			c=sc.nextInt();
			d=sc.nextInt();
			e=sc.nextInt();
			f=sc.nextInt();
			y=(double)(c*d-a*f)/(b*d-a*e);
			x=(double)(c-b*y)/a;
			
			System.out.printf("%.3f %.3f\n",Math.round(x),Math.round(y));
	
			}
		
	}

}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:24: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
public Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a,b,c,d,e,f;
		double x,y;

		while(sc.hasNext()){
			a=sc.nextInt();
			b=sc.nextInt();
			c=sc.nextInt();
			d=sc.nextInt();
			e=sc.nextInt();
			f=sc.nextInt();
			y=(double)(c*d-a*f)/(b*d-a*e);
			x=(double)(c-b*y)/a;
			
			System.out.printf("%.3f %.3f\n",x,y);
	
			}
		
	}

}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:24: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java


import java.util.Scanner;
import java.util.ArrayList; 

class Main
{
	static class Answer
	{
		public double x;
		public double y;
		Answer( double x_, double y_ )
		{
			x = x_; y = y_;
		}
	}
	public static void main(String[] av)
	{
		Scanner sc = new Scanner( System.in );
		ArrayList<Answer> al = new ArrayList<Answer>();		
		final int N = 6;
		while ( sc.hasNextDouble() )
		{
			double [] src = new double[N];
			for ( int i = 0; i < N; ++i )
			{
				src[i] = sc.nextDouble();
			}
			double divisor1 = src[0];
			double divisor2 = src[3];
			for ( int i = 0; i < 3; ++i )
			{
				src[i] /= divisor1;
				src[i+3] /= divisor2;
			}
			double ycoef1 = src[1] - src[4];
			double value1 = src[2] - src[5];
			double y = value1 / ycoef1;
			double x = src[2] - y * src[1];
			al.add( new Answer( x, y) );
		}
		for ( Answer ans : al )
		{
			java.math.BigDecimal bdx = new java.math.BigDecimal(ans.x);
			java.math.BigDecimal bdy = new java.math.BigDecimal(ans.y);
			java.math.BigDecimal x = bdx.setScale(4, java.math.BigDecimal.ROUND_HALF_UP ); 
			java.math.BigDecimal y = bdy.setScale(4, java.math.BigDecimal.ROUND_HALF_UP ); 
			if ( x==0) x = 0;
			if ( y==0) y = 0;
			System.out.printf("%.3f %.3f\n", x.doubleValue(), y.doubleValue());
		}
	}
}

Compiler output:
Main.java:47: error: bad operand types for binary operator '=='
			if ( x==0) x = 0;
			      ^
  first type:  BigDecimal
  second type: int
Main.java:47: error: incompatible types: int cannot be converted to BigDecimal
			if ( x==0) x = 0;
			               ^
Main.java:48: error: bad operand types for binary operator '=='
			if ( y==0) y = 0;
			      ^
  first type:  BigDecimal
  second type: int
Main.java:48: error: incompatible types: int cannot be converted to BigDecimal
			if ( y==0) y = 0;
			               ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
Language: Java

import java.text.DecimalFormat;

public class Simequ {
public static void main(String[] args){
	double a = Double.parseDouble(args[0]);
	double b = Double.parseDouble(args[1]);
	double c = Double.parseDouble(args[2]);
	double d = Double.parseDouble(args[3]);
	double e = Double.parseDouble(args[4]);
	double f = Double.parseDouble(args[5]);
	DecimalFormat df = new DecimalFormat("0.000");
	double x =(c*e-b*f)/(a*e-b*d);
	double y = (a*f-c*d)/(a*e-b*d);
	x = Math.floor((x+0.5)*1000)/1000;
	x = Math.ceil((x-0.5)*1000)/1000;
	y = Math.floor((y+0.5)*1000)/1000;
	y = Math.ceil((y-0.5)*1000)/1000;

	System.out.println(df.format(x)+" "+df.format(y) );


}
}

Compiler output:
Main.java:3: error: class Simequ is public, should be declared in a file named Simequ.java
public class Simequ {
       ^
1 error
Language: Java

class Main {
public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	double a = Double.parseDouble(scan.next());
	double b = Double.parseDouble(scan.next());
	double c = Double.parseDouble(scan.next());
	double d = Double.parseDouble(scan.next());
	double e = Double.parseDouble(scan.next());
	double f = Double.parseDouble(scan.next());
	DecimalFormat df = new DecimalFormat("0.000");
	double x =(c*e-b*f)/(a*e-b*d);
	double y = (a*f-c*d)/(a*e-b*d);
	x = Math.floor((x+0.5)*1000)/1000;
	x = Math.ceil((x-0.5)*1000)/1000;
	y = Math.floor((y+0.5)*1000)/1000;
	y = Math.ceil((y-0.5)*1000)/1000;

	System.out.println(df.format(x)+" "+df.format(y) );


}
}

Compiler output:
Main.java:3: error: cannot find symbol
	Scanner scan = new Scanner(System.in);
	^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
	Scanner scan = new Scanner(System.in);
	                   ^
  symbol:   class Scanner
  location: class Main
Main.java:10: error: cannot find symbol
	DecimalFormat df = new DecimalFormat("0.000");
	^
  symbol:   class DecimalFormat
  location: class Main
Main.java:10: error: cannot find symbol
	DecimalFormat df = new DecimalFormat("0.000");
	                       ^
  symbol:   class DecimalFormat
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

 public class a{
	 public static void main(String[] args){
		 Scanner s = new Scanner(System.in);
		 double q,w,c,d;
		 q = 1;
		 w = 1;
		 while(s.hasNextDouble()){
		 double[] a = new double[6];
		 for(int b = 0; b < 6; b++){
			 a[b] = s.nextInt();
		 }
		 c = a[0];
		 d = a[3];
		 while(a[0] != a[3]){
			 if(a[0]<a[3]){
				 a[0] += c;
						 ++q;
			 }else if(a[0] > a[3]){
				 a[3] += d;
						 ++w;
			 }
		 }
			 a[1] = a[1]*q-a[4]*w;
			 a[2] = a[2]*q-a[5]*w;
			 a[2] = a[2]/a[1];
			 a[4] = a[4]*a[2];
			 a[5] = a[5]-a[4];
			 a[5] = a[5]/a[3];
			 System.out.printf("%.3f %.3f",a[5],a[2]);
	 }
		 }
	 }

Compiler output:
Main.java:3: error: class a is public, should be declared in a file named a.java
 public class a{
        ^
1 error
Language: Java

import java.util.*;
import java.math.*;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(sc.hasNextDouble()){
double a=sc.nextDouble();
double b=sc.nextDouble();
double c=sc.nextnextDouble();
double d=sc.nextnextDouble();
double e=sc.nextnextDouble();
double f=sc.nextnextDouble();
double x=(c*e-b*f)/(a*e-b*d);
double y=(c*d-a*f)/(f*d-a*e);
BigDecimal p=new BigDecimal(x);
BigDecimal q=new BigDecimal(y);
p=p.setScale(3,BigDecimal.ROUND_HALF_UP);
q=q.setScale(3,BigDecimal.ROUND_HALF_UP);
System.out.printf("%.3f %.3f%n",x,y);
}
}
}

Compiler output:
Main.java:10: error: cannot find symbol
double c=sc.nextnextDouble();
           ^
  symbol:   method nextnextDouble()
  location: variable sc of type Scanner
Main.java:11: error: cannot find symbol
double d=sc.nextnextDouble();
           ^
  symbol:   method nextnextDouble()
  location: variable sc of type Scanner
Main.java:12: error: cannot find symbol
double e=sc.nextnextDouble();
           ^
  symbol:   method nextnextDouble()
  location: variable sc of type Scanner
Main.java:13: error: cannot find symbol
double f=sc.nextnextDouble();
           ^
  symbol:   method nextnextDouble()
  location: variable sc of type Scanner
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
Language: Java

import java.io.*;
import java.util.*;
public class p0_4{
 public static void main(String args[]){
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   StringTokenizer st=new StringTokenizer(str);
   Double a=Double.parseDouble(st.nextToken());
   Double b=Double.parseDouble(st.nextToken());
   Double c=Double.parseDouble(st.nextToken());
   Double d=Double.parseDouble(st.nextToken());
   Double e=Double.parseDouble(st.nextToken());
   Double f=Double.parseDouble(st.nextToken());
   Double x=(f-(e*c/b))/(d-(e*a/b));
   Double y=(c-(a*x))/b;
   Double xx=x*10000%10/10000;
   Double yy=y*10000%10/10000;
   x=x-xx;
   y=y-yy;
   System.out.printf("%.3f",x);
   System.out.print(" ");
   System.out.printf("%.3f",y);
  }catch(Exception e){
  }
 }
}

Compiler output:
Main.java:3: error: class p0_4 is public, should be declared in a file named p0_4.java
public class p0_4{
       ^
1 error