Language: C++

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

#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384


int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;} 
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;}    //最大公約数
int lcm(int a,int b){int c=gcd(a,b);a/=c;return a*b;}     //最小公倍数
int nCr(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;} //コンビネーション
int nHr(int a,int b){return nCr(a+b-1,b);}       // 重複組み合わせ
int fact(int a){int i,r=1;for(i=1;i<=a;i++){r*=i;}return r;}  //階乗
int pow(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=a;}return r;} // a~bまでの階乗
int dsum(int x){int r=0;while(x){r+=(x%10);x/=10;}return r;}   //数字の各位の和
int dsumb(int x,int b){int r=0;while(x){r+=(x%b);x/=b;}return r;}  // b進数の各位の和？
int sankaku(int x){return ((1+x)*x)/2;} //三角数 xまでの和

//以下long long ver
long long llmax(long long a,long long b){if(a>b){return a;}return b;}
long long llmin(long long a,long long b){if(a<b){return a;}return b;}
long long llzt(long long a,long long b){return llmax(a,b)-llmin(a,b);}
long long llround(long long a,long long b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
long long llceil(long long a,long long b){if(a%b==0){return a/b;}return (a/b)+1;}
long long llgcd(long long a,long long b){long long c;while(b!=0){c=a%b;a=b;b=c;}return a;}
long long lllcm(long long a,long long b){long long c=llgcd(a,b);a/=c;return a*b;}
long long llnCr(long long a,long long b){long long i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;}
long long llnHr(long long a,long long b){return llnCr(a+b-1,b);}
long long llfact(long long a){long long i,r=1;for(i=1;i<=a;i++){r*=i;}return r;}
long long llpow(long long a,long long b){long long i,r=1;for(i=1;i<=b;i++){r*=a;}return r;}
long long lldsum(long long x){long long r=0;while(x){r+=(x%10);x/=10;}return r;}
long long lldsumb(long long x,long long b){long long r=0;while(x){r+=(x%b);x/=b;}return r;}
long long llsankaku(long long x){return ((1+x)*x)/2;}

//double
double dbmax(double a,double b){if(a>b){return a;}return b;}
double dbmin(double a,double b){if(a<b){return a;}return b;}
double dbzt(double a,double b){return dbmax(a,b)-dbmin(a,b);}


typedef pair<int, int> ii;
typedef long long ll;
typedef vector<ll> vll;
typedef pair<ll,ll> pll;
#define forr(i,a,b) ; for(int i=(a); i<(b); i++)
#define clean(arr,val) memset(arr,val,sizeof(arr))
#define forn(i,n) forr(i,0,n)
#define PB push_back
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<pll> vpll;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
bool is_prime (int x){
  if (x<=1) return false ;
  for (int i=2 ; i*i<=x ; i++){
    if (x%i==0) return false ;
  }
   return true;
}
string alpha = "abcdefghijklmnopqrstuvwxyz" ;
string ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ;
    
bool chmin (int a,int b){
    if ( a > b ){
    a = b;
    return true ;
    }
    return false ;
}
 bool chmax (int a,int b){
    if ( a < b ){
    a = b;
    return true ;
    }
    return false ;
}   
#define SORT(c) sort((c).begin(),(c).end());
#define ANS(ans) cout<<(ans)<<endl;
 
 string split (string s , ll  n , char x){
   // n文字目は前の文字列
   string a ,b,c,d;
   a = s;
   b = s;
   if ( x == 'f'){
     return c  = a.erase(n) ;
   }else if ( x == 'l'){
     return d = b.substr(n) ;
   }
 }
/*CODE START HERE*/
int main() {
  vector<int> board (3);
  forn(i,3){
    forn(j,3){
      cin >> board.at(i).at(j);
    }
  }
  bool ans = true ;
  if (board[0][0]-board[0][1]!=board[1][0]-board[1][1] &&
    board[2][0]-board[2][1]!=board[1][0]-board[1][1]){
    ans = false ;
  }
  if (board[0][2]-board[0][1]!=board[1][2]-board[1][1] &&
    board[2][2]-board[2][1]!=board[1][2]-board[1][1]){
    ans = false ;
  }
  if (board[1][0]-board[0][0]!=board[1][1]-board[0][1] &&
    board[1][2]-board[0][2]!=board[1][1]-board[0][1]){
    ans = false ;
  }
  if (board[2][0]-board[1][0]!=board[2][1]-board[1][1] &&
    board[2][2]-board[1][2]!=board[2][1]-board[1][1]){
    ans = false ;
  }
  cout << (ans ? "Yes":"No" ) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:99:26: error: request for member 'at' in 'board.std::vector<int>::at(((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   99 |       cin >> board.at(i).at(j);
      |                          ^~
a.cc:103:15: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  103 |   if (board[0][0]-board[0][1]!=board[1][0]-board[1][1] &&
      |               ^
a.cc:103:27: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  103 |   if (board[0][0]-board[0][1]!=board[1][0]-board[1][1] &&
      |                           ^
a.cc:103:40: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  103 |   if (board[0][0]-board[0][1]!=board[1][0]-board[1][1] &&
      |                                        ^
a.cc:103:52: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  103 |   if (board[0][0]-board[0][1]!=board[1][0]-board[1][1] &&
      |                                                    ^
a.cc:104:13: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  104 |     board[2][0]-board[2][1]!=board[1][0]-board[1][1]){
      |             ^
a.cc:104:25: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  104 |     board[2][0]-board[2][1]!=board[1][0]-board[1][1]){
      |                         ^
a.cc:104:38: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  104 |     board[2][0]-board[2][1]!=board[1][0]-board[1][1]){
      |                                      ^
a.cc:104:50: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  104 |     board[2][0]-board[2][1]!=board[1][0]-board[1][1]){
      |                                                  ^
a.cc:107:15: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  107 |   if (board[0][2]-board[0][1]!=board[1][2]-board[1][1] &&
      |               ^
a.cc:107:27: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  107 |   if (board[0][2]-board[0][1]!=board[1][2]-board[1][1] &&
      |                           ^
a.cc:107:40: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  107 |   if (board[0][2]-board[0][1]!=board[1][2]-board[1][1] &&
      |                                        ^
a.cc:107:52: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  107 |   if (board[0][2]-board[0][1]!=board[1][2]-board[1][1] &&
      |                                                    ^
a.cc:108:13: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  108 |     board[2][2]-board[2][1]!=board[1][2]-board[1][1]){
      |             ^
a.cc:108:25: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  108 |     board[2][2]-board[2][1]!=board[1][2]-board[1][1]){
      |                         ^
a.cc:108:38: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  108 |     board[2][2]-board[2][1]!=board[1][2]-board[1][1]){
      |                                      ^
a.cc:108:50: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  108 |     board[2][2]-board[2][1]!=board[1][2]-board[1][1]){
      |                                                  ^
a.cc:111:15: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  111 |   if (board[1][0]-board[0][0]!=board[1][1]-board[0][1] &&
      |               ^
a.cc:111:27: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  111 |   if (board[1][0]-board[0][0]!=board[1][1]-board[0][1] &&
      |                           ^
a.cc:111:40: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  111 |   if (board[1][0]-board[0][0]!=board[1][1]-board[0][1] &&
      |                                        ^
a.cc:111:52: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  111 |   if (board[1][0]-board[0][0]!=board[1][1]-board[0][1] &&
      |                                                    ^
a.cc:112:13: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  112 |     board[1][2]-board[0][2]!=board[1][1]-board[0][1]){
      |             ^
a.cc:112:25: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  112 |     board[1][2]-board[0][2]!=board[1][1]-board[0][1]){
      |                         ^
a.cc:112:38: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  112 |     board[1][2]-board[0][2]!=board[1][1]-board[0][1]){
      |                                      ^
a.cc:112:50: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  112 |     board[1][2]-board[0][2]!=board[1][1]-board[0][1]){
      |                                                  ^
a.cc:115:15: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  115 |   if (board[2][0]-board[1][0]!=board[2][1]-board[1][1] &&
      |               ^
a.cc:115:27: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  115 |   if (board[2][0]-board[1][0]!=board[2][1]-board[1][1] &&
      |                           ^
a.cc:115:40: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  115 |   if (board[2][0]-board[1][0]!=board[2][1]-board[1][1] &&
      |                                        ^
a.cc:115:52: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  115 |   if (board[2][0]-board[1][0]!=board[2][1]-board[1][1] &&
      |                                                    ^
a.cc:116:13: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  116 |     board[2][2]-board[1][2]!=board[2][1]-board[1][1]){
      |             ^
a.cc:116:25: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  116 |     board[2][2]-board[1][2]!=board[2][1]-board[1][1]){
      |                         ^
a.cc:116:38: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  116 |     board[2][2]-board[1][2]!=board[2][1]-board[1][1]){
      |                                      ^
a.cc:116:50: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
  116 |     board[2][2]-board[1][2]!=board[2][1]-board[1][1]){
      |                                                  ^
a.cc: In function 'std::string split(std::string, ll, char)':
a.cc:93:2: warning: control reaches end of non-void function [-Wreturn-type]
   93 |  }
      |  ^