For this Question: Sara loves triangles. Whenever she sees three points she connects them by straight lines to form a triangle. In triangles, her favorite one is a right-angled triangle. If the triangle is not right-angled but it can be converted into one by moving one of the points exactly by distance 1 so, that all the coordinates remain integer, she calls such triangles "Special".
Given three points A, B, and C your task is to check if the formed triangle is "Right", "Special" or "Simple".The first line of input contains the position of A(Ax, Ay). The second line of input contains the position of B(Bx, By). The third line of input contains the position of C(Cx, Cy).

Constraints:-
|X|, |Y| <= 10^9Print "Right" if the triangle is right- angled, print "Special" if the triangle can be formed into a right- angled by moving one of the points exactly by distance 1, else print "Simple".Sample Input:-
0 0 
2 0 
0 1

Sample Output:-
Right

Sample Input:-
-1 0 
2 0 
0 1

Sample Output:-
Special

Sample Input:-
-1 0 
2 0 
10 10

Sample Output:-
Simple, I have written this Solution Code: #include <bits/stdc++.h>
using namespace std;
int d[6];
int sq(int n)
{
 return n*n;
}
void check(char *s)
{
 int a,b,c;
 a=sq(d[0]-d[2])+sq(d[1]-d[3]);
 b=sq(d[0]-d[4])+sq(d[1]-d[5]);
 c=sq(d[2]-d[4])+sq(d[3]-d[5]);
 if ((a&&b&&c)==0)
 return;
 if (a+b==c||a+c==b||b+c==a)
    {
  cout << s;
  exit(0);
 }
}
int main()
{
 int i;
 for (i=0;i<6;i++)
    cin >> d[i];
 check("Right\n");
 for (i=0;i<6;i++)
 {
  d[i]--;
  check("Special\n");
  d[i]+=2;
  check("Special\n");
  d[i]--;
 }
 cout << "Simple";
 return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?