Language: C++

#include <iostream>
using namespace std;

int main(){
    int a[3],b[3],c[3],d[3],e[3];
    for (int i=0; i<3; ++i) cin >> c[3] >> d[3] >> e[3];
    a[0]=0;
    for (int i=0; i<3; ++i) b[i]=c[i];
    a[1]=d[0]-b[0];
    a[2]=e[0]-b[0];
    bool X = false;
    bool Y = false;
    bool Z = false;
    for (int i=0; i<3; ++i)[
        if (a[0]+b[0]==c[0];&&a[0]+b[1]==c[1];&&a[0]+b[2]==c[2];) X =true;
    }
    for (int i=0; i<3; ++i)[
        if (a[1]+b[0]==d[0];&&a[1]+b[1]==d[1];&&a[1]+b[2]==d[2];) Y =true;
    }
    for (int i=0; i<3; ++i)[
        if (a[2]+b[0]==e[0];&&a[2]+b[1]==e[1];&&a[2]+b[2]==e[2];) Z =true;
    }
    if (X && Y && Z) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected identifier before 'if'
   15 |         if (a[0]+b[0]==c[0];&&a[0]+b[1]==c[1];&&a[0]+b[2]==c[2];) X =true;
      |         ^~
a.cc:15:28: error: expected ']' before ';' token
   15 |         if (a[0]+b[0]==c[0];&&a[0]+b[1]==c[1];&&a[0]+b[2]==c[2];) X =true;
      |                            ^
      |                            ]
a.cc: In lambda function:
a.cc:15:28: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:15:32: error: expected ';' before '[' token
   15 |         if (a[0]+b[0]==c[0];&&a[0]+b[1]==c[1];&&a[0]+b[2]==c[2];) X =true;
      |                                ^
      |                                ;
a.cc:15:50: error: expected ';' before '[' token
   15 |         if (a[0]+b[0]==c[0];&&a[0]+b[1]==c[1];&&a[0]+b[2]==c[2];) X =true;
      |                                                  ^
      |                                                  ;
a.cc:15:65: error: expected primary-expression before ')' token
   15 |         if (a[0]+b[0]==c[0];&&a[0]+b[1]==c[1];&&a[0]+b[2]==c[2];) X =true;
      |                                                                 ^
a.cc:15:31: error: label 'a' used but not defined
   15 |         if (a[0]+b[0]==c[0];&&a[0]+b[1]==c[1];&&a[0]+b[2]==c[2];) X =true;
      |                               ^
a.cc: At global scope:
a.cc:17:5: error: expected unqualified-id before 'for'
   17 |     for (int i=0; i<3; ++i)[
      |     ^~~
a.cc:17:19: error: 'i' does not name a type
   17 |     for (int i=0; i<3; ++i)[
      |                   ^
a.cc:17:24: error: expected unqualified-id before '++' token
   17 |     for (int i=0; i<3; ++i)[
      |                        ^~
a.cc:18:35: error: expected constructor, destructor, or type conversion before '+' token
   18 |         if (a[1]+b[0]==d[0];&&a[1]+b[1]==d[1];&&a[1]+b[2]==d[2];) Y =true;
      |                                   ^
a.cc:18:53: error: expected constructor, destructor, or type conversion before '+' token
   18 |         if (a[1]+b[0]==d[0];&&a[1]+b[1]==d[1];&&a[1]+b[2]==d[2];) Y =true;
      |                                                     ^
a.cc:18:65: error: expected unqualified-id before ')' token
   18 |         if (a[1]+b[0]==d[0];&&a[1]+b[1]==d[1];&&a[1]+b[2]==d[2];) Y =true;
      |                                                                 ^
a.cc:19:5: error: expected declaration before '}' token
   19 |     }
      |     ^
a.cc:20:5: error: expected unqualified-id before 'for'
   20 |     for (int i=0; i<3; ++i)[
      |     ^~~
a.cc:20:19: error: 'i' does not name a type
   20 |     for (int i=0; i<3; ++i)[
      |                   ^
a.cc:20:24: error: expected unqualified-id before '++' token
   20 |     for (int i=0; i<3; ++i)[
      |                        ^~
a.cc:21:35: error: expected constructor, destructor, or type conversion before '+' token
   21 |         if (a[2]+b[0]==e[0];&&a[2]+b[1]==e[1];&&a[2]+b[2]==e[2];) Z =true;
      |                                   ^
a.cc:21:53: error: expected constructor, destructor, or type conversion before '+' token
   21 |         if (a[2]+b[0]==e[0];&&a[2]+b[1]==e[1];&&a[2]+b[2]==e[2];) Z =true;
      |                                                     ^
a.cc:21:65: error: expected unqualified-id before ')' token
   21 |         if (a[2]+b[0]==e[0];&&a[2]+b[1]==e[1];&&a[2]+b[2]==e[2];) Z =true;
      |                                                                 ^
a.cc:22:5: error: expected declaration before '}' token
   22 |     }
      |     ^
a.cc:23:5: error: expected unqualified-id before 'if'
   23 |     if (X && Y && Z) cout << "Yes" << endl;
      |     ^~
a.cc:24:5: error: expected unqualified-id before 'else'
   24 |     else cout << "No" << endl;
      |     ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^