Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string.h>
typedef long long ll;

#define MAX(x, y)	(((x) > (y))? (x) : (y))
#define MIN(x, y)	(((x) < (y))? (x) : (y))
#define ABS(x)		(((x) < 0)? (-1*(x)) : (x))
#define REPI(x,y)	for (int i=(x);i<(y);i++)
#define REPJ(x,y)	for (int j=(x);j<(y);j++)
#define MEMCLR(X)	memset((X),0,sizeof((X)))

using namespace std;
typedef vector<vector<pair<int, int>>> GRA;

int i,j,N,c[3][3];

int main() {
	cin >> c[0][0];
	cin >> c[0][1];
	cin >> c[0][2];
	cin >> c[1][0];
	cin >> c[1][1];
	cin >> c[1][2];
	cin >> c[2][0];
	cin >> c[2][1];
	cin >> c[2][2];
	
	if ((c[0][1] - c[0][0]) != (c[0][2] - c[0][1])) {cout "No";return;} 
	if ((c[1][1] - c[1][0]) != (c[1][2] - c[1][1])) {cout "No";return;} 
	if ((c[2][1] - c[2][0]) != (c[2][2] - c[2][1])) {cout "No";return;} 
	if ((c[1][0] - c[0][0]) != (c[2][0] - c[1][0])) {cout "No";return;} 
	if ((c[1][1] - c[0][1]) != (c[2][1] - c[1][1])) {cout "No";return;} 
	if ((c[1][2] - c[0][2]) != (c[2][2] - c[1][2])) {cout "No";return;} 
	
	cout << "Yes";
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:62: error: expected ';' before string constant
   30 |         if ((c[0][1] - c[0][0]) != (c[0][2] - c[0][1])) {cout "No";return;}
      |                                                              ^~~~~
      |                                                              ;
a.cc:30:68: error: return-statement with no value, in function returning 'int' [-fpermissive]
   30 |         if ((c[0][1] - c[0][0]) != (c[0][2] - c[0][1])) {cout "No";return;}
      |                                                                    ^~~~~~
a.cc:31:62: error: expected ';' before string constant
   31 |         if ((c[1][1] - c[1][0]) != (c[1][2] - c[1][1])) {cout "No";return;}
      |                                                              ^~~~~
      |                                                              ;
a.cc:31:68: error: return-statement with no value, in function returning 'int' [-fpermissive]
   31 |         if ((c[1][1] - c[1][0]) != (c[1][2] - c[1][1])) {cout "No";return;}
      |                                                                    ^~~~~~
a.cc:32:62: error: expected ';' before string constant
   32 |         if ((c[2][1] - c[2][0]) != (c[2][2] - c[2][1])) {cout "No";return;}
      |                                                              ^~~~~
      |                                                              ;
a.cc:32:68: error: return-statement with no value, in function returning 'int' [-fpermissive]
   32 |         if ((c[2][1] - c[2][0]) != (c[2][2] - c[2][1])) {cout "No";return;}
      |                                                                    ^~~~~~
a.cc:33:62: error: expected ';' before string constant
   33 |         if ((c[1][0] - c[0][0]) != (c[2][0] - c[1][0])) {cout "No";return;}
      |                                                              ^~~~~
      |                                                              ;
a.cc:33:68: error: return-statement with no value, in function returning 'int' [-fpermissive]
   33 |         if ((c[1][0] - c[0][0]) != (c[2][0] - c[1][0])) {cout "No";return;}
      |                                                                    ^~~~~~
a.cc:34:62: error: expected ';' before string constant
   34 |         if ((c[1][1] - c[0][1]) != (c[2][1] - c[1][1])) {cout "No";return;}
      |                                                              ^~~~~
      |                                                              ;
a.cc:34:68: error: return-statement with no value, in function returning 'int' [-fpermissive]
   34 |         if ((c[1][1] - c[0][1]) != (c[2][1] - c[1][1])) {cout "No";return;}
      |                                                                    ^~~~~~
a.cc:35:62: error: expected ';' before string constant
   35 |         if ((c[1][2] - c[0][2]) != (c[2][2] - c[1][2])) {cout "No";return;}
      |                                                              ^~~~~
      |                                                              ;
a.cc:35:68: error: return-statement with no value, in function returning 'int' [-fpermissive]
   35 |         if ((c[1][2] - c[0][2]) != (c[2][2] - c[1][2])) {cout "No";return;}
      |                                                                    ^~~~~~