Language: C++

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

int c[3][3];

int main() {
    for(int i = 0; i < 3; i++) {
        for(int j = 0; j < 3; j++) {
            cin >> c[i][j];
        }
    }
    bool ans = true;
    if(c[1][0] - c[0][0] != c[1][1] - [0][1] || c[1][0] - c[0][0] != c[1][2] - [0][2]) {
        ans = false;
    }
    if(c[2][0] - c[0][0] != c[2][1] - [0][1] || c[1][0] - c[0][0] != c[2][2] - [0][2]) {
        ans = false;  
    }
    if(c[0][1] - c[0][0] != c[1][1] - [1][0] || c[1][1] - c[1][0] != c[2][1] - [2][0]) {
        ans = false; 
    }
    if(c[0][2] - c[0][0] != c[1][2] - [0][1] || c[1][2]-  c[0][0] != c[1][2] - [0][3]) {
        ans = false;
    }
    if(ans) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:40: error: expected identifier before numeric constant
   13 |     if(c[1][0] - c[0][0] != c[1][1] - [0][1] || c[1][0] - c[0][0] != c[1][2] - [0][2]) {
      |                                        ^
a.cc: In lambda function:
a.cc:13:42: error: expected '{' before '[' token
   13 |     if(c[1][0] - c[0][0] != c[1][1] - [0][1] || c[1][0] - c[0][0] != c[1][2] - [0][2]) {
      |                                          ^
a.cc: In function 'int main()':
a.cc:13:42: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:13:81: error: expected identifier before numeric constant
   13 |     if(c[1][0] - c[0][0] != c[1][1] - [0][1] || c[1][0] - c[0][0] != c[1][2] - [0][2]) {
      |                                                                                 ^
a.cc: In lambda function:
a.cc:13:83: error: expected '{' before '[' token
   13 |     if(c[1][0] - c[0][0] != c[1][1] - [0][1] || c[1][0] - c[0][0] != c[1][2] - [0][2]) {
      |                                                                                   ^
a.cc: In function 'int main()':
a.cc:13:83: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:16:40: error: expected identifier before numeric constant
   16 |     if(c[2][0] - c[0][0] != c[2][1] - [0][1] || c[1][0] - c[0][0] != c[2][2] - [0][2]) {
      |                                        ^
a.cc: In lambda function:
a.cc:16:42: error: expected '{' before '[' token
   16 |     if(c[2][0] - c[0][0] != c[2][1] - [0][1] || c[1][0] - c[0][0] != c[2][2] - [0][2]) {
      |                                          ^
a.cc: In function 'int main()':
a.cc:16:42: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:16:81: error: expected identifier before numeric constant
   16 |     if(c[2][0] - c[0][0] != c[2][1] - [0][1] || c[1][0] - c[0][0] != c[2][2] - [0][2]) {
      |                                                                                 ^
a.cc: In lambda function:
a.cc:16:83: error: expected '{' before '[' token
   16 |     if(c[2][0] - c[0][0] != c[2][1] - [0][1] || c[1][0] - c[0][0] != c[2][2] - [0][2]) {
      |                                                                                   ^
a.cc: In function 'int main()':
a.cc:16:83: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:19:40: error: expected identifier before numeric constant
   19 |     if(c[0][1] - c[0][0] != c[1][1] - [1][0] || c[1][1] - c[1][0] != c[2][1] - [2][0]) {
      |                                        ^
a.cc: In lambda function:
a.cc:19:42: error: expected '{' before '[' token
   19 |     if(c[0][1] - c[0][0] != c[1][1] - [1][0] || c[1][1] - c[1][0] != c[2][1] - [2][0]) {
      |                                          ^
a.cc: In function 'int main()':
a.cc:19:42: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:19:81: error: expected identifier before numeric constant
   19 |     if(c[0][1] - c[0][0] != c[1][1] - [1][0] || c[1][1] - c[1][0] != c[2][1] - [2][0]) {
      |                                                                                 ^
a.cc: In lambda function:
a.cc:19:83: error: expected '{' before '[' token
   19 |     if(c[0][1] - c[0][0] != c[1][1] - [1][0] || c[1][1] - c[1][0] != c[2][1] - [2][0]) {
      |                                                                                   ^
a.cc: In function 'int main()':
a.cc:19:83: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:22:40: error: expected identifier before numeric constant
   22 |     if(c[0][2] - c[0][0] != c[1][2] - [0][1] || c[1][2]-  c[0][0] != c[1][2] - [0][3]) {
      |                                        ^
a.cc: In lambda function:
a.cc:22:42: error: expected '{' before '[' token
   22 |     if(c[0][2] - c[0][0] != c[1][2] - [0][1] || c[1][2]-  c[0][0] != c[1][2] - [0][3]) {
      |                                          ^
a.cc: In function 'int main()':
a.cc:22:42: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:22:81: error: expected identifier before numeric constant
   22 |     if(c[0][2] - c[0][0] != c[1][2] - [0][1] || c[1][2]-  c[0][0] != c[1][2] - [0][3]) {
      |                                                                                 ^
a.cc: In lambda function:
a.cc:22:83: error: expected '{' before '[' token
   22 |     if(c[0][2] - c[0][0] != c[1][2] - [0][1] || c[1][2]-  c[0][0] != c[1][2] - [0][3]) {
      |                                                                                   ^
a.cc: In function 'int main()':
a.cc:22:83: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')