criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>
#include <array>

int main() {
  std::array<int, 9> g;
  for(auto &gi: g)
    std::cin >> gi;
  d121 = grid[0] - grid[3];
  d122 = grid[1] - grid[4];
  d123 = grid[2] - grid[5];
  d131 = grid[0] - grid[6];
  d132 = grid[1] - grid[7];
  d133 = grid[2] - grid[8];
  
  if (d121 == d122 && d121 == d123 && d131 == d132 && d133)
    std::cout << "Yes" << std::endl;
  else
    std::cout << "No"  << std::endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'd121' was not declared in this scope
    8 |   d121 = grid[0] - grid[3];
      |   ^~~~
a.cc:8:10: error: 'grid' was not declared in this scope
    8 |   d121 = grid[0] - grid[3];
      |          ^~~~
a.cc:9:3: error: 'd122' was not declared in this scope
    9 |   d122 = grid[1] - grid[4];
      |   ^~~~
a.cc:10:3: error: 'd123' was not declared in this scope
   10 |   d123 = grid[2] - grid[5];
      |   ^~~~
a.cc:11:3: error: 'd131' was not declared in this scope
   11 |   d131 = grid[0] - grid[6];
      |   ^~~~
a.cc:12:3: error: 'd132' was not declared in this scope
   12 |   d132 = grid[1] - grid[7];
      |   ^~~~
a.cc:13:3: error: 'd133' was not declared in this scope
   13 |   d133 = grid[2] - grid[8];
      |   ^~~~
Language: C++

#include <iostream>
using namesapce std;

int main(){
  int a,b,c,d,e,f,g,h,i;
  cin >> a >> b >> c >> d >> e >> f >> g >> h >> i;
  bool ans=false;
  if(a+e+i==c+d+h && a+e+i==b+f+g && c+e+g==a+f+h && c+e+g==b+d+i){
    ans=true;
  }
  cout << (ans?"Yes":"No") << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c >> d >> e >> f >> g >> h >> i;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << (ans?"Yes":"No") << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout << (ans?"Yes":"No") << endl;
      |                               ^~~~
      |                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const long long mod = pow(10, 9) + 7;
const long long MOD = 998244353;
const long long INF = 1LL << 60;
const int inf = pow(10, 9) + 7;
template <class T> bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;}
template <class T> bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return false;}
int divCeil(int A, int B) {return (A + (B - 1)) / B;}
long long divCeil(long long A, int B) {return (A + (B - 1)) / B;}
long long divCeil(int A, long long B) {return (A + (B - 1)) / B;}
long long divCeil(long long A, long long B) {return (A + (B - 1)) / B;}

int main()
{
  vector<vector<int>> c(3, vector<int>(3));
  for (int i = 0; i < 3; i++)
    for (int j = 0; j < 3; j++) cin >> c.at(i).at(j);
  
  int ans = "Yes";
  if (c.at(0).at(1) - c.at(0).at(0)
      != c.at(1).at(1) - c.at(1).at(0)
      || c.at(1).at(1) - c.at(1).at(0)
      != c.at(2).at(1) - c.at(2).at(0)) ans = "No";
  if (c.at(0).at(2) - c.at(0).at(1)
      != c.at(1).at(2) - c.at(1).at(1)
      || c.at(1).at(2) - c.at(1).at(1)
      != c.at(2).at(2) - c.at(2).at(1)) ans = "No";
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   20 |   int ans = "Yes";
      |             ^~~~~
      |             |
      |             const char*
a.cc:24:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   24 |       != c.at(2).at(1) - c.at(2).at(0)) ans = "No";
      |                                               ^~~~
      |                                               |
      |                                               const char*
a.cc:28:47: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   28 |       != c.at(2).at(2) - c.at(2).at(1)) ans = "No";
      |                                               ^~~~
      |                                               |
      |                                               const char*
Language: C

#include<stdio.h>

int main(void){
    float a, b, c, d, e, f, g, h, i;
    scanf("%f, %f, %f", &a, &b, &c);
    scanf("%f, %f, %f", &d, &e, &f);
    scanf("%f, %f, %f", &g, &h, &i);

    if((d - a)/(g - a) == (e - b)/(h - b)&&(e - b)/(h - b)==(f - c)/(i - c)){
        if((b-a)/(c-a)==(e-d)(f-d)&&(e-d)(f-d)==(h-g)(i-g)){
            printf("Yes");
        }
    } else{
        printf("No");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:27: error: called object is not a function or function pointer
   10 |         if((b-a)/(c-a)==(e-d)(f-d)&&(e-d)(f-d)==(h-g)(i-g)){
      |                         ~~^~~
main.c:10:39: error: called object is not a function or function pointer
   10 |         if((b-a)/(c-a)==(e-d)(f-d)&&(e-d)(f-d)==(h-g)(i-g)){
      |                                     ~~^~~
main.c:10:51: error: called object is not a function or function pointer
   10 |         if((b-a)/(c-a)==(e-d)(f-d)&&(e-d)(f-d)==(h-g)(i-g)){
      |                                                 ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int c[3][3];
  for(int i=0;i<3;i++){
    for (int j=0;i<3;j++)cin>>c[i][j]
  }
  
  for(int i=0;i<2;i++){
    for(int j=0;j<2;j++){
      if(c[i][j]-c[i+1][j]!=c[i+1][j]-c[i+1][j+1]){
        cout<<"No"<<endl;
        return 0;
      }
    }
  }

  cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ';' before '}' token
    7 |     for (int j=0;i<3;j++)cin>>c[i][j]
      |                                      ^
      |                                      ;
    8 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int c[3][3];
  for(int i=0;i<3;i++){
    for (int j=0;i<3;j++)cin>>c[i][j]
  }
  
  for(int i=0;i<2;i++){
    for(int j=0;j<2;j++){
      if(c[i][j]-c[i+1][j]!=c[i+1][j]-c[i+1][j+1]){
        cout<<"No"<<endl;
        return 0;
      }
    }
  }
  for(int j=0;j<2;i++){
    for(int i=0;i<2;j++){
      if(c[i][j]-c[i+1][j]!=c[i+1][j]-c[i+1][j+1]){
        cout<<"No"<<endl;
        return 0;
      }
    }
  }
  cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ';' before '}' token
    7 |     for (int j=0;i<3;j++)cin>>c[i][j]
      |                                      ^
      |                                      ;
    8 |   }
      |   ~                                   
a.cc:18:19: error: 'i' was not declared in this scope
   18 |   for(int j=0;j<2;i++){
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int c[3][3];
  for(int i=0;i<3;i++){
    for (int j=0;i<3;j++)cin>>c[i][j]
  }
  
  for(int i=0;i<2;i++){
    for(int j=0;j<2;j++){
      if(c[i][j]-c[i+1][j]!=c[i+1][j]-c[i+1][j+1]){
        cout<<"No"<<endl;
        return 0;
      }
    }
  }
  for(int j=0;i<2;i++){
    for(int i=0;j<2;j++){
      if(c[i][j]-c[i+1][j]!=c[i+1][j]-c[i+1][j+1]){
        cout<<"No"<<endl;
        return 0;
      }
    }
  }
  cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ';' before '}' token
    7 |     for (int j=0;i<3;j++)cin>>c[i][j]
      |                                      ^
      |                                      ;
    8 |   }
      |   ~                                   
a.cc:18:15: error: 'i' was not declared in this scope
   18 |   for(int j=0;i<2;i++){
      |               ^
Language: C++

//解説視聴後
#include <iostream>
#include <algorithm>
using namespace std;

int main(){
  //入力
  int c[3][3];
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      cin >> c[i][j];
    }
  }
  
  int x[3], y[3];
  x[0] = 0;　//a1を0と置く
  for(int i = 0; i < 3; i++) y[i] = c[0][i]- x[0];
  for(int i = 0; i < 3; i++) x[i] = c[i][0]- y[0];
  bool good = true;
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      if(x[i] + y[j] != c[i][j]) good = false;
    }
  }
  //出力
  if (good) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc:16:12: error: extended character 　 is not valid in an identifier
   16 |   x[0] = 0;　//a1を0と置く
      |            ^
a.cc: In function 'int main()':
a.cc:16:12: error: '\U00003000' was not declared in this scope
   16 |   x[0] = 0;　//a1を0と置く
      |            ^~
a.cc:17:18: error: 'i' was not declared in this scope
   17 |   for(int i = 0; i < 3; i++) y[i] = c[0][i]- x[0];
      |                  ^
Language: C++

//解説視聴後
#include <iostream
#include <algorithm>
using namespace std;

int main(){
  //入力
  int c[3][3];
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      cin >> c[i][j];
    }
  }
  
  int x[3], y[3];
  x[0] = 0;　//a1を0と置く
  for(int i = 0; i < 3; i++) y[i] = c[0][i]- x[0];
  for(int i = 0; i < 3; i++) x[i] = c[i][0]- y[0];
  bool good = true;
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      if(x[i] + y[j] != c[i][j]) good = false;
    }
  }
  //出力
  if (good) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc:2:19: error: missing terminating > character
    2 | #include <iostream
      |                   ^
a.cc:16:12: error: extended character 　 is not valid in an identifier
   16 |   x[0] = 0;　//a1を0と置く
      |            ^
a.cc: In function 'int main()':
a.cc:16:12: error: '\U00003000' was not declared in this scope
   16 |   x[0] = 0;　//a1を0と置く
      |            ^~
a.cc:17:18: error: 'i' was not declared in this scope
   17 |   for(int i = 0; i < 3; i++) y[i] = c[0][i]- x[0];
      |                  ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
  int c[2][2];
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      cin >> c[i][j];
    }
  }
  int ans = "No";
  for (int a1 = 0; a1 <= c[0][0]; a1++){
    int b1 = c[0][0] - a1;
    int b2 = c[0][1] - a1;
    int b3 = c[0][2] - a1;
    int a2 = c[1][0] - b1;
    int a3 = c[2][0] - b1;
    if (a2+b2 == c[1][1] && a2+b3 == c[1][2] && 
            a3+b2 == c[2][1] && a3+b3 == c[2][2]) ans = "Yes";
  }
   cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |   int ans = "No";
      |             ^~~~
      |             |
      |             const char*
a.cc:20:57: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   20 |             a3+b2 == c[2][1] && a3+b3 == c[2][2]) ans = "Yes";
      |                                                         ^~~~~
      |                                                         |
      |                                                         const char*
Language: C++

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

bool flg = false;

int main() {
  int C[3][3],C1[3][2],C2[2][3];
  for (int i = 0; i<3; i++) for (int j = 0; j<3; j++) cin >> C[i][j];
  for (int i = 0; i<3; i++) for (int j = 0; j<2; j++) C1[i][j] = C[i][j+1]-C[i][j];
  for (int i = 0; i<2; i++) for (int j = 0; j<3; j++) C2[i][j] = C[i+1][j]-C[i][j];

  
  for (int i = 0; i<2; i++) for (int j = 0; j<2; j++) if(C1[i][j]-C1[i][j+1] != 0) flg = true;
  for (int i = 0; i<2; i++) for (int j = 0; j<2; j++) if(C2[i][j]-C2[i+1][j] != 0) flg = true;
  if(flg == false) cout << "Yes\n";
  else cout << "No\n"
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: expected ';' before '}' token
   16 |   else cout << "No\n"
      |                      ^
      |                      ;
   17 | 
   18 | }
      | ~
Language: C++

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

bool flg = false

int main() {
  int C[3][3],C1[3][3],C2[3][3],C3[3][3],C4[3][3];
  for (int i = 0; i<3; i++) for (int j = 0; j<3; j++) cin >> C[i][j];
  for (int i = 0; i<3; i++) for (int j = 0; j<3; j++) C1[i][j] = C[i][(j+1)%3]-C[i][j];
  for (int i = 0; i<3; i++) for (int j = 0; j<3; j++) C2[i][j] = C[(i+1)%3][j]-C[i][j];
  for (int i = 0; i<3; i++) for (int j = 0; j<3; j++) C3[i][j] = C1[(i+1)%3][j]-C1[i][j];
  for (int i = 0; i<3; i++) for (int j = 0; j<3; j++) C4[i][j] = C2[(i+1)%3][j]-C2[i][j];
  for (int i = 0; i<3; i++) for (int j = 0; j<3; j++) if(C3[i][j] != 0) {
    cout << "No\n";
    flg = true;
  }
  for (int i = 0; i<3; i++) for (int j = 0; j<3; j++) if(C4[i][j] != 0 && flg ==false) {
    cout << "No\n";
    flg = true;
  }
  if(flg == false) cout << "Yes\n";
}

  
  
    

Compiler output:
a.cc:6:1: error: expected ',' or ';' before 'int'
    6 | int main() {
      | ^~~
Language: C++

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

int main() {
  int a,b,c,d,e,f,g,h,i;
  cin>>a>>b>>c>>d>>e>>f>>g>>h>>i;
  if(b-a=e-d&&e-d==h-g && c-b==f-e&&f-e==i-h && a-d==b-e&&b-e==c-f && d-g==e-h&&e-h==f-i)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: lvalue required as left operand of assignment
    7 |   if(b-a=e-d&&e-d==h-g && c-b==f-e&&f-e==i-h && a-d==b-e&&b-e==c-f && d-g==e-h&&e-h==f-i)cout<<"Yes"<<endl;
      |      ~^~
Language: C++

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

int main() {
  int a,b,c,d,e,f,g,h,i;
  cin>>a>>b>>c>>d>>e>>f>>g>>h>>i;
  if(b-a=e-d==h-g && c-b==f-e==i-h && a-d==b-e==c-f && d-g==e-h==f-i)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: lvalue required as left operand of assignment
    7 |   if(b-a=e-d==h-g && c-b==f-e==i-h && a-d==b-e==c-f && d-g==e-h==f-i)cout<<"Yes"<<endl;
      |      ~^~
Language: Java

import java.util.Scanner;
import java.util.Arrays;

public class Beginner88C {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[][] c = new int[3][3];
		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
				c[i][j] = sc.nextInt();
			}
		}

		int[] a = new int[3];
		int[] b = new int[3];

		for (int i = 0; i < 3; i++) {
			int min = 100;
			for (int j = 0; j < 3; j++) {
				if (c[i][j] < min)
					min = c[i][j];
			}
			a[i] = min;
		}
//		System.out.println(Arrays.toString(a)); // debug

		for (int j = 0; j < 3; j++) {
			int min = 100;
			for (int i = 0; i < 3; i++) {
				if (c[i][j] < min)
					min = c[i][j];
			}
			b[j] = min;
		}
//		System.out.println(Arrays.toString(b)); // debug

		int cnt = 0;

		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
				for (int k = 0; k <= a[i]; k++) {
					for (int l = 0; l <= b[j]; l++) {
						if (k + l == c[i][j])
							cnt++;
					}
				}
			}
		}
//		System.out.println(cnt); //debug

		if (cnt == 9) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();

	}

}

Compiler output:
Main.java:4: error: class Beginner88C is public, should be declared in a file named Beginner88C.java
public class Beginner88C {
       ^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

typedef int _loop_int;
#define REP(i,n) for(_loop_int i=0;i<(_loop_int)(n);++i)
#define FOR(i,a,b) for(_loop_int i=(_loop_int)(a);i<(_loop_int)(b);++i)
#define FORR(i,a,b) for(_loop_int i=(_loop_int)(b)-1;i>=(_loop_int)(a);--i)

#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define DEBUG_VEC(v) cout<<#v<<":";REP(i,v.size())cout<<" "<<v[i];cout<<endl
#define ALL(a) (a).begin(),(a).end()

#define CHMIN(a,b) a=min((a),(b))
#define CHMAX(a,b) a=max((a),(b))

// mod
const ll MOD = 1000000007ll;
#define FIX(a) ((a)%MOD+MOD)%MOD

// floating
typedef double Real;
const Real EPS = 1e-11;
#define EQ0(x) (abs(x)<EPS)
#define EQ(a,b) (abs(a-b)<EPS)
typedef complex<Real> P;

int main(){
  vector<vi> c(3,vi(3));
  REP(i,n)REP(j,n)cin>>c[i][j];
  REP(a1,101)REP(a2,101)REP(a3,101){
    vi a({a1,a2,a3});
    vi b(3);
    REP(i,3)b[i] = c[i][0] - a[0];
    bool ok = true;
    REP(i,3)REP(j,3)if(c[i][j] != a[j]+b[i]){
      ok = false;
    }
    if(ok){
      puts("Yes");return 0;
    }
  }
  puts("No");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:9: error: 'n' was not declared in this scope
   36 |   REP(i,n)REP(j,n)cin>>c[i][j];
      |         ^
a.cc:12:50: note: in definition of macro 'REP'
   12 | #define REP(i,n) for(_loop_int i=0;i<(_loop_int)(n);++i)
      |                                                  ^
Language: C++

// ABC088.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//

#include "pch.h"
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;

int main() {
	
	//--Question C--
	vector<int> ca(3);
	vector<int> cb(3);
	vector<int> cc(3);
	for (int i = 0; i < 3; i++)
	{
		cin >> ca.at(i);
	}
	for (int i = 0; i < 3; i++)
	{
		cin >> cb.at(i);
	}
	for (int i = 0; i < 3; i++)
	{
		cin >> cc.at(i);
	}
	vector<vector<int>> c = { ca,cb,cc };

	if (c[0][0]-c[0][1]==c[0][1]-c[1][2]&&c[1][0]-c[1][1]==c[1][1]-c[1][2]&&c[2][0]-c[2][1]==c[2][1]-c[2][2]
		&&c[0][0]-c[1][0]==c[1][0]-c[2][0]&&c[0][1]-c[1][1]==c[1][1]-c[2][1]&&c[0][2]-c[1][2]==c[1][2]-c[2][2])
	{
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
    return 0;
}


Compiler output:
a.cc:4:10: fatal error: pch.h: No such file or directory
    4 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>

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];
  
  // Check b values
  for(int i = 0; i < 3; i++) {
    for(int j = 0; j < 3; j++) {
      vector<int> check;
      for(int k = 0; k < 3; k++)
        check.push_back(c[k][i]-c[k][j]);
      size_t cnt = std::count(check.begin(), check.end(), check[0]);
      if(cnt != 3) {
        cout << "No" << endl;
        return 0;
      }
    }
  }
  // Check a values
  for(int i = 0; i < 3; i++) {
    for(int j = 0; j < 3; j++) {
      vector<int> check;
      for(int k = 0; k < 3; k++)
        check.push_back(c[i][k]-c[j][k]);
      size_t cnt = std::count(check.begin(), check.end(), check[0]);
      if(cnt != 3) {
        cout << "No" << endl;
        return 0;
      }
    }
  }
  cout << "Yes" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: 'count' is not a member of 'std'; did you mean 'cout'?
   19 |       size_t cnt = std::count(check.begin(), check.end(), check[0]);
      |                         ^~~~~
      |                         cout
a.cc:32:25: error: 'count' is not a member of 'std'; did you mean 'cout'?
   32 |       size_t cnt = std::count(check.begin(), check.end(), check[0]);
      |                         ^~~~~
      |                         cout
Language: C++

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

int main(){
    int i, j;
    int a[3], b[3], c[3][3];
    for(i=0; i<3; i++){
        for(j=0; j<n; j++){
            cin >> c[i][j];
            if(i == 0){
                b[j] = c[i][j];
            }
        }
    }
    a[0] = 0;
    a[1] = c[1][0] - b[0];
    a[2] = c[2][0] - b[0];
    for(i=0; i<3; i++){
        for(j=0; j<n; j++){
            cin >> c[i][j];
            if(a[i] + b[j] != c[i][j]){
                cout << "No";
                return 0;
            }
        }
    }
    cout << "Yes";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'n' was not declared in this scope
    8 |         for(j=0; j<n; j++){
      |                    ^
a.cc:19:20: error: 'n' was not declared in this scope
   19 |         for(j=0; j<n; j++){
      |                    ^
Language: C++

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

int main(void){
  int c[3][3];
  for(int i=0;i<3;++i){
    for(int j=0;j<3;++j){
      cin >> c[i][j];
    }
  }
  int flg=0;
  for(int i=0;i<c[0][0];++i){
    for(int j=0;j<c[1][0];++j){
      for(int k=0;k<c[2][0];++k){
        int flgs[3];
        for(int x=0;x<3;++x){
          int b1, b2, b3;
          b1 = c[x][0]-i;
          b2 = c[x][1]-j;
          b3 = c[x][2]-k;
          if(b1==b2 && b1==b3) flgs[x] = 1;
          else flgs[x] = 0;
        }
        if(flgs[0]&&flgs[1]&&flgs[2]){
          flg = 1;
        }
      }
    }
  }
  if(flg) cout << "Yes\n";
  else cout << "No\n";


Compiler output:
a.cc: In function 'int main()':
a.cc:31:23: error: expected '}' at end of input
   31 |   else cout << "No\n";
      |                       ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
	int c[3][3]
	for (int yi = 0; yi < 3; ++yi)
	{
		for (int xi = 0; xi < 3; ++xi)
		{
			cin >> c[yi][xi];
		}
	}
	bool judge = true;
	for (int i = 0; i < 2; ++i)
	{
		if(c[0][i] - c[0][i+1] == c[1][i] - c[1][i+1] && c[1][i] - c[1][i+1] == c[2][i] - c[2][i+1]){

		}else{
			judge = false;
		}
	}
	if(judge){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'for'
    5 |         for (int yi = 0; yi < 3; ++yi)
      |         ^~~
a.cc:5:26: error: 'yi' was not declared in this scope; did you mean 'yn'?
    5 |         for (int yi = 0; yi < 3; ++yi)
      |                          ^~
      |                          yn
a.cc:15:20: error: 'c' was not declared in this scope
   15 |                 if(c[0][i] - c[0][i+1] == c[1][i] - c[1][i+1] && c[1][i] - c[1][i+1] == c[2][i] - c[2][i+1]){
      |                    ^
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 Y = false;
    bool Z = false;

        if (a[1]+b[0]==d[0]&&a[1]+b[1]==d[1]&&a[1]+b[2]==d[2]) Y =true;

        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:19:9: error: 'X' was not declared in this scope
   19 |     if (X && Y && Z) cout << "Yes" << endl;
      |         ^
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;

        if (a[0]+b[0]==c[0];&&a[0]+b[1]==c[1];&&a[0]+b[2]==c[2];) X =true;

        if (a[1]+b[0]==d[0];&&a[1]+b[1]==d[1];&&a[1]+b[2]==d[2];) Y =true;

        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: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:17:32: error: expected ')' before '[' token
   17 |         if (a[1]+b[0]==d[0];&&a[1]+b[1]==d[1];&&a[1]+b[2]==d[2];) Y =true;
      |            ~                   ^
      |                                )
a.cc:17:50: error: expected ';' before '[' token
   17 |         if (a[1]+b[0]==d[0];&&a[1]+b[1]==d[1];&&a[1]+b[2]==d[2];) Y =true;
      |                                                  ^
      |                                                  ;
a.cc:17:65: error: expected primary-expression before ')' token
   17 |         if (a[1]+b[0]==d[0];&&a[1]+b[1]==d[1];&&a[1]+b[2]==d[2];) Y =true;
      |                                                                 ^
a.cc:19:32: error: expected ')' before '[' token
   19 |         if (a[2]+b[0]==e[0];&&a[2]+b[1]==e[1];&&a[2]+b[2]==e[2];) Z =true;
      |            ~                   ^
      |                                )
a.cc:19:50: error: expected ';' before '[' token
   19 |         if (a[2]+b[0]==e[0];&&a[2]+b[1]==e[1];&&a[2]+b[2]==e[2];) Z =true;
      |                                                  ^
      |                                                  ;
a.cc:19:65: error: expected primary-expression before ')' token
   19 |         if (a[2]+b[0]==e[0];&&a[2]+b[1]==e[1];&&a[2]+b[2]==e[2];) Z =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;
      |                               ^
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:71: 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:71: error: expected '{' before ';' token
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: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: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 | }
      | ^
Language: C++

#include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
#include <set>
#include <vector>
#include <map>
#include <list>
#include <stack>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <queue>
#define mkp make_pair
#define fi first
#define se second
#define pt(num) cout << num << "\n"
#define max(a, b) ((a)>(b) ? (a):(b))
#define min(a, b) ((a)<(b) ? (a):(b))
#define chmax(a, b) (a<b ? a=b : 0)
#define chmin(a, b) (a>b ? a=b : 0)
#define INF 1000000000000000000
#define MOD 1000000007LL
#define MAX 100010
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef map<ll, ll> Map;


int main(void) {
    ll c[3][3];
    ll i, j;
    ll s[3];
    for(i=0; i<3; i++) {
        for(j=0; j<3; j++)
            cin >> c[i][j];
    }
    
    
    for(i=0; i<3; i++) {
        for(j=0; j<3; j++) {
            s[j]=c[i][(j+1)%3]-c[i][j];
        }
        
        if(s[0]==s[1] && s[1]==s[2]) continue;
        puts("No");
        return 0;
    }
    
    for(j=0; j<3; j++) {
        for(i=0; i<3; i++) {
            s[i]=c[(i+1)%3][j]-c[i][j];
        }
        
        if(s[0]==s[1] && s[1]==s[2]) continue;
        puts("No");
        return 0;
    }
    
    puts("Yes")
}



Compiler output:
a.cc: In function 'int main()':
a.cc:61:16: error: expected ';' before '}' token
   61 |     puts("Yes")
      |                ^
      |                ;
   62 | }
      | ~
Language: C++

#include<stdio.h>
int main()
{
	int c[4][4], a[4], b[4], i, j, judgement;
	scanf("%d %d %d",&c[1][1],&c[1][2],&c[1][3]);
	scanf("%d %d %d",&c[2][1],&c[2][2],&c[2][3]);
	scanf("%d %d %d",&c[3][1],&c[3][2],&c[3][3]);
	// we may renormalize so that c[1][1]=0, a[1]=b[1]=0:
	c[1][2]=c[1][2]-c[1][1]; c[1][3]=c[1][3]-c[1][1];
	for(i=2;i<=3;i++){
		for(j=1;j<=3;j++) c[i][j]=c[i][j]-c[1][1];
	} c[1][1]=0;
	a[2]=c[2][1]; a[3]=c[3][1]; b[2]=c[1][2]; b[3]=c[1][3];
	judgement = 1;
	for (i=2;i<=3;i++){ for(j=2;j<=3;j++)
	if(c[i][j]==a[i]+b[j]) ; else judgement = 0;
	} }
	if(judgement == 0) printf("No"); else printf("Yes");
 	return 0;
}

Compiler output:
a.cc:18:9: error: expected unqualified-id before 'if'
   18 |         if(judgement == 0) printf("No"); else printf("Yes");
      |         ^~
a.cc:18:42: error: expected unqualified-id before 'else'
   18 |         if(judgement == 0) printf("No"); else printf("Yes");
      |                                          ^~~~
a.cc:19:9: error: expected unqualified-id before 'return'
   19 |         return 0;
      |         ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include<stdio.h>
int main()
{
	int c[4][4], a[4], b[4], i, j, judgement;
	scanf("%d %d %d",&c[1][1],&c[1][2],&c[1][3]);
	scanf("%d %d %d",&c[2][1],&c[2][2],&c[2][3]);
	scanf("%d %d %d",&c[3][1],&c[3][2],&c[3][3]);
	// we may renormalize so that c[1][1]=0, a[1]=b[1]=0:
	c[1][2]=c[1][2]-c[1][1]; c[1][3]=c[1][3]-c[1][1];
	for (i=2;i<=3;i++){
		for(j=1;j<=3;j++) c[i][j]=c[i][j]-c[1][1];
	} c[1][1]=0;
	a[2]=c[2][1]; a[3]=c[3][1]; b[2]=c[1][2]; b[3]=c[1][3];
	judgement = 1;
	for (i=2;i<=3;i++){ for(j=2;j<=3;j++)
	if (c[i][j]=a[i]+b[j]) ; else judgement = 0;
	} }
	if (judgement == 0) printf("No"); else printf("Yes");
 	return 0;
}

Compiler output:
a.cc:18:9: error: expected unqualified-id before 'if'
   18 |         if (judgement == 0) printf("No"); else printf("Yes");
      |         ^~
a.cc:18:43: error: expected unqualified-id before 'else'
   18 |         if (judgement == 0) printf("No"); else printf("Yes");
      |                                           ^~~~
a.cc:19:9: error: expected unqualified-id before 'return'
   19 |         return 0;
      |         ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include<stdio.h>
int main()
{
	int c[4][4], a[4], b[4], i, j, judgement;
	scanf("%d %d %d",&c[1][1],&c[1][2],&c[1][3]);
	scanf("%d %d %d",&c[2][1],&c[2][2],&c[2][3]);
	scanf("%d %d %d",&c[3][1],&c[3][2],&c[3][3]);
	// we may renormalize so that c[1][1]=0, a[1]=b[1]=0:
	c[1][2]=c[1][2]-c[1][1]; c[1][3]=c[1][3]-c[1][1];
	for (i=2;i<=3;i++){
		for(j=1;j<=3;j++) c[i][j]=c[i][j]-c[1][1];
	} c[1][1]=0;
	a[2]=c[2][1]; a[3]=c[3][1]; b[2]=c[1][2]; b[3]=c[1][3];
	judgement = 1;
	for (i=2;i<=3;i++){ for(j=2;j<=3;j++)
	if (c[i][j]=a[i]+b[j]) ; else judgement = 0;
	} }
	if (judgement = 0) printf("No"); else printf("Yes");
 	return 0;
}

Compiler output:
a.cc:18:9: error: expected unqualified-id before 'if'
   18 |         if (judgement = 0) printf("No"); else printf("Yes");
      |         ^~
a.cc:18:42: error: expected unqualified-id before 'else'
   18 |         if (judgement = 0) printf("No"); else printf("Yes");
      |                                          ^~~~
a.cc:19:9: error: expected unqualified-id before 'return'
   19 |         return 0;
      |         ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int[][] matrix = new int[3][3];
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                matrix[i][j] = sc.nextInt();
            }
        }

        int[] a = new int[3];
        int[] b = new int[3];
        int a[0] = 0;
        int b[0] = matrix[0][0] - a1;
        int b[1] = matrix[0][1] - a1;
        int b[2] = matrix[0][2] - a1;
        int a[1] = matrix[1][0] - b1;
        int a[2] = matrix[2][0] - b1;
        
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                if (matrix[i][j] != a[i] + b[j]) {
                    System.out.println("No");
                    return;
                }
            }
        }
        
        System.out.println("Yes");
    }
}

Compiler output:
Main.java:20: error: ']' expected
        int a[0] = 0;
              ^
Main.java:21: error: ']' expected
        int b[0] = matrix[0][0] - a1;
              ^
Main.java:21: error: not a statement
        int b[0] = matrix[0][0] - a1;
                                ^
Main.java:22: error: ']' expected
        int b[1] = matrix[0][1] - a1;
              ^
Main.java:22: error: not a statement
        int b[1] = matrix[0][1] - a1;
                                ^
Main.java:23: error: ']' expected
        int b[2] = matrix[0][2] - a1;
              ^
Main.java:23: error: not a statement
        int b[2] = matrix[0][2] - a1;
                                ^
Main.java:24: error: ']' expected
        int a[1] = matrix[1][0] - b1;
              ^
Main.java:24: error: not a statement
        int a[1] = matrix[1][0] - b1;
                                ^
Main.java:25: error: ']' expected
        int a[2] = matrix[2][0] - b1;
              ^
Main.java:25: error: not a statement
        int a[2] = matrix[2][0] - b1;
                                ^
11 errors
Language: C++

#include<bits/stdc++.h>
#include<math.h>
#include<string.h>
#include<set>
#include<algorithm>
using namespace std;

int main(){
	int c[9];
	for(int i=0;i<9;++i)cin>>c[i];

	int minA = 101,minB = 101,minC = 101;
	for(int i=0;i<3;++i){
		minA = min(minA,c[i]);
	}
	for(int i=3;i<6;++i){
		minB = min(minB,c[i]);
	}
	for(int i=6;i<9;++i){
		minC = min(minC,c[i]);
	}

	for(int i=0;i<3;++i){
		c[i] -= minA;
	}
	for(int i=3;i<6;++i){
		c[i] -= minB;
	}
	for(int i=6;i<9;++i){
		c[i] -= minC;
	}

	int flag = 0;
	if(a[0] == a[3] and a[3] == a[6])++flag;
	if(a[1] == a[4] and a[4] == a[7])++flag;
	if(a[2] == a[5] and a[5] == a[8])++flag;
	if(flag == 3)cout<<"Yes";
	else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:12: error: 'a' was not declared in this scope
   34 |         if(a[0] == a[3] and a[3] == a[6])++flag;
      |            ^
a.cc:35:12: error: 'a' was not declared in this scope
   35 |         if(a[1] == a[4] and a[4] == a[7])++flag;
      |            ^
a.cc:36:12: error: 'a' was not declared in this scope
   36 |         if(a[2] == a[5] and a[5] == a[8])++flag;
      |            ^
Language: C++

#include<bits/stdc++.h>
#include<math.h>
#include<string.h>
#include<set>
#include<algorithm>
using namespace std;

int main(){
	int c[9];
	for(int i=0;i<9;++i)cin>>c[i];

	int minA = 101,minB = 101,minC = 101;
	for(int i=0;i<3;++i){
		minA = min(minA,a[i])
	}
	for(int i=3;i<6;++i){
		minB = min(minB,a[i])
	}
	for(int i=6;i<9;++i){
		minC = min(minC,a[i])
	}

	for(int i=0;i<3;++i){
		c[i] -= minA;
	}
	for(int i=3;i<6;++i){
		c[i] -= minB;
	}
	for(int i=6;i<9;++i){
		c[i] -= minC;
	}

	cout<<c[0]<<" "<<c[1]<<" "<<c[2]<<" "<<endl;
	cout<<c[4]<<" "<<c[5]<<" "<<c[6]<<" "<<endl;
	cout<<c[7]<<" "<<c[8]<<" "<<c[9]<<" "<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: 'a' was not declared in this scope
   14 |                 minA = min(minA,a[i])
      |                                 ^
a.cc:17:33: error: 'a' was not declared in this scope
   17 |                 minB = min(minB,a[i])
      |                                 ^
a.cc:20:33: error: 'a' was not declared in this scope
   20 |                 minC = min(minC,a[i])
      |                                 ^
Language: C++

#include <biuts/stdc++.h>
using namespace std;
typedef long long ll;
const int maxx = 1e5 + 7;
const int Inf = 1 << 30;
int a[5][5];

int main() {
	int sum = 0;
	for(int i = 1; i <= 3; i++) {
		for(int j = 1; j <= 3; j++) {
			cin >> a[i][j];
			sum += a[i][j];
		}
	}
	if(sum % 3) puts("No");
	else puts("Yes");
}

Compiler output:
a.cc:1:10: fatal error: biuts/stdc++.h: No such file or directory
    1 | #include <biuts/stdc++.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int c[3][3];
  for(int i=1;i<=3;i++){
    for(int j=1;j<=3;j++){cin >> c[i][j];}
  }
  int a,b,d,e;
  int count=0;
  a=c[1][2]-c[1][1];
  b=c[1][3]-c[1][2];
  d=c[2][1]-c[1][1];
  e=c[3][1]-c[2][1];
  for(int i=1;i<=3;i++){
    if(c[i][2]-c[i][1]){count++;}
    if(c[i][3]-c[i][2]){count++;}
    if(c[2][i]-c[1][i]){count++;}
    if(c[3][i]-c[2][i]){count++;}
  }
  if(count==12){cout << "Yes" << endl;}
  else{cout << "No" << endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:30: error: expected '}' at end of input
   22 |   else{cout << "No" << endl;}
      |                              ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int c[3][3];
  for(int i=1;i<=3;i++){
    for(int j=1;j<=3;j++){cin >> c[i][j];}
  }
  int a,b,d,e;
  int count=0;
  a=c[1][2]-c[1][1];
  b=c[1][3]-c[1][2];
  d=c[2][1]-d[1][1];
  e=c[3][1]-c[2][1];
  for(int i=1;i<=3;i++){
    if(c[i][2]-c[i][1]){count++;}
    if(c[i][3]-c[i][2]){count++;}
    if(c[2][i]-c[1][i]){count++;}
    if(c[3][i]-c[2][i]){count++;}
  }
  if(count==12){cout << "Yes" << endl;}
  else{cout << "No" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: invalid types 'int[int]' for array subscript
   13 |   d=c[2][1]-d[1][1];
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int c[3][3];
  for(int i=1;i<=3;i++){
    for(int j=1;j<=3){cin >> c[i][j];}
  }
  int a,b,d,e;
  int count=0;
  a=c[1][2]-c[1][1];
  b=c[1][3]-c[1][2];
  d=c[2][1]-d[1][1];
  e=c[3][1]-c[2][1];
  for(int i=1;i<=3;i++){
    if(c[i][2]-c[i][1]){count++;}
    if(c[i][3]-c[i][2]){count++;}
    if(c[2][i]-c[1][i]){count++;}
    if(c[3][i]-c[2][i]){count++;}
  }
  if(count==12){cout << "Yes" << endl;}
  else{cout << "No" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before ')' token
    7 |     for(int j=1;j<=3){cin >> c[i][j];}
      |                     ^
      |                     ;
a.cc:13:14: error: invalid types 'int[int]' for array subscript
   13 |   d=c[2][1]-d[1][1];
      |              ^
Language: C

#include<stdio.h>

int main(){
    int a,b,c,d,e,f,g,h,i;
    scanf("%d %d %d",&a,&b,&c);
    scanf("%d %d %d",&d,&e,&f);
    scanf("%d %d %d",&g,&h,&i);
    int x = a+e+i;
    int y = b+f+g;
    int z = c+d+h;
    if(x==y && y==z && z=x) printf("Yes");
    else printf("No");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:25: error: lvalue required as left operand of assignment
   11 |     if(x==y && y==z && z=x) printf("Yes");
      |                         ^
Language: C

#include<stdio.h>

int main(){
    int a,b,c,d,e,f,g,h,i;
    scanf("%d %d %d",&a,&b,&c);
    scanf("%d %d %d",&d,&e,&f);
    scanf("%d %d %d",&g,&h,&i);
    int x = a+e+i;
    int y = b+f+g;
    int z = c+d+h;
    if(x==y && y==z && z=x) printf("Yes");
    else("No");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:25: error: lvalue required as left operand of assignment
   11 |     if(x==y && y==z && z=x) printf("Yes");
      |                         ^
Language: C

#include<stdio.h>

int main(){
    int a,b,c,d,e,f,g,h,i;
    scanf("%d %d %d %d %d %d %d %d %d",&a,&b,&c,&d,&e,&f,&g,&h,&i);
    if((a+d+g)==(b+e+h) && (b+e+h)=(c+f+i) printf("Yes");
    else("No");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:35: error: lvalue required as left operand of assignment
    6 |     if((a+d+g)==(b+e+h) && (b+e+h)=(c+f+i) printf("Yes");
      |                                   ^
main.c:6:43: error: expected ')' before 'printf'
    6 |     if((a+d+g)==(b+e+h) && (b+e+h)=(c+f+i) printf("Yes");
      |       ~                                   ^~~~~~~
      |                                           )
main.c:9:1: error: expected expression before '}' token
    9 | }
      | ^
Language: C

#include<stdio.h>
 
int main(void){
	int a[3][3],i,j,flag=0;
	for(i = 0; i < 3; i++){
		for(j = 0; j < 3; j++){
			scanf("%d",&a[i][j]);
		}
	}
	for(i = 0; i < 2; i++){
		for(j = 0; j < 2; j++){
			if(a[i][j] - a[i+1][j] == a[i][j+1] - a[i+1][j+1]){
				flag = 1;
			}
			else{
				flag = 0;
			}
		}
	}
	flag ? printf("Yes\n") : printf("No\n");


Compiler output:
main.c: In function 'main':
main.c:20:9: error: expected declaration or statement at end of input
   20 |         flag ? printf("Yes\n") : printf("No\n");
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define int long long
using namespace std;
signed main(){
	vrctor<vector<int>> a(2,vector<int> 2)
	REP(i,3){
		REP(j,3){
			cin >> a[i][j];
		}
	}
	REP(i,2){
		REP(j,2){
			if(a[i][j] - a[i+1][j] != a[i][j+1] - a[i+1][j+1])
			goto dame;
		}
	}
	REP(i,2){
		REP(j,2){
			if(a[i][j] - a[i][j+1] != a[i+1][j] - a[i+1][j+1])
			goto dame;
		}
	}
	cout << "Yes" << endl;
	goto owari;
	dame:
	cout << "No" << endl;
	owari:


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'vrctor' was not declared in this scope
    7 |         vrctor<vector<int>> a(2,vector<int> 2)
      |         ^~~~~~
a.cc:7:26: error: expected primary-expression before '>' token
    7 |         vrctor<vector<int>> a(2,vector<int> 2)
      |                          ^~
a.cc:7:45: error: expected primary-expression before numeric constant
    7 |         vrctor<vector<int>> a(2,vector<int> 2)
      |                                             ^
a.cc:7:29: error: 'a' was not declared in this scope
    7 |         vrctor<vector<int>> a(2,vector<int> 2)
      |                             ^
a.cc:8:13: error: 'i' was not declared in this scope
    8 |         REP(i,3){
      |             ^
a.cc:3:35: note: in definition of macro 'REP'
    3 | #define REP(i, n) for (int i = 0; i < (n); ++i)
      |                                   ^
Language: C

#include<stdio.h>
 
int main(void){
	int a[3][3],i,j,flag=0;
	for(i = 0; i < 3; i++){
		for(j = 0; j < 3; j++){
			scanf("%d",&a[i][j]);
		}
	}
	
	for(i = 0; i < 2; i++){
		for(j = 0; j < 2; j++){
			if(a[i][j] - a[i+1][j] == a[i][j+1] - a[i+1][j+1]){
				flag = 1;
			}
		}
	}
	flag ? printf("Yes\n") : printf("No\n");


Compiler output:
main.c: In function 'main':
main.c:18:9: error: expected declaration or statement at end of input
   18 |         flag ? printf("Yes\n") : printf("No\n");
      |         ^~~~
Language: C++

#include<cstdio>
using namespace std;
int main(){
  int a[3],b[3],c[3][3],flag=1;
  for(int i=0;i<3;i++)
    for(int j=0;j<3;j++)
      scanf("%d",&c[i][j]);
  a[0]=0;
  b[0]=c[0][0];
  b[1]=c[0][1];
  b[2]=c[0][2];
  a[1]=c[1][0]-b[0];
  a[2]=c[2][0]-b[0];
  for(int i=0;i<3;i++)
    for(int j=0;j<3;j++){
      if(c[i][j]!=a[i]+b[j])
        flag=0;
    }
  if(flag)
   cout<<"Yes"<<endl;
  else
   cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:4: error: 'cout' was not declared in this scope
   20 |    cout<<"Yes"<<endl;
      |    ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:20:17: error: 'endl' was not declared in this scope
   20 |    cout<<"Yes"<<endl;
      |                 ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:22:4: error: 'cout' was not declared in this scope
   22 |    cout<<"No"<<endl;
      |    ^~~~
a.cc:22:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:16: error: 'endl' was not declared in this scope
   22 |    cout<<"No"<<endl;
      |                ^~~~
a.cc:22:16: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>

using namespace std;

int main(){
	int a[3][3];
  	for(int i=0; i < 3; i++){
      for(int j = 0; j < 3; j++){
        cin >> a[i][j];
      }
    }
  	
  	flag = 0;
  	
  	for(int i= 0; i < 2; i++){
    	int diff = a[0][i] - a[0][i+1];
      	for(int j = 0; j < 2; j++){
          if(a[j][i] - a[j][i+1] != diff) flag = 1;
        }
     }
  
     for(int i= 0; i < 2; i++){
    	int diff = a[i][0] - a[i+1][0];
      	for(int j = 0; j < 2; j++){
          if(a[i][j] - a[i+1][j] != diff) flag = 1;
        }
     }
	if(flag != 0) cout << 'No' << endl;
  	else cout << 'Yes' << endl;
  
}


Compiler output:
a.cc:28:31: warning: multi-character character constant [-Wmultichar]
   28 |         if(flag != 0) cout << 'No' << endl;
      |                               ^~~~
a.cc:29:22: warning: multi-character character constant [-Wmultichar]
   29 |         else cout << 'Yes' << endl;
      |                      ^~~~~
a.cc: In function 'int main()':
a.cc:13:9: error: 'flag' was not declared in this scope
   13 |         flag = 0;
      |         ^~~~
Language: C++

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

int main(){
  int array[3][3],a1=0,a2,a3,b1,b2,b3;
  bool judge=true;
  for(int i=0;i<3;i++){
    for(int j=0;j<n;j++){
      cin>>array[i][j];
    }
  }
  b1=array[0][0];
  b2=array[0][1];
  b3=array[0][2];
  a2=array[1][0]-b1;
  if(array[1][1]!=a2+b2||array[1][2]!=a2+b3){
    bool judge=false;
  }
  a3=array[2][0]-b1;
  if(array[2][1]!=a3+b2||array[2][2]!=a3+b3){
    bool judge=false;
  }
  cout<<(judge?"Yes":"No")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'n' was not declared in this scope
    8 |     for(int j=0;j<n;j++){
      |                   ^
Language: C++

#include<bits/stdc++.h>

#define REP(i,s,n) for(int i=s;i<n;++i)
#define rep(i,n) REP(i,0,n)
#define ALL(x) x.begin(),x.end()
#define EPS (1e-8)
#define equals(a,b) (fabs((a)-(b))<EPS)

using namespace std;

typedef long long ll;
typedef pair<int,int> ii;

inline bool LT(double a,double b) { return !equals(a,b) && a < b; }
inline bool LTE(double a,double b) { return equals(a,b) || a < b; }

int c[5][5];

bool check(deque<int> &a) {
  vector<int> b;


Compiler output:
a.cc: In function 'bool check(std::deque<int>&)':
a.cc:20:17: error: expected '}' at end of input
   20 |   vector<int> b;
      |                 ^
a.cc:19:27: note: to match this '{'
   19 | bool check(deque<int> &a) {
      |                           ^
a.cc:20:17: warning: no return statement in function returning non-void [-Wreturn-type]
   20 |   vector<int> b;
      |                 ^