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

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



int main() {
    int c1[3];
    int c2[3];
    int c3[3];

    for(int i=0;i<3;i++){
        cin >> c1[i] >> c2[i] >> c3[i]; 
    }
    
    a1 = 0;
    b1 = c1[0];
    b2 = c1[1];
    b3 = c1[2];

    for(int a2=-100;a2<101;a2++){
        for(int a3=-100;a3<101;a3++){
            if c2[0]
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'a1' was not declared in this scope; did you mean 'c1'?
   15 |     a1 = 0;
      |     ^~
      |     c1
a.cc:16:5: error: 'b1' was not declared in this scope; did you mean 'c1'?
   16 |     b1 = c1[0];
      |     ^~
      |     c1
a.cc:17:5: error: 'b2' was not declared in this scope; did you mean 'c2'?
   17 |     b2 = c1[1];
      |     ^~
      |     c2
a.cc:18:5: error: 'b3' was not declared in this scope; did you mean 'c3'?
   18 |     b3 = c1[2];
      |     ^~
      |     c3
a.cc:22:16: error: expected '(' before 'c2'
   22 |             if c2[0]
      |                ^~
      |                (
Language: C++

#include <bits/stdc++.h>
#define FOR(i, a, n) for(int (i) = (int)(a); (i) < (int)(n); ++(i))
#define FORe(i, a, n) for(int (i) = (int)(a); (i) <= (int)(n); ++(i))
#define rFOR(i, a, n) for(int (i) = (int)(n)-1; (i) >= (int)(a); --(i))
#define REP(i, n) FOR((i), 0, (n))
#define REPe(i, n) FORe((i), 0, (n))
#define rREP(i, n) rFOR((i), 0, (n))
#define rep(i, n) FOR((i), 0, (n))
#define all(v) (v).begin(), (v).end()
using namespace std;
using ll = long long;
using P = pair<int,int>;

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int c[3][3];

int main() {
  REP(i, 3) REP(j, 3) cin >> c[i][j];
  if(c[0][0]+c[1][1]+c[2][2]==c[0][1]+c[1][2]+c[2]==c[0][2]+c[1][0]+c[2][1]) {
    cout << "Yes" << endl;
  }else cout << "No" << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |   if(c[0][0]+c[1][1]+c[2][2]==c[0][1]+c[1][2]+c[2]==c[0][2]+c[1][0]+c[2][1]) {
      |      ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <vector>
#include <cmath> 

using namespace std;

int main() {
    int C[3][3];
    int b[3];

    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            cin >> C[i][j];
        }
        cout << endl;
    }

    for (int a = 0; a <= 100; a++) {
        b[0] = C[0][0] - a;
        b[1] = C[0][1] - a;
        b[2] = C[0][2] - a;

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

    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:14: error: 'c' was not declared in this scope
   26 |         if ((c[1][0] - b[0] == C[1][1] - b[1]) && (C[1][1] - b[1] == C[1][2] - b[2])) {
      |              ^
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const int INF= 1e9+5;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll> >vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
const ll MOD=1000000007LL;
int main(){
  bool ans=true;
  vvl c(3,vi(3));
  rep(i,3){
    rep(j,3){
      cin>>c[i][j];
    }
  }
  rep(i,2){
      if(!(c[i+1][0]-c[i][0]==c[i+1][1]-c[i][1] &&c[i+1][1]-c[i][1]==c[i+1][2]-c[i][2]))ans=false;
  }
  rep(i,2){
    if(!(c[0][i+1]-c[0][i]==c[1][i+1]-c[1][i]&& c[1][i+1]-c[1][i]==c[2][i+1]-c[2][i]))ans=false;
  }
  if(ans)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'vi' was not declared in this scope; did you mean 'vl'?
   16 |   vvl c(3,vi(3));
      |           ^~
      |           vl
Language: C++

#include <bits/stdc++.h>
using namespace std;
#pragma GCC target ("avx2")
#pragma GCC optimization ("unroll-loops")
#define rep(i, n) for(int i=0;i<(int)(n);++i)

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    vector<int> vec(9);
    for (int i = 0; i < 9; ++i) {
        cin >> vec[i];
    }
    debug(vec);
    vector<int> check(3);
    rep(i, 3) {
        check[i] = vec[i] + vec[3 + (i+4) % 3] + vec[6 + (i+2)%3];
    }
    debug(check);
    if (check[0] == check[1] && check[0] == check[2]) {
        cout << "Yes" << '\n';
    }
    else {
        cout << "No" << '\n';
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'debug' was not declared in this scope
   14 |     debug(vec);
      |     ^~~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;

int main() {
    int c[4][4],x[4],y[4];
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> c[i][j];
        }
    }
    x[0][0]=0;
    for(int i=0;i<3;i++)y[i]=c[0][i]-x[0];
    for(int j=0;j<3;j++)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: In function 'int main()':
a.cc:13:9: error: invalid types 'int[int]' for array subscript
   13 |     x[0][0]=0;
      |         ^
a.cc:15:27: error: 'i' was not declared in this scope
   15 |     for(int j=0;j<3;j++)x[i]=c[i][0]-y[0];
      |                           ^
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;

int main() {
    int c[4][4],x[4][4],y[4][4];
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> c[i][j];
        }
    }
    x[0][0]=0;
    for(int i=0;i<3;i++)y[i]=c[0][i]-x[0];
    for(int j=0;j<3;j++)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: In function 'int main()':
a.cc:14:37: error: invalid operands of types 'int' and 'int [4]' to binary 'operator-'
   14 |     for(int i=0;i<3;i++)y[i]=c[0][i]-x[0];
      |                              ~~~~~~~^~~~~
      |                                    |    |
      |                                    int  int [4]
a.cc:15:27: error: 'i' was not declared in this scope
   15 |     for(int j=0;j<3;j++)x[i]=c[i][0]-y[0];
      |                           ^
a.cc:19:20: error: invalid operands of types 'int [4]' and 'int [4]' to binary 'operator+'
   19 |             if(x[i]+y[j]!=c[i][j]){
      |                ~~~~^~~~~
      |                   |    |
      |                   |    int [4]
      |                   int [4]
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;

int main() {
    int c[4][4],x[4][4],y[4][4];
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> c[i][j];
        }
    }
    x[0][0]=0;
    for(int i=0;i<3;i++)y[i]=c[0][i]-x[0];
    for(int j=0;j<3;j++)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]!=a[i][j]){
                good = false;
            }
        }
    }
    if(good) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:37: error: invalid operands of types 'int' and 'int [4]' to binary 'operator-'
   14 |     for(int i=0;i<3;i++)y[i]=c[0][i]-x[0];
      |                              ~~~~~~~^~~~~
      |                                    |    |
      |                                    int  int [4]
a.cc:15:27: error: 'i' was not declared in this scope
   15 |     for(int j=0;j<3;j++)x[i]=c[i][0]-y[0];
      |                           ^
a.cc:19:20: error: invalid operands of types 'int [4]' and 'int [4]' to binary 'operator+'
   19 |             if(x[i]+y[j]!=a[i][j]){
      |                ~~~~^~~~~
      |                   |    |
      |                   |    int [4]
      |                   int [4]
a.cc:19:27: error: 'a' was not declared in this scope
   19 |             if(x[i]+y[j]!=a[i][j]){
      |                           ^
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;

int main() {
    int c[4][4],x[4][4],y[4][4];
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> c[i][j];
        }
    }
    x[0]=0;
    for(int i=0;i<3;i++)y[i]=c[0][i]-x[0];
    for(int j=0;j<3;j++)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]!=a[i][j]){
                good = false;
            }
        }
    }
    if(good) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: incompatible types in assignment of 'int' to 'int [4]'
   13 |     x[0]=0;
      |     ~~~~^~
a.cc:14:37: error: invalid operands of types 'int' and 'int [4]' to binary 'operator-'
   14 |     for(int i=0;i<3;i++)y[i]=c[0][i]-x[0];
      |                              ~~~~~~~^~~~~
      |                                    |    |
      |                                    int  int [4]
a.cc:15:27: error: 'i' was not declared in this scope
   15 |     for(int j=0;j<3;j++)x[i]=c[i][0]-y[0];
      |                           ^
a.cc:19:20: error: invalid operands of types 'int [4]' and 'int [4]' to binary 'operator+'
   19 |             if(x[i]+y[j]!=a[i][j]){
      |                ~~~~^~~~~
      |                   |    |
      |                   |    int [4]
      |                   int [4]
a.cc:19:27: error: 'a' was not declared in this scope
   19 |             if(x[i]+y[j]!=a[i][j]){
      |                           ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main (){
  vector<vector<int>>vec;
  for(int i=0;i<3;i++){
    for(int j=0; j<3;j++){
      cin >> vec[i][j];
    }
  }
  for(int i=0;i<101;i++){
    for(int j=0;j<101;j++){
      b1=vec[0][0]-i;
      b2=vec[1][1]-i;
      b3=vec[2][2]-i;
      a3=vec[0][2]-b1;
      if(j+b1==vec[1][0] && j+b2==vec[1][1] && j+b3==vec[1][2] && a3+b2==vec[1][2] && a3+b3==vec[2][2]){
        cout << "Yes" << endl;
        return 0;
      }
        
    }
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'b1' was not declared in this scope
   13 |       b1=vec[0][0]-i;
      |       ^~
a.cc:14:7: error: 'b2' was not declared in this scope
   14 |       b2=vec[1][1]-i;
      |       ^~
a.cc:15:7: error: 'b3' was not declared in this scope
   15 |       b3=vec[2][2]-i;
      |       ^~
a.cc:16:7: error: 'a3' was not declared in this scope
   16 |       a3=vec[0][2]-b1;
      |       ^~
Language: C++

#include<bits/stdc++.h>


using namespace std;
 
int main(){
  int c[3][3];
  int a[3];
  int b[3];

  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      cin >> c[i][j];
    }
  }

  int c1[2][3]
  for(int i = 0; i < 2; i++){
    for(int j = 0; j < 3; j++){
      c1[i][j] = c[i + 1][j] - c[i][j]; //a[i+1] - a[i];
    }
  }

  for(int i = 0; i < 2; i++){
    for(int j = 0; j < 2; j++){
      if(c1[i][j] != c1[i][j+1]){
        cout << "No";
        return 0;
      }
    }
  }

  cout << "Yes";

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: expected initializer before 'for'
   18 |   for(int i = 0; i < 2; i++){
      |   ^~~
a.cc:18:18: error: 'i' was not declared in this scope
   18 |   for(int i = 0; i < 2; i++){
      |                  ^
a.cc:26:10: error: 'c1' was not declared in this scope; did you mean 'c'?
   26 |       if(c1[i][j] != c1[i][j+1]){
      |          ^~
      |          c
Language: C++

#include<bits/stdc++.h>
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define FORR(i,a,b)for(ll i=(a);i<=(b);i++)
#define repR(i,n) for(ll i=n;i>=0;i--)
#define all(v)(v).begin(),(v).end()
#define rall(v)(v).rbegin(),(v).rend()
#define F first
#define S second
#define pb push_back
#define pu push
#define COUT(x) cout<<(x)<<endl
#define PQ priority_queue<ll>
#define PQR priority_queue<ll,vector<ll>,greater<ll>>
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define mp make_pair
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define sz(x) (int)(x).size()
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
const ll MOD = 1000000007LL;
const ll INF = 1LL << 60;
using vll = vector<ll>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vvll = vector<vll>;
using vstr = vector<string>;
using pll = pair<ll, ll>;
ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}
int main(){
  vvll c(3,vll(3));
  ll cu=0;
  rep(i,3)rep(j,3) cin>>c[i][j];
  vll a(3);
  vll b(3);
  rep(i,101){
    q=1;
    a[0]=i;
    rep(j,101){
      a[1]=j;
      rep(u,101){
        a[2]=u;
        ll q=1;
        rep(y,3){
          b[y]=c[0][y]-a[y];
          if(b[y]<0){
            q=0;
            break;
          }
        }
        if(q==0){
          break;
        }
        for(int r=1;i<3){
          rep(e,3){
            if(c[r][e]!=a[r]+b[e]){
              q=0;
              break;
            }
          }
        }
        if(q) {
          cu=1;
          COUT("Yes");
          return 0;
        }
      }
    }
  }
  if(!q) COUT("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:5: error: 'q' was not declared in this scope
   45 |     q=1;
      |     ^
a.cc:62:24: error: expected ';' before ')' token
   62 |         for(int r=1;i<3){
      |                        ^
      |                        ;
a.cc:78:7: error: 'q' was not declared in this scope
   78 |   if(!q) COUT("No");
      |       ^
Language: C++

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

int main()
{
	
    vector<vector<int>> c(3, vector<int>(3));

	int a1;    // 0 <= c_ij <= 100
	int a2;
	int a3;
	int b1;
	int b2;
	int b3;

	string answer = "No;

	// 入力
	for (int i = 0; i < 3; i++) {
		cin >> c.at(i).at(0) >> c.at(i).at(1) >> c.at(i).at(2);
	}

	// a1
	a1 = 0;

	// b1,b2,b3
	for (int i = 0; i < 3; i++) {
		b1 = c.at(a1).at(i) - a1;
	}

	// a2,a3
	a2 = c.at(1).at(0) - b1;
	a3 = c.at(2).at(0) - b1;


	if (a1 + b1 == c.at(0).at(0) &&
		a1 + b2 == c.at(0).at(1) &&
		a1 + b3 == c.at(0).at(2) &&

		a2 + b1 == c.at(1).at(0) &&
		a2 + b2 == c.at(1).at(1) &&
		a2 + b3 == c.at(1).at(2) &&

		a3 + b1 == c.at(2).at(0) &&
		a3 + b2 == c.at(2).at(1) &&
		a3 + b3 == c.at(2).at(2))
	{
		answer = "Yes";
	}
	
	cout << answer <<  endl;

	return 0;
}

Compiler output:
a.cc:16:25: warning: missing terminating " character
   16 |         string answer = "No;
      |                         ^
a.cc:16:25: error: missing terminating " character
   16 |         string answer = "No;
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:19:9: error: expected primary-expression before 'for'
   19 |         for (int i = 0; i < 3; i++) {
      |         ^~~
a.cc:19:25: error: 'i' was not declared in this scope
   19 |         for (int i = 0; i < 3; i++) {
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
// Welcome to my source code!

int main() {
    int c[3][3];
    int minj[3] = { 10, 10, 10 };
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            cin >> c[i][j];
            minj[j] = min(minj[j], c[i][j]);
        }
    }
    int t[3];
    bool flag = true;
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            t[j] = c[i][j] - minj[j];
        }
        if (!(t[0] == t[1] && t[1] == t[2]) && t[j] < 0) flag = false;
    }
    if (flag) cout << "Yes" << endl;
    else cout << "No" << endl;
}9

Compiler output:
a.cc: In function 'int main()':
a.cc:22:50: error: 'j' was not declared in this scope
   22 |         if (!(t[0] == t[1] && t[1] == t[2]) && t[j] < 0) flag = false;
      |                                                  ^
a.cc: At global scope:
a.cc:26:2: error: expected unqualified-id before numeric constant
   26 | }9
      |  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	vector<int> c(9);
	for (int i = 0; i < 9; i++) {
		cin >> c.at(i);
	}
	if (c.at(0) == c.at(1) && c.at(1) == c.at(2) && c.at(3) == c.at(4) && c.at(4) == c.at(5) && c.at(6) == c.at(7) && c.at(7) == c.at(8) && c.at(0) == c.at(3) && c.at(1) == c.at(4) && c.at(2) == c.at(5) && c.at(3) == c.at(6) && c.at(4) == c.at(7) && c.at(5) == c.at(8)) cout << "Yes";
	else cout << "No";


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

#include <iostream>
#include <cstring>
#include <algorithm>
#include <vector>
#include <string>
#include <math.h>
#include <stdio.h>
#include <iomanip>
#include <limits>
#include <list>
#include <queue>
#include <tuple>
#include <map>
#include <set>
#include <sstream>
using namespace std;
#define MOD (long long int)(1e9+7)
#define ll long long int
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define reps(i,n) for(int i=1; i<=(int)(n); i++)
#define REP(i,n) for(int i=n-1; i>=0; i--)
#define REPS(i,n) for(int i=n; i>0; i--)
#define FOR(i,a,b) for(int i=a; i<(int)(b); i++)
#define ALL(x) (x).begin(),(x).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define SORT(c) sort(ALL(x))
#define CLR(a) memset((a), 0 ,sizeof(a))
#define PB push_back
#define MP make_pair
#define SP << " " <<
const int INF = 1001001001;
const ll LINF = 100100100100100100;
const double EPS = 1e-10;
const double PI  = acos(-1.0);
typedef pair<int,int> PII;
typedef vector<int> VI;
typedef vector<VI> VVI;

template<typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val){

    std::fill( (T*)array, (T*)(array+N), val );
}

__attribute__((constructor))
void initial(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	cout << fixed << setprecision(15);
}

bool IsPrime(ll num){
    if(num < 2) return false;
    else if(num == 2) return true;
    else if(num % 2 == 0) return false; // 偶数はあらかじめ除く

    double sqrtNum = sqrt(num);
    for(ll i = 3; i <= sqrtNum; i += 2){
        if(num%i==0){
            // 素数ではない
            return false;
        }
    }
    // 素数である
    return true;
}

ll llabs(ll a, ll b){
  if(a>=b) return a-b;
  else return b-a;
}

ll llmax(ll a, ll b){
  if(a>=b) return a;
  else return b;
}

ll llmin(ll a, ll b){
  if(a<=b) return a;
  else return b;
}


// 降順P番目までは確実に採用される
// 絶対に問題セットに採用されない問題：ジャッジ全員が点数を入れても降順P番目に点数が入らない場合
// そのとき、他の問題への投票は、降順P番目未満の問題
// V問を選ぶ：昇順V-1問目までの場合は、他の問題に投票する場合を考えなくてはいけない　→　不要？？？？
// 初期で降順P番目の問題の点数と比較する必要がありそう

// ジャッジにより最大+m点が加算される
// 降順P番目の問題に加点されてしまうのは、V>Pのとき

// 入れたい問題には、全員が点をいれればいい
// i番目の問題を入れるとする
// それ以外の点数の振り方は、降順でP-1番目までの問題＞入れたい問題よりも昇順で早い問題
// 困るとき：(p-1)+i < v のとき(予定よりも多くの問題に点を入れなければいけないとき)

signed main(){
  VVI c;
  VI t(3);
  rep(_,3){
    VI d(3); rep(i,3) cin>>d[i]; c.PB(d);
    t[i] = 0;
  }
  rep(i,3){
    rep(j,3){
      t[(i+j)%3] += c[i][j];
    }
  }
  if(c[0]==c[1]&&c[1]==c[2]) cout << "Yes" << endl;
  else cout << "No" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:103:7: error: 'i' was not declared in this scope
  103 |     t[i] = 0;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	vector<vector<int>>D(3,vector<int>(3));
	for (int i = 0; i < 3; i++)
	{
		for (int j = 0; j < 3; j++)
		{
			cin>>D[i][j];
		}
		
	}
	int a=D[0][0]+D[1][1]+D[2][2];
	bool A=true;
	if ((D[22]==D[2][1]+C[1][2]-C[1][1]&&D[2][3]==D[2][1]+D[1][3]-D[1][1]&&D[3][2]==D[3][1]+D[2][1]-D[1][2]&&D[3][3]==D[1][3]+D[3][1]-D[1][2]))
	{
		A=false;
	}
	if (A)
	{
		cout << "Yes"<<endl;
	}
	else
	{
		cout << "No"<<endl;
	}
	
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: 'C' was not declared in this scope
   15 |         if ((D[22]==D[2][1]+C[1][2]-C[1][1]&&D[2][3]==D[2][1]+D[1][3]-D[1][1]&&D[3][2]==D[3][1]+D[2][1]-D[1][2]&&D[3][3]==D[1][3]+D[3][1]-D[1][2]))
      |                             ^
Language: C++

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

int main(){
 int a[3][3];
 int x[3];
 int y[3];
 for(int i=0;i<3;i++){
  for(int i=0;j<3;i++){
    cin>>a[i][j];
  }
 }  
  x[0]=0;
for(int i=0;i<3;i++) y[i]=a[0][i]-x[0];
  for(int i=0;i<3;i++)x[i]=a[i][0]-y[0];
  bool good = true;
  for(int i=0;i<3;i++){
   for(int j=0;j<3;j++){
    if(a[i][j]!=x[i]+y[j]){
    good=false;
    }
   }
  }
  if(good==true)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
  

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

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

int main(){
 int a[3][3];
 int x[3];
 int y[3];
 for(i=0;i<3;i++){
  for(i=0;j<3;i++){
    cin>>a[i][j];
  }
 }  
  x[0]=0;
for(i=0;i<3;i++) y[i]=a[0][i]-x[0];
  for(i=0;i<3;i++)x[i]=a[i][0]-y[0];
  bool good = true;
  for(i=0;i<3;i++){
   for(j=0;j<3;j++){
    if(a[i][j]!=x[i]+y[j]){
    good=false;
    }
   }
  }
  if(good==true)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'i' was not declared in this scope
    9 |  for(i=0;i<3;i++){
      |      ^
a.cc:10:11: error: 'j' was not declared in this scope
   10 |   for(i=0;j<3;i++){
      |           ^
a.cc:15:5: error: 'i' was not declared in this scope
   15 | for(i=0;i<3;i++) y[i]=a[0][i]-x[0];
      |     ^
a.cc:16:7: error: 'i' was not declared in this scope
   16 |   for(i=0;i<3;i++)x[i]=a[i][0]-y[0];
      |       ^
a.cc:18:7: error: 'i' was not declared in this scope
   18 |   for(i=0;i<3;i++){
      |       ^
a.cc:19:8: error: 'j' was not declared in this scope
   19 |    for(j=0;j<3;j++){
      |        ^
Language: C

#include<cstdio>

using namespace std;

int main(){
    int c[3][3];
    for(int i = 0; i < 3; i++){
        scanf("%d %d %d", &c[i][0], &c[i][1], &c[i][2]);

    }
    if (c[1][0] - c[0][0] == c[1][1] - c[0][1] && c[1][1] - c[0][1] == c[1][2] - c[0][2] && c[2][0] - c[0][0] == c[2][1] - c[0][1] && c[2][1] - c[0][1] == c[2][2] - c[0][2]){
        puts("Yes");
    }else{
        puts("No");
    }
}

Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C++

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

const int H = 3;
const int W = 3;
const int C_MAX = 100;

int main() {
	vector<vector<int>> c(H, vector<int>(W));
	for(int h = 0; h < H; h++)
		for(int w = 0; w < W; w++)  cin >> c[h][w];
	bool result = false;
	for(int i = 0; i <= c[0][0]; i++) 
	  vector<int> a(H);
	  vector<int> b(W);
	  a[0] = i;
	  b[0] = c[0][0] - a[0];
	  for(int h = 1; h < H; h++) a[h] = c[h][0] - b[0];
	  for(int w = 1; w < W; w++) b[w] = c[0][w] - a[0];
	  bool ok = true;
	  for(int h = 1; h < H; h++) {
        for(int w = 1; w < W; w++) {
    		if(c[h][w] != a[h] + b[w]) {
					ok = false;
					break;
				}
			}
			if(!ok) break;
		}
		if(ok) {
			result = true;
			break;
		}
	}
	cout << (result ? "Yes" : "No") << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'a' was not declared in this scope
   16 |           a[0] = i;
      |           ^
a.cc:16:18: error: 'i' was not declared in this scope
   16 |           a[0] = i;
      |                  ^
a.cc:32:25: error: break statement not within loop or switch
   32 |                         break;
      |                         ^~~~~
a.cc: At global scope:
a.cc:35:9: error: 'cout' does not name a type
   35 |         cout << (result ? "Yes" : "No") << endl;
      |         ^~~~
a.cc:36:9: error: expected unqualified-id before 'return'
   36 |         return 0;
      |         ^~~~~~
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
static const ll mod = 1000000007;
/* ちゃんと考えて実装して問題なくACできた時嬉しいよ！！ */

int main(void){
    vector< vector<int> > c;
    for(int i=0; i<3; i++){
        for(int j=0; j<3; j++){
            int tmp_c;
            cin >> tmp_c;
            v[i].push_back(tmp_c);
        }
    }
    int a = 0;
    int b = 0;
    for(int i=0; i<3; i++){
        for(int j=0; j<3; j++){
            a += v[i][j];
            if(i==j){
                b += v[i][j];
            }
        }
    }
    if(a == b*3) cout << "Yes";
    else cout << "No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'v' was not declared in this scope
   13 |             v[i].push_back(tmp_c);
      |             ^
a.cc:20:18: error: 'v' was not declared in this scope
   20 |             a += v[i][j];
      |                  ^
Language: C++

/*Function Template*/
#include<bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
#define rep(i, n) for(int i = 0; i < (n); i++)


int Len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}


int Sint(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int Svec(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}


int GCD(int a,int b){
  int r,tmp;
/*自然数 a > b を確認・入替*/
  if(a<b){
    tmp=a,a=b,b=tmp;
  }
/*ユークリッドの互除法*/
  r=a%b;
  while(r!=0){
    a=b,b=r,r=a%b;
  }
  return b;
}


int LCM(int a,int b){
  int c=a,d=b,r,tmp;
/*自然数 a > b を確認・入替*/
  if(a<b){
    tmp=a,a=b,b=tmp;
  }
/*ユークリッドの互除法*/
  r=a%b;
  while(r!=0){
    a=b,b=r,r=a%b;
  }
  return c/b*d;
}


int Factorial(int n){
  int m=1;
  while(n>=1) m*=n,n--;
  return m;
}


/*↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/
int main() {
  bool flag=true;
  vector<vector<int>> v(3,vector<int>(3));
  rep(i,3) rep(j,3) cin>>v[i][j];
  if(c[0][1]-c[0][0]==c[1][1]-c[1][0] && c[1][1]-c[1][0]==c[2][1]-c[2][0] && c[0][2]-c[0][1]==c[1][2]-c[1][1] && c[1][2]-c[1][1]==c[2][2]-c[2][1]){
  }else{
    flag=false;
  }
  
  if(flag){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:72:6: error: 'c' was not declared in this scope
   72 |   if(c[0][1]-c[0][0]==c[1][1]-c[1][0] && c[1][1]-c[1][0]==c[2][1]-c[2][0] && c[0][2]-c[0][1]==c[1][2]-c[1][1] && c[1][2]-c[1][1]==c[2][2]-c[2][1]){
      |      ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <string>
#include <unordered_map>
#include <queue>
#include <set>

using namespace std;

#define ll long long
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
const int inf = 1e9+7;
const ll longinf = 1LL<<60;
const ll mod = 1e9+7;


int main(){
    int c[3][3];
    rep(i, 3) rep(j, 3) cin >> c[i][j];
    bool answer=true;
    rep(i, 2)
        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])
            answer = false;
        if (c[i][0] - c[i + 1][0] != c[i][1] - c[i + 1][1] || c[i][1] - c[i + 1][1] != c[i][2] - c[i + 1][2])
            answer = false;
    if (answer) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:15: error: 'i' was not declared in this scope
   28 |         if (c[i][0] - c[i + 1][0] != c[i][1] - c[i + 1][1] || c[i][1] - c[i + 1][1] != c[i][2] - c[i + 1][2])
      |               ^
Language: C++

#include<bits/stdc++.h>
// debug
#define d(x) cerr << #x ":" << x << endl;
#define dd(x, y) cerr << "(" #x "," #y "):(" << x << "," << y << ")" << endl;
#define ddd(x, y, z) cerr << "(" #x "," #y "," #z "):(" << x << "," << y << "," << z << ")" << endl;
#define dump(v) cerr<<#v":[ ";for (auto macro_vi:v){cerr<<macro_vi<< " ";}cerr<<"]"<<endl;
#define ddump(v) cerr<<#v":"<<endl;for(auto macro_row:v) {cerr<<"["; for (auto macro__vi:macro_row){cerr<<macro__vi<< " ";}cerr<<"]"<<endl;}
#define damp(m) for(auto macro_pair:m){cerr<< macro_pair.first<<":"<<macro_pair.second<<endl;}
#define dpair(p) cerr << #p":"<<"(" << p.first << "," << p.second << ")" << endl;
// iterate
#define repr(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) repr(i, 0, n)
#define reprrev(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--)
#define reprev(i, n) reprrev(i, 0, n)
#define repi(itr, ds) for (auto itr = ds.begin(); itr != ds.end(); itr++)
#define all(v) v.begin(), v.end()
// etc
#define chmin(mi, val) mi = min(mi, val);
#define chmax(ma, val) ma = max(ma, val);
using ll = long long;

using namespace std;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    vector<int> a(3), b(3);
    vector<vector<int>> c(3, vector<int>(3,0));

    rep(i,3)rep(j,3){
        cin>>c[i][j];
    }

    a[0]= 0;
    for(int i=0; i<3; i++){
        b[i] = c[0][i] - a[0];
        d(b[i])
    }
    for(int j=0; j<3; j++){
        a[j]  = c[j][0] - b[0];
    }
    bool ok = true;
    dump(a)
    dump(b)
    for(int i=0; i<3; i++){
        for(int j=0; j<3; j++){
            if(not (a[i] + b[j] == c[i][j])
                ok = false;
        }
    }
    cout << (ok?"Yes":"No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:44: error: expected ';' before 'ok'
   47 |             if(not (a[i] + b[j] == c[i][j])
      |                                            ^
      |                                            ;
   48 |                 ok = false;
      |                 ~~                          
a.cc:49:9: error: expected primary-expression before '}' token
   49 |         }
      |         ^
a.cc:48:28: error: expected ')' before '}' token
   48 |                 ok = false;
      |                            ^
      |                            )
   49 |         }
      |         ~                   
a.cc:47:15: note: to match this '('
   47 |             if(not (a[i] + b[j] == c[i][j])
      |               ^
a.cc:49:9: error: expected primary-expression before '}' token
   49 |         }
      |         ^
Language: C++

#include <bits/stdc++.h>
// atoi : atoi(str.c_str())
using namespace std;
using vi = vector<int>;
using vb = vector<bool>;
using vc = vector<char>;
using vs = vector<string>;
using vvi = vector<vector<int>>;
using vvc = vector<vector<char>>;
using pii = pair<int, int>;
#define fix10 cout << fixed << setprecision(10);
#define rep(i,n) for(int i=0; i<(int)(n);i++)

int main(){
  vii c(3,vi(3));
  rep(i,3){
    rep(j,3){
      cin >> c.at(i).at(j);
    }
  }
  rep(i,3){
    rep(j,3){
      int x = c.at(i%3).at(j%3) + c.at((i+1)%3).at((j+1)%3);
      int y = c.at(i%3).at((j+1)%3) + c.at((i+1)%3).at(j%3);
      if(x != y){
        cout << "No" << endl;
        return 0;
      }
    }
  }
  cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'vii' was not declared in this scope; did you mean 'vvi'?
   15 |   vii c(3,vi(3));
      |   ^~~
      |   vvi
a.cc:18:14: error: 'c' was not declared in this scope
   18 |       cin >> c.at(i).at(j);
      |              ^
a.cc:23:15: error: 'c' was not declared in this scope
   23 |       int x = c.at(i%3).at(j%3) + c.at((i+1)%3).at((j+1)%3);
      |               ^
Language: C++

#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <queue>
#include <cmath>

using namespace std;
using ll = long long;
using ull = unsigned long long;

void ABC088C()
{
	vector<vector<int> > c(3, vector<int>(3));
	for (int i = 0; i < 3; ++i)
		cin >> c[i][0] >> c[i][1] >> c[i][2];

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

int main()
{
	ABC088C();
	return 0;
}

Compiler output:
a.cc: In function 'void ABC088C()':
a.cc:16:17: error: 'cin' was not declared in this scope
   16 |                 cin >> c[i][0] >> c[i][1] >> c[i][2];
      |                 ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    6 | #include <cmath>
  +++ |+#include <iostream>
    7 | 
a.cc:28:33: error: 'cout' was not declared in this scope
   28 |                                 cout << "No" << endl;
      |                                 ^~~~
a.cc:28:33: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:49: error: 'endl' was not declared in this scope
   28 |                                 cout << "No" << endl;
      |                                                 ^~~~
a.cc:7:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    6 | #include <cmath>
  +++ |+#include <ostream>
    7 | 
a.cc:31:9: error: 'cout' was not declared in this scope
   31 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:31:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:26: error: 'endl' was not declared in this scope
   31 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:31:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
  ll num[5][5]={};
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>num[i][j];
    }
  }
  ll b[3]={};
  ll mi=1e9;
  for(int i=0;i<3;i++){
    mi=min(mi,num[0][i]);
   
  }
  for(int i=0;i<n;i++){
    b[i]=num[0][i]-mi;
  }
  for(int i=1;i<3;i++){
    ll hoge;
    for(int j=0;j<3;j++){
      if(j==0)hoge=num[i][j]-num[0][j];
      else{
        if(hoge!=num[i][j]-num[0][j]){cout<<"No"<<endl;return 0;}
      }
    }
  }
  cout<<"Yes"<<endl;
}

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

n = [[0 for i in range(3)] for j in range(3)]

for i in range(3):
  x,y,z = input().split()
  n[i][0] = int(x)
  n[i][1] = int(y)
  n[i][2] = int(z)
  
a = [0,0,0]
b = [0,0,0]

isCmp = False

for j in range(100 +1):
  b[0] = j
  
  a[0] = n[0][0] -b[0]
  a[1] = n[1][0] -b[0]
  a[2] = n[2][0] -b[0]
  b[1] = n[0][1] -a[0]
  b[2] = n[0][2] -a[0]
  
  if  n[0][0] == a[0]+b[0] \
  and n[1][1] == a[1]+b[1] \
  and n[2][2] == a[2]+b[2]:
    print('Yes')
    isCmp = True
    break

    
if isCmp == False:
  print('No')
  


Compiler output:
a.cc:26:11: warning: multi-character character constant [-Wmultichar]
   26 |     print('Yes')
      |           ^~~~~
a.cc:32:9: warning: multi-character character constant [-Wmultichar]
   32 |   print('No')
      |         ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = [[0 for i in range(3)] for j in range(3)]
      | ^
Language: C++

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

int main() {
  int c[9];
  for (int i = 0; i < 9; i++) cin >> c[i];
  int dif = c[3] - c[0], string res = "Yes";
  for (int i = 1; i < 3; i++) {
    if (c[i + 3] - c[i] != dif) res = "No";
  }
  dif = c[6] - c[0];
  for (int i = 1; i < 3; i++) {
    if (c[i + 6] - c[i] != dif) res = "No";
  }
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected initializer before 'res'
    8 |   int dif = c[3] - c[0], string res = "Yes";
      |                                 ^~~
a.cc:10:33: error: 'res' was not declared in this scope
   10 |     if (c[i + 3] - c[i] != dif) res = "No";
      |                                 ^~~
a.cc:14:33: error: 'res' was not declared in this scope
   14 |     if (c[i + 6] - c[i] != dif) res = "No";
      |                                 ^~~
a.cc:16:11: error: 'res' was not declared in this scope
   16 |   cout << res << endl;
      |           ^~~
Language: C++

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

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 >> a.at(i).at(j);
    }
  }
  
  bool ans = false;
  if (a.at(0).at(1) - a.at(0).at(0) == a.at(1).at(1) - a.at(1).at(0)
      && a.at(0).at(1) - a.at(0).at(0) == a.at(2).at(1) - a.at(2).at(0)) {
    if (a.at(0).at(2) - a.at(0).at(1) == a.at(1).at(2) - a.at(1).at(1)
        && a.at(0).at(2) - a.at(0).at(1) == a.at(2).at(2) - a.at(2).at(1)) {
      
      if (a.at(1).at(0) - a.at(0).at(0) == a.at(1).at(1) - a.at(0).at(1)
          && a.at(1).at(0) - a.at(0).at(0) == a.at(1).at(2) - a.at(0).at(2)) {
        if (a.at(2).at(0) - a.at(1).at(0) == a.at(2).at(1) - a.at(1).at(1)
          && a.at(2).at(0) - a.at(1).at(0) == a.at(2).at(2) - a.at(1).at(2)) {
          ans = true;
        }
      }
      
    }
  }
  
  if (ans) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'for'
    6 |   for (int i = 0; i < 3; i++) {
      |   ^~~
a.cc:6:19: error: 'i' was not declared in this scope
    6 |   for (int i = 0; i < 3; i++) {
      |                   ^
a.cc:13:7: error: 'a' was not declared in this scope
   13 |   if (a.at(0).at(1) - a.at(0).at(0) == a.at(1).at(1) - a.at(1).at(0)
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int flag=0;
  vector<int> c(9);
  for(int i=0;i<9;i++)cin>>c.at(i);
  if(c.at(0)%2==1 or c.at(4)%2==1 or c.at(8)%2==1)flag++;
  else{
    int a1=c.at(0)/2,a2=c.at(4)/2,a3=c.at(8)/2;
    if(a1+a2!=c.at(1) or a1+a3!=c.at(2) a1+a2!=c.at(3) or a2+a3!=c.at(5) or a1+a3!=c.at(6) or a2+a3!=c.at(7))flag++;
  }
  if(flag==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: expected ')' before 'a1'
   10 |     if(a1+a2!=c.at(1) or a1+a3!=c.at(2) a1+a2!=c.at(3) or a2+a3!=c.at(5) or a1+a3!=c.at(6) or a2+a3!=c.at(7))flag++;
      |       ~                                ^~~
      |                                        )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int> c(9);
  for(int i=0;i<9;i++)cin>>c.at(i);
  if(c.at(0)%2==1 or c.at(4)%2==1 or c.at(8)%2==1)flag++;
  else{
    int a1=c.at(0)/2,a2=c.at(4)/2,a3=c.at(8)/2;
    if(a1+a2!=c.at(1) or a1+a3!=c.at(2) a1+a2!=c.at(3) or a2+a3!=c.at(5) or a1+a3!=c.at(6) or a2+a3!=c.at(7))flag++;
  }
  if(flag==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:51: error: 'flag' was not declared in this scope
    6 |   if(c.at(0)%2==1 or c.at(4)%2==1 or c.at(8)%2==1)flag++;
      |                                                   ^~~~
a.cc:9:40: error: expected ')' before 'a1'
    9 |     if(a1+a2!=c.at(1) or a1+a3!=c.at(2) a1+a2!=c.at(3) or a2+a3!=c.at(5) or a1+a3!=c.at(6) or a2+a3!=c.at(7))flag++;
      |       ~                                ^~~
      |                                        )
a.cc:9:110: error: 'flag' was not declared in this scope
    9 |     if(a1+a2!=c.at(1) or a1+a3!=c.at(2) a1+a2!=c.at(3) or a2+a3!=c.at(5) or a1+a3!=c.at(6) or a2+a3!=c.at(7))flag++;
      |                                                                                                              ^~~~
a.cc:11:6: error: 'flag' was not declared in this scope
   11 |   if(flag==0)cout<<"Yes"<<endl;
      |      ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(void){
  vector<int> a(3, 0), b(3, 0);
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      int c;
      cin >> c;
      a[i] += c;
      b[j] += c;
    }
  }
  if(!(a[0] % 3 == a[1] % 3 && a[1] % 3 == a[2] % 3)){
    cout << "No" << endl;
    return 0;
  }
  for(int &aa : a) aa /= 3;
  int g = *min_element(a.begin(), a.end());
  for(int &aa : a){
    aa -= g;
  }
  int s = accumulate(a.begin(), a.end(), 0);
  for(int &bb : b){
    bb -= s;
    if(bb < 0){
      cout << "No" << endl;
      return 0;a
    }
  }
  if(!(b[0] % 3 == b[1] % 3 && b[1] % 3 == b[2] % 3)){
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:17: error: expected ';' before '}' token
   29 |       return 0;a
      |                 ^
      |                 ;
   30 |     }
      |     ~
Language: Java

import java.util.Scanner;

public class ABC088C {
	public static void main(String[] args) {
		int[][] a=new int[3][3];
		int[] x=new int[3];
		int[] y=new int[3];
		Scanner sc=new Scanner(System.in);
		for(int i=0;i<3;i++) {
			for(int j=0;j<3;j++) {
				a[i][j]=sc.nextInt();
			}
			
		}
		boolean flag=true;
		
			x[0]=0;
			for(int i=0;i<3;i++) {
				y[i]=a[0][i]-x[0];
			}
			for(int i=0;i<3;i++) {
				x[i]=a[i][0]-y[0];
			}
			flag=true;
			for(int i=0;i<3;i++) {
				for(int j=0;j<3;j++) {
					if(x[i]+y[j]!=a[i][j]) {
						flag=false;
						break;
					}
				}
				
			}
			
			
		
		
		if(flag) {
			System.out.println("Yes");
		}
		else{
				System.out.println("No");
			}
		
	}

}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define print(s) cout << s << endl
#define acc(v) accumulate(v.begin(), v.end(), 0)
#define cinv(n,v) rep(i,n) cin >> v[i]
using namespace std;
const int INF = 1e9;
typedef long long ll;
typedef vector<int> vint;
typedef vector<string> vstr;
typedef vector<char> vchar;
const ll LINF = 1e18;
const ll MOD = 1e9 + 7;
// const lint MOD = 998244353;
int x_pos[4] = {1,0,-1,0}, y_pos[4] = {0,1,0,-1};
int ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}
char upper(char c){
	return c-0x20;
}
char lower(char c){
	return c+0x20;
}

int gcd(int x, int y) {
  if (y == 0) return x;
  return gcd(y, x%y);
}

int main(){
	vector<vecotr<int> > v(3);
	rep(i,3)rep(j,3){
		int a; cin >> a;
		v[i].push_back(a);
	}
	vector<int > x(3), y(3);
	for(int i = 0; i < 3 ; i++){
		x[i] = v[0][i];
		y[i] = v[i][0] - x[0];
	}
	rep(i,3)rep(j,3){
		if (v[i][j]!=x[i] + y[j]){
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:16: error: 'vecotr' was not declared in this scope
   37 |         vector<vecotr<int> > v(3);
      |                ^~~~~~
a.cc:37:26: error: template argument 1 is invalid
   37 |         vector<vecotr<int> > v(3);
      |                          ^
a.cc:37:26: error: template argument 2 is invalid
a.cc:37:28: error: expected unqualified-id before '>' token
   37 |         vector<vecotr<int> > v(3);
      |                            ^
a.cc:40:17: error: 'v' was not declared in this scope
   40 |                 v[i].push_back(a);
      |                 ^
a.cc:44:24: error: 'v' was not declared in this scope
   44 |                 x[i] = v[0][i];
      |                        ^
a.cc:48:21: error: 'v' was not declared in this scope
   48 |                 if (v[i][j]!=x[i] + y[j]){
      |                     ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int C[3][3];
    int a[3], b[3];
    int count = 0;
    bool correct_information = true;

    for( int i = 0; i < 3; i++){
        for( int j = 0; j < 3; j++){
            cin >> c[i][j];
        }
    }


    for( int a1 = 0; a1 <= 100; a1++){
        b[0] = c[0][0] - a1;
        b[1] = c[0][1] - a1;
        b[2] = c[0][2] - a1;

        a[0] = a1;
        a[1] = c[1][0] - b[1];
        a[2] = c[2][0] - b[2];

        count = 0;
        for( int i = 0; i < 3; i++){
            for( int j = 0; j < 3; j++){
                if( a[i] + b[j] == c[i][j]) count++;
                else break;
            }
        }

    }

    if(count == 9) cout << "Yes" << endl;
    else cout << "No" << endl

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'c' was not declared in this scope
   12 |             cin >> c[i][j];
      |                    ^
a.cc:18:16: error: 'c' was not declared in this scope
   18 |         b[0] = c[0][0] - a1;
      |                ^
a.cc:37:30: error: expected ';' before '}' token
   37 |     else cout << "No" << endl
      |                              ^
      |                              ;
   38 | 
   39 | }
      | ~
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'j' was not declared in this scope
   14 |     if(c[j][0]-c[0][0]==c[j][1]-c[0][1] && c[j][1]-c[0][1]==c[j][2]-c[0][2]){
      |          ^
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'j' was not declared in this scope
   14 |       if(c[j][0]-c[0][0]==c[j][1]-c[0][1] && c[j][1]-c[0][1]==c[j][2]-c[0][2]){
      |            ^
a.cc: At global scope:
a.cc:23:3: error: expected unqualified-id before 'if'
   23 |   if(ans)cout << "Yes";
      |   ^~
a.cc:24:3: error: expected unqualified-id before 'else'
   24 |   else cout << "No";
      |   ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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

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);
    }
  }
  
  vector<int> a(3);
  vector<int> b(3);
  for(int i=0;i<3;i++){
    b.at(i) = c.at(0).at(i);
  }
  a(0) = 0;
  for(int i=1;i<3;i++){
    a.at(i) = c.at(i).at(0) - b.at(0);
  }
  
  int k = 0;
  
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      if(c.at(i).at(j) != a.at(i) + b.at(j)){
        k++;
      }
    }
  }
  
  if(K == 0){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:4: error: no match for call to '(std::vector<int>) (int)'
   17 |   a(0) = 0;
      |   ~^~~
a.cc:32:6: error: 'K' was not declared in this scope
   32 |   if(K == 0){
      |      ^
Language: C++

#include <iostream>
#include <array>

int main() {
  std::array<int, 9> g;
  for(auto &gi: g)
    std::cin >> gi;
  d121 = g[0] - g[3];
  d122 = g[1] - g[4];
  d123 = g[2] - g[5];
  d131 = g[0] - g[6];
  d132 = g[1] - g[7];
  d133 = g[2] - g[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 = g[0] - g[3];
      |   ^~~~
a.cc:9:3: error: 'd122' was not declared in this scope
    9 |   d122 = g[1] - g[4];
      |   ^~~~
a.cc:10:3: error: 'd123' was not declared in this scope
   10 |   d123 = g[2] - g[5];
      |   ^~~~
a.cc:11:3: error: 'd131' was not declared in this scope
   11 |   d131 = g[0] - g[6];
      |   ^~~~
a.cc:12:3: error: 'd132' was not declared in this scope
   12 |   d132 = g[1] - g[7];
      |   ^~~~
a.cc:13:3: error: 'd133' was not declared in this scope
   13 |   d133 = g[2] - g[8];
      |   ^~~~