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

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


int c1, c2,c3,c4,c5,c6,c7,c8,c9;
int sum_1,sum_2,sum_3;
int main{
  cin>>c1>>c2>>c3;
  cin>>c4>>c5>>c6;
  cin>>c7>>c8>>c9;
  sum_1 = c1+c5+c9;
  sum_2 = c2+c6+c7;
  sum_3 = c3+c4+c8;
  if(sum_1 == sum_2 == sum_3){
    cout<< "Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

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

#include<bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(false),cin.tie(NULL)
#define endl "\n"
#define ll long long
#define N ((int)(1e5 + 5))
#define MAX ((int)(1e9 + 5))
#define MOD ((int)(7901 + 0))


using namespace std;


/*fast io
ios_base::sync_with_stdio(false);
cin.tie(NULL);
*/



int main()
{
    int t;
    t = 1;
    while(t--){
        int arr[5][5];
        for(int i = 1 ; i<4 ; i++){
            for(int j = 1 ; j<4 ; j++) cin>>arr[i][j];
        }
        b[5] , a[5];
        a[1] = 0;
        for(int i = 1 ; i<4 ; i++) b[i] = arr[1][i] - a[1];
        for(int i = 2 ; i<4 ; i++){
            a[i] = arr[i][1] - b[1];
            for(int j = 2 ; j<4 ; j++){
                if( a[i] != arr[i][j] - b[j] ){
                    cout<<"No\n";
                    return 0;
                }
            }
        }
        cout<<"YES\n";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: 'b' was not declared in this scope
   29 |         b[5] , a[5];
      |         ^
a.cc:29:16: error: 'a' was not declared in this scope
   29 |         b[5] , a[5];
      |                ^
Language: Java

import java.util.*;
public class Main {
	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();
        }
      }
      String ans;
      for(int i=0;i<2;i++){
        if(((c[0][i]-c[0][i+1])==(c[1][i]-c[1][i+1])) 
           && ((c[0][i]-c[0][i+1])==(c[2][i]-c[2][i+1]))){
           ans = "Yes";
        }else{
           ans = "No";
        }
      }
      System.out.println(ans);
    }
}

Compiler output:
Main.java:21: error: variable ans might not have been initialized
      System.out.println(ans);
                         ^
1 error
Language: C++


A = [None, None, None]
B = [0, None, None]
C = [None, None, None]

for i in range(3):
	 A[i] = list(map(int,input().split())) 

flag = True

for i in range(3):
	for j in range(3):
		
		if B[i] == None:
			B[i] = A[i][j] - C[j]
		elif C[j] == None:
			C[j] = A[i][j] - B[i]
		elif A[i][j] != B[i] + C[j]:
			flag = False
		
if flag == True :
	print ("Yes")
else :
	print ("No")

Compiler output:
a.cc:2:1: error: 'A' does not name a type
    2 | A = [None, None, None]
      | ^
Language: C++

int main(){
  int N = 3;
  int c[N][N];
 
  for(int i=0; i<N; i++){
    for(int j=0; j<N; j++){
      cin >> c[i][j];
    }//for
  }//for
  
  //0 a1 -a2 //1 a2- a3 //2 b1 -b2 //3 b2-b3
  int diff[4][N];
  for(int i=0; i<N; i++){
    int diff[0][i] = c[0][i] - c[1][i];
    int diff[1][i] = c[1][i] - c[2][i];
    int diff[2][i] = c[i][0] - c[i][1];
    int diff[3][i] = c[i][1] - c[i][2];
  } 

  
  for(int i=0; i<4; i++){
   diff[i][0] += diff[i][1] - diff[i][2] * 2;
  }

  if( diff[0][0] == diff[0][1] == diff[0][2]  == diff[0][3] == 0) cout << "Yes\n";
  else cout << "No\n";
}//main


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'cin' was not declared in this scope
    7 |       cin >> c[i][j];
      |       ^~~
a.cc:14:30: error: array must be initialized with a brace-enclosed initializer
   14 |     int diff[0][i] = c[0][i] - c[1][i];
      |                      ~~~~~~~~^~~~~~~~~
a.cc:15:9: error: conflicting declaration 'int diff [1][i]'
   15 |     int diff[1][i] = c[1][i] - c[2][i];
      |         ^~~~
a.cc:14:9: note: previous declaration as 'int diff [0][i]'
   14 |     int diff[0][i] = c[0][i] - c[1][i];
      |         ^~~~
a.cc:16:9: error: conflicting declaration 'int diff [2][i]'
   16 |     int diff[2][i] = c[i][0] - c[i][1];
      |         ^~~~
a.cc:14:9: note: previous declaration as 'int diff [0][i]'
   14 |     int diff[0][i] = c[0][i] - c[1][i];
      |         ^~~~
a.cc:17:9: error: conflicting declaration 'int diff [3][i]'
   17 |     int diff[3][i] = c[i][1] - c[i][2];
      |         ^~~~
a.cc:14:9: note: previous declaration as 'int diff [0][i]'
   14 |     int diff[0][i] = c[0][i] - c[1][i];
      |         ^~~~
a.cc:25:67: error: 'cout' was not declared in this scope
   25 |   if( diff[0][0] == diff[0][1] == diff[0][2]  == diff[0][3] == 0) cout << "Yes\n";
      |                                                                   ^~~~
a.cc:26:8: error: 'cout' was not declared in this scope
   26 |   else cout << "No\n";
      |        ^~~~
Language: C++

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


int main(){
  int N = 3;
  int c[N][N];
 
  for(int i=0; i<N; i++){
    for(int j=0; j<N; j++){
      cin >> c[i][j];
    }//for
  }//for
  
  //0 a1 -a2 //1 a2- a3 //2 b1 -b2 //3 b2-b3
  int diff[4][N];
  for(int i=0; i<N; i++){
    int diff[0][i] = c[0][i] - c[1][i];
    int diff[1][i] = c[1][i] - c[2][i];
    int diff[2][i] = c[i][0] - c[i][1];
    int diff[3][i] = c[i][1] - c[i][2];
  } 

  
  for(int i=0; i<4; i++){
   diff[i][0] += diff[i][1] - diff[i][2] * 2;
  }

  if( diff[0][0] == diff[0][1] == diff[0][2]  == diff[0][3] == 0) cout << "Yes\n";
  else cout << "No\n";
}//main


Compiler output:
a.cc: In function 'int main()':
a.cc:21:30: error: array must be initialized with a brace-enclosed initializer
   21 |     int diff[0][i] = c[0][i] - c[1][i];
      |                      ~~~~~~~~^~~~~~~~~
a.cc:22:9: error: conflicting declaration 'int diff [1][i]'
   22 |     int diff[1][i] = c[1][i] - c[2][i];
      |         ^~~~
a.cc:21:9: note: previous declaration as 'int diff [0][i]'
   21 |     int diff[0][i] = c[0][i] - c[1][i];
      |         ^~~~
a.cc:23:9: error: conflicting declaration 'int diff [2][i]'
   23 |     int diff[2][i] = c[i][0] - c[i][1];
      |         ^~~~
a.cc:21:9: note: previous declaration as 'int diff [0][i]'
   21 |     int diff[0][i] = c[0][i] - c[1][i];
      |         ^~~~
a.cc:24:9: error: conflicting declaration 'int diff [3][i]'
   24 |     int diff[3][i] = c[i][1] - c[i][2];
      |         ^~~~
a.cc:21:9: note: previous declaration as 'int diff [0][i]'
   21 |     int diff[0][i] = c[0][i] - c[1][i];
      |         ^~~~
Language: C++

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

int main(){
  vector<int> C(9);
  rep(i,9){
    cin >> C[i];
  }
  
  int a0 = 0;
  int a1,a2,b1,b2,b3;
  
  b1 = c[0];
  b2 = c[1];
  b3 = c[2];
  
  a2 = c[4]-b2;
  a3 = c[8]-b3;
  
  if(a2+b1==c[3] && a2+b3==c[5] && a3+b1==c[6] && a3+b2==c[8]) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'c' was not declared in this scope
   14 |   b1 = c[0];
      |        ^
a.cc:19:3: error: 'a3' was not declared in this scope; did you mean 'b3'?
   19 |   a3 = c[8]-b3;
      |   ^~
      |   b3
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'j' was not declared in this scope
   13 |     y[i]=c[1][j]-x[1];
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'j' was not declared in this scope
   13 |     y[i]=c[i][j]-x[1];
      |               ^
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(a+e==b+d&&a+f==c+d&&a+h==b+g&&a+i==c+g) cout << Yes << endl;
  else cout << No << endl;;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:54: error: 'Yes' was not declared in this scope
    7 |   if(a+e==b+d&&a+f==c+d&&a+h==b+g&&a+i==c+g) cout << Yes << endl;
      |                                                      ^~~
a.cc:8:16: error: 'No' was not declared in this scope
    8 |   else cout << No << endl;;
      |                ^~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)
#define be(v) (v).begin(), (v).end()
#define dcout cout << fixed << setprecision(20) 
ll INF = 1LL << 60;
ll mod = 1e9 + 7;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'a' was not declared in this scope
   12 |         a[3][3];
      |         ^
Language: C++

#include<algorithm>//sort(all(変数),greater<型名>())で降順に、*max_element(all(変数))で最大値を獲得
#include<bits/stdc++.h>
#include<cmath>//切り上げceil(値)
#include<deque>
#include<iomanip>//setprecision(数字)
#include<iostream>
#include<list>
#include<map>
#include<numeric>
// xとyのgcdは__gcd(x,y),xとyのlcmは(x*y)/__gcd、accumulate(all(変数),0)で要素の全加算
#include<queue>//priority_queue<型名> 変数
#include<set>
#include<stack>
#include<string>//変数.substr(どこから,いくつ)
#include<vector>
#define rep(i,n)  for(ll i=0; i<n; i++)
#define rrep(i,n) for(ll i=n-1; 0<=i; i--)
#define vll vector<ll>
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define INF 1e9
using ll = long long;
using namespace std;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main(){
  vector<vi> c(3,vi(3));
  rep(i,3) rep(j,3) cin >> c[i][j];
  rep(i,3){
    int num = *min_element(all(c[i]);
    rep(j,3){
      c[i][j] -= num;
    }
  }
  rep(i,3){
    rep(j,3){
      if(c[i][j] < 0){
        cout << "No\n";
        return 0;
      }
    }
  }
  cout << "Yes";
  cout << "\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:37: error: expected ')' before ';' token
   31 |     int num = *min_element(all(c[i]);
      |                           ~         ^
Language: C++

#include<algorithm>//sort(all(変数),greater<型名>())で降順に、*max_element(all(変数))で最大値を獲得
#include<bits/stdc++.h>
#include<cmath>//切り上げceil(値)
#include<deque>
#include<iomanip>//setprecision(数字)
#include<iostream>
#include<list>
#include<map>
#include<numeric>
// xとyのgcdは__gcd(x,y),xとyのlcmは(x*y)/__gcd、accumulate(all(変数),0)で要素の全加算
#include<queue>//priority_queue<型名> 変数
#include<set>
#include<stack>
#include<string>//変数.substr(どこから,いくつ)
#include<vector>
#define rep(i,n)  for(ll i=0; i<n; i++)
#define rrep(i,n) for(ll i=n-1; 0<=i; i--)
#define vll vector<ll>
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define INF 1e9
using ll = long long;
using namespace std;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main(){
  vector<vi>> c(3,vi(3));
  rep(i,3) rep(j,3) cin >> c[i][j];
  rep(i,3){
    int num = *min_element(all(c[i]);
    rep(j,3){
      c[i][j] -= num;
    }
  }
  rep(i,3){
    rep(j,3){
      if(c[i][j] < 0){
        cout << "No\n";
        return 0;
      }
    }
  }
  cout << "Yes";
  cout << "\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:12: error: expected unqualified-id before '>' token
   28 |   vector<vi>> c(3,vi(3));
      |            ^~
a.cc:29:28: error: 'c' was not declared in this scope
   29 |   rep(i,3) rep(j,3) cin >> c[i][j];
      |                            ^
a.cc:31:32: error: 'c' was not declared in this scope
   31 |     int num = *min_element(all(c[i]);
      |                                ^
a.cc:20:17: note: in definition of macro 'all'
   20 | #define all(x) (x).begin(),(x).end()
      |                 ^
a.cc:38:10: error: 'c' was not declared in this scope
   38 |       if(c[i][j] < 0){
      |          ^
Language: C++

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

int main(){
	vector<vector<int>> a(3,vector<int>(3));
	vector<int> x(3);
	vector<int> y(3);
	rep(i, 3){
		rep(j, 3) cin >> a.at(i).at(j);
	}

	rep(j, 3) y.at(i) = a.at(0).at(i) - 0;
	x.at(0) = 0;
	for(int i = 1; i < 3; i++) x.at(i) = a.at(i).at(0)-a.at(i).at(0);	

	bool res = true;
	rep(i, 3){
		rep(j, 3){
			if(a.at(i).at(j) != x.at(i)+y.at(j));
				res = false;
		}
	}
	if(res) cout << "Yes" << endl;
	else cout << "N0" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'i' was not declared in this scope
   13 |         rep(j, 3) y.at(i) = a.at(0).at(i) - 0;
      |                        ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll=long long;
using P=pair<int,int>;
int main() {
    int c[3][3];
    rep(i,3){
        rep(j,3){
            cin>>c[i][j];
        }
    }
    bool res=false;
    for(int i=0;i<=100;i++){
        int p=c[0][0]-i,q=c[0][1]-i,r=c[0][2]-i;
        for(int j=0;j<=100;j++){
            for(int k=0;k<=100;k++){
                if(j+p==c[1][0]&&j+q==c[1][1]&&j+r==c[1][2]){
                    if(k+p==c[2][0]&&k+q==c[2][1]&&k+r==c[2][2]){
                        res=true;
                    }
                }

            }
        }
    }
    if(res) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:28:27: error: expected '}' at end of input
   28 |     else cout<<"No"<<endl;
      |                           ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
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[i][j];
    }
  }
  int b21=C[0][1]-C[0][0];
  int b32=C[0][2]-C[0][1];
  int b31=C[0][2]-C[0][0];
  bool flag=true;
  if(b21!=C[1][1]-C[1][0])||b21!=C[2][1]-C[2][0])){
    flag=false;
  }
  if(b32!=C[1][2]-C[1][1])||b32!=C[2][2]-C[2][1])){
    flag=false;
  }
  if(b31!=C[1][2]-C[1][0])||b32!=C[2][2]-C[2][0])){
    flag=false;
  }
  if(flag){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: expected primary-expression before '||' token
   14 |   if(b21!=C[1][1]-C[1][0])||b21!=C[2][1]-C[2][0])){
      |                           ^~
a.cc:17:27: error: expected primary-expression before '||' token
   17 |   if(b32!=C[1][2]-C[1][1])||b32!=C[2][2]-C[2][1])){
      |                           ^~
a.cc:20:27: error: expected primary-expression before '||' token
   20 |   if(b31!=C[1][2]-C[1][0])||b32!=C[2][2]-C[2][0])){
      |                           ^~
Language: C++

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

int main() {
	c1,c2,c3,c4,c5,c6,c7,c8,c9;
	cin >> c1 >> c2 >> c3 >> c4 >> c5 >> c6 >> c7 >> c8 >> c9;
	string k = "No";
	if(c1 == c4 + c3 - c6 &&
	   c2 == c5 + c3 - c6 &&
	   c8 == c5 + c7 - c4 &&
	   c9 == c6 + c7 - c4)
	{
		k = "Yes";
	}
	cout << k << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'c1' was not declared in this scope; did you mean 'y1'?
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |         ^~
      |         y1
a.cc:5:12: error: 'c2' was not declared in this scope
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |            ^~
a.cc:5:15: error: 'c3' was not declared in this scope
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |               ^~
a.cc:5:18: error: 'c4' was not declared in this scope
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |                  ^~
a.cc:5:21: error: 'c5' was not declared in this scope
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |                     ^~
a.cc:5:24: error: 'c6' was not declared in this scope
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |                        ^~
a.cc:5:27: error: 'c7' was not declared in this scope
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |                           ^~
a.cc:5:30: error: 'c8' was not declared in this scope
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |                              ^~
a.cc:5:33: error: 'c9' was not declared in this scope
    5 |         c1,c2,c3,c4,c5,c6,c7,c8,c9;
      |                                 ^~
Language: C

#include <bits/stdc++.h>
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
#define ALL(x) (x).begin(),(x).end() 
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
#define INF 1000000000000
using namespace std;
typedef long long ll;

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

    REP(i, 3){
        REP(j, 3){
            cin >> C[i][j];
        }
    }

    a[0] = 0;
    a[1] = C[1][0] - C[0][0];
    a[2] = C[2][0] - C[0][0];
    b[0] = C[0][0];
    b[1] = C[0][1];
    b[2] = C[0][2];

    REP(i, 3){
        REP(j, 3)
        if (a[i] + b[j] != C[i][j]){
            flag = false;
        }
    }

    if (flag) {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
    
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: 'j' was not declared in this scope
    8 |   for (int i = 0;i < 3;i++) y[j] = a[0][j] - x[0];
      |                               ^
Language: C

#include <stdio.h>
int main(){
  int c[3][3];
  int sum = 0;
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++) {
      scanf("%d", &c[i][j]);
      sum += c[i][j];
    }
  }
  sun /= 3;
  int a[3], b[3];
  int suma = 0, sumb = 0;
  for(int i = 0; i < 3; i++){
    int sa = 0, sb = 0;
    for(int j = 0; j < 3; j++){
      sa += c[i][j];
      sb += c[j][i];
    }
    a[i] = sum - sa;
    b[i] = sum - sb;
    suma += a[i];
    sumb += b[i];
  }
  suma /= 2;
  sumb /= 2;
  int newa[3], newb[3];
  for(int i = 0; i < 3; i++){
    newa[i] = suma - a[i];
    newb[i] = sumb - b[i];
  }
  int flag = 0;
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      if(c[i][j] != newa[i] + newb[j]) flag = 1;
    }
  }
  if(flag) printf("No\n");
  else printf("Yes\n");
}
  

Compiler output:
main.c: In function 'main':
main.c:11:3: error: 'sun' undeclared (first use in this function); did you mean 'sum'?
   11 |   sun /= 3;
      |   ^~~
      |   sum
main.c:11:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<tuple>
#include<map>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;

bool check (string s){
  int n = s.length();
  if (n%2==1){
    return false;
  }
  else {
    return (s.substr(0,n/2-1)==s.substr(n/2));
  }
}

int main(){
  vvi c(3,vi(3));
  for (int i=0; i<3; i++){
    for (int j=0; j<3; j++){
      cin >> c.at(i).at(j);
    }
  }

  vi a(3), b(3);
  a.at(0) = 0;
  for (int i-0; i<3; i++){
    b.at(i) = c.at(0).at(i) - a.at(0);
  }
  for (int i-0; i<3; i++){
    a.at(i) = c.at(i).at(0) - b.at(i);
  }

  for (int i=0; i<3; i++){
    for (int j=0; j<3; j++){
      if (a.at(i)+b.at(j) != c.at(i).at(j)){
        cout << "No" << endl;
        return 0;
      }
    }
  }
  cout << "Yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:13: error: expected ';' before '-' token
   31 |   for (int i-0; i<3; i++){
      |             ^
      |             ;
a.cc:31:20: error: expected ')' before ';' token
   31 |   for (int i-0; i<3; i++){
      |       ~            ^
      |                    )
a.cc:31:22: error: 'i' was not declared in this scope
   31 |   for (int i-0; i<3; i++){
      |                      ^
a.cc:34:13: error: expected ';' before '-' token
   34 |   for (int i-0; i<3; i++){
      |             ^
      |             ;
a.cc:34:20: error: expected ')' before ';' token
   34 |   for (int i-0; i<3; i++){
      |       ~            ^
      |                    )
Language: C++

#include <iostream>
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 a[3],b[3];
  int x;
  for(int x=0;x<10;x++){
    a[0]=0;
    b[0]=c[0][0]-x;
    a[1]=c[1][0]-b[0];
    b[1]=c[0][1]-a[0];
    if(a[2]==c[2][1]-b[1] and b[2]==c[1][2]-a[1]){
      cout<<"Yes"<<endl;
  }
  else{
   cout<<"No"<<endl;
    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'c' was not declared in this scope
    7 |       cin>>c[i][j];
      |            ^
a.cc:14:8: error: 'c' was not declared in this scope
   14 |   b[0]=c[0][0];
      |        ^
Language: C++

#include <iostream>
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 a[3],b[3];
  int count=0;
  for(int n=0;n<10;i++){
    for(int m=0;m<10;j++){
      for(int i=0;i<3;n++){
        for(int j=0;j<3;m++){
          a[i]=n,b[j]=m;
          if(c[i][j]==a[i]+b[j]){
             count++;
          }
        }
      }
    }
  }
  
  if(count>=9){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  
      
}   


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

#include <iostream>
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 a[3],b[3];
  int count=0;
  for(int n=0;n<10;i++){
    for(int m=0;j<10;j++){
      for(int i=0;n<3;n++){
        for(int j=0;m<3;m++){
          a[i]=n,b[j]=m;
          if(c[i][j]==a[i]+b[j]){
             count++;
          }
        }
      }
    }
  }
  
  if(count>=9){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  
      
}   


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

#include <iostream>
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 a[3],b[3];
  for(int i=0;i<3;i++){
    for(int j=0;j=3;j++){
      for(int n=0;n<10;n++){
        for(int m=0;m<10;m++){
          a[i]=n,b[j]=m;
          if(c[i][j]==a[i]+b[j]){
          count++;
         }
        }
      }
    }
  }
  
  if(count==9){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  
      
}   


Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'count' was not declared in this scope
   19 |           count++;
      |           ^~~~~
a.cc:26:6: error: 'count' was not declared in this scope
   26 |   if(count==9){
      |      ^~~~~
Language: C++

#include <iostream>
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];
    }
  }
  
  for(int i=0;i<3;i++){
    for(int j=0;j=3;j++){
      for(int n=0;n<10;n++){
        for(int m=0;m<10;m++){
          a[i]=n,b[j]=m;
          if(c[i][j]==a[i]+b[j]){
          count++;
         }
        }
      }
    }
  }
  
  if(count==9){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  
      
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'a' was not declared in this scope
   17 |           a[i]=n,b[j]=m;
      |           ^
a.cc:17:18: error: 'b' was not declared in this scope
   17 |           a[i]=n,b[j]=m;
      |                  ^
a.cc:19:11: error: 'count' was not declared in this scope
   19 |           count++;
      |           ^~~~~
a.cc:26:6: error: 'count' was not declared in this scope
   26 |   if(count==9){
      |      ^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ',' or ';' before '{' token
    7 |   int a[3][3] = {}{};
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
  vector <vector<int>> vec(3,vector<int>(3));
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin >> vec[i][j];
    }
  }
  int b1, b2, b3, a2, a3
  for(int i=0;i<1000;i++){
    b1=vec[0][0]-i;
    b2=vec[0][1]-i;
    b3=vec[0][2]-i;
    a2=vec[1][1]-b2;
    a3=vec[2][2]-b3;
    if(a2+b1!=vec[0][1]  || a3+b1!=vec[0][2] || a3+b2!=vec[1][2] || a2+b3!=vec[2][1]){
      cout << "No" << endl;
      break;
      return 0;
    }
  }
  cout <<  "Yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected initializer before 'for'
   12 |   for(int i=0;i<1000;i++){
      |   ^~~
a.cc:12:15: error: 'i' was not declared in this scope
   12 |   for(int i=0;i<1000;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;j<3;j++){
            cin >> c[i][j];
        }
    }
    int x=a[0][0];
    int a[3],b[3];
    a[0]=0;
    for(int i=0;i<3;i++){
        b[i]=c[0][i];
    }
    for(int i=1;i<3;i++){
        a[i]=c[i][0]-b[0];
    }
    bool ans=true;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            if(c[i][j]!=a[i]+b[j]) ans=false;
        }
    }
    if(ans) cout << "Yes" << endl;
    else cout << "No" << endl;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for (int i = 1; i < (int)(n); i++)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define vout(x) rep(i,x.size()) cout << x[i] << " "
template<class T> bool chmin(T &a, T b) {if(a>b) {a=b;return 1;}return 0;}
template<class T> bool chmax(T &a, T b) {if(a<b) {a=b;return 1;}return 0;}
using namespace std;
using vint = vector<int>;
using vvint = vector<vector<int>>;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
using P = pair<int,int>;
const int inf = 1e9;
const ll inf_l = 1e18;
const int MAX = 100005;

int main() {
    int sum = 0;
    rep(i,9) {
        int x; cin >> x;
        sum += x
    }
    if (sum%3 == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: expected ';' before '}' token
   24 |         sum += x
      |                 ^
      |                 ;
   25 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for (int i = 1; i < (int)(n); i++)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define vout(x) rep(i,x.size()) cout << x[i] << " "
template<class T> bool chmin(T &a, T b) {if(a>b) {a=b;return 1;}return 0;}
template<class T> bool chmax(T &a, T b) {if(a<b) {a=b;return 1;}return 0;}
using namespace std;
using vint = vector<int>;
using vvint = vector<vector<int>>;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
using P = pair<int,int>;
const int inf = 1e9;
const ll inf_l = 1e18;
const int MAX = 100005;

int main() {
    rep(i,9) {
        int x; cin >> x;
        sum += x
    }
    if (sum%3 == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: 'sum' was not declared in this scope
   23 |         sum += x
      |         ^~~
a.cc:25:9: error: 'sum' was not declared in this scope
   25 |     if (sum%3 == 0) cout << "Yes" << endl;
      |         ^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for (int i = 1; i < (int)(n); i++)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define vout(x) rep(i,x.size()) cout << x[i] << " "
template<class T> bool chmin(T &a, T b) {if(a>b) {a=b;return 1;}return 0;}
template<class T> bool chmax(T &a, T b) {if(a<b) {a=b;return 1;}return 0;}
using namespace std;
using vint = vector<int>;
using vvint = vector<vector<int>>;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
using P = pair<int,int>;
const int inf = 1e9;
const ll inf_l = 1e18;
const int MAX = 100005;

int main() {
    rep(i,9) {
        int x; cin >> x;
        sum += x
    }
    if (x%3 == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: 'sum' was not declared in this scope
   23 |         sum += x
      |         ^~~
a.cc:25:9: error: 'x' was not declared in this scope
   25 |     if (x%3 == 0) cout << "Yes" << endl;
      |         ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: 'x' was not declared in this scope
   22 |             if (x[i]+y[j] != c[i][j])
      |                 ^
a.cc:22:22: error: 'y' was not declared in this scope
   22 |             if (x[i]+y[j] != c[i][j])
      |                      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:37: error: expected primary-expression before numeric constant
    5 |   vector<vector<int>>p(3,vector<int>3);
      |                                     ^
Language: C++

program name
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: c(3,3),i,j
    integer(int32):: a12,a23,a13,b12,b23,b13

    do i=1,3
        read*, c(:,i)
    end do

    a12 = c(1,1) - c(1,2)
    a23 = c(1,2) - c(1,3)
    a13 = c(1,1) - c(1,3)
    
    do i=2,3
        if(c(i,1)-c(i,2) /= a12 .or. c(i,2)-c(i,3) /= a23 .or. c(i,1)-c(i,3) /= a13) then
            print*, 'No'
            stop 
        end if
    end do

    b12 = c(1,1) - c(2,1)
    b23 = c(2,1) - c(3,1)
    b13 = c(1,1) - c(3,1)
    
    do i=2,3
        if(c(1,i)-c(2,i) /= b12 .or. c(2,i)-c(3,i) /= b23 .or. c(1,i)-c(3,i) /= b13) then
            print*, 'No'
            stop 
        end if
    end do

    print*, 'Yes'
    
end program name

Compiler output:
a.cc:17:21: warning: multi-character character constant [-Wmultichar]
   17 |             print*, 'No'
      |                     ^~~~
a.cc:28:21: warning: multi-character character constant [-Wmultichar]
   28 |             print*, 'No'
      |                     ^~~~
a.cc:33:13: warning: multi-character character constant [-Wmultichar]
   33 |     print*, 'Yes'
      |             ^~~~~
a.cc:1:1: error: 'program' does not name a type
    1 | program name
      | ^~~~~~~
Language: C++

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

int main()
{
  vector< vector<int> > c(3,vector<int>(3));
  vector<int> a(3), b(3);
  int i, j, k;
  int check;
  string ans;
  for(i=0; i<3; i++)
  {
    for(j=0; j<3; j++)
    {
      cin >> c[i][j];
    }
  }
  ans = "No";
  count = 0;
  for(i=0; i<=c[0][0]; i++)//a1をiと仮定
  {
    check = 0;
    a[0] = i;
    for(j=0; j<3; j++)
    {
      b[j] = c[0][j] -a[0];
      a[j] = c[j][0] -b[0];
    }
    
    for(j=0; j<3; j++)//あってるかチェック
    {
      for(k=0; k<3; k++)
      {
        if(c[j][k] == a[k] +b[j]) check++; 
      }
    }
    if(check == 9)
    {
      ans = "Yes";
      break;
    }
  }
  cout << ans <<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: overloaded function with no contextual type information
   19 |   count = 0;
      |           ^
Language: C++

C=[list(map(int,input().split())) for i in range(3)]
x1=C[0][1]-C[0][0];x2=C[0][2]-C[0][1];
y1=C[1][0]-C[0][0];y2=C[2][0]-C[1][0];
C2=[[C[0][0],C[0][0]+x1,C[0][0]+x1+x2],
    [C[0][0]+y1,C[0][0]+x1+y1,C[0][0]+x1+x2+y1],
    [C[0][0]+y1+y2,C[0][0]+x1+y1+y2,C[0][0]+x1+x2+y1+y2]]
print("Yes"if C==C2 else"No")

Compiler output:
a.cc:1:1: error: 'C' does not name a type
    1 | C=[list(map(int,input().split())) for i in range(3)]
      | ^
a.cc:2:20: error: 'x2' does not name a type
    2 | x1=C[0][1]-C[0][0];x2=C[0][2]-C[0][1];
      |                    ^~
a.cc:3:1: error: 'y1' does not name a type
    3 | y1=C[1][0]-C[0][0];y2=C[2][0]-C[1][0];
      | ^~
a.cc:3:20: error: 'y2' does not name a type
    3 | y1=C[1][0]-C[0][0];y2=C[2][0]-C[1][0];
      |                    ^~
a.cc:4:1: error: 'C2' does not name a type
    4 | C2=[[C[0][0],C[0][0]+x1,C[0][0]+x1+x2],
      | ^~
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[i][j];
    }
  }
  vector<int> a(3), b(3);
  int a[0] = 0;
  for (int i = 0; i < 3; i++){
    b[i] = c[0][i] - a[0];
  }

  for(int i = 1; i<3; i++){
    a[i] = c[i][0] - b[0];
  }
  bool ans = false;

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

  if(ans) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: conflicting declaration 'int a [0]'
   12 |   int a[0] = 0;
      |       ^
a.cc:11:15: note: previous declaration as 'std::vector<int> a'
   11 |   vector<int> a(3), b(3);
      |               ^
Language: C++

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

int main() {
  vector<vector<int>> G(3, vector<int>(3));
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> G[i][j];
    }
  }
  bool judge = false;
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      if (G[i][i] + G[j][j] == G[i][j] + G[j][i]) {
        judge = true;
      }
      else {
      judge = false;
      break;
      }
  }
  if (judge) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  vector<vector<int>> G(3, vector<int>(3));
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> G[i][j];
    }
  }
  bool judge = false;
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      if (G[i][i] + G[j][j] == G[i][j] + G[j][i]) {
        judge = true;
      }
      else {
      judge = false;
      break;
    }
  }
  if (judge) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ',' or ';' before '{' token
    7 |   int a[3][3] = {}{};
      |                   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: too many initializers for 'int [0]'
    5 |   int x[0] = {0};
      |                ^
a.cc:6:16: error: too many initializers for 'int [0]'
    6 |   int y[0] = {0};
      |                ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: array must be initialized with a brace-enclosed initializer
    5 |   int x[0] = 0;
      |              ^
a.cc:6:14: error: array must be initialized with a brace-enclosed initializer
    6 |   int y[0] = 0;
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: array must be initialized with a brace-enclosed initializer
    5 |   int x[3] = 0;
      |              ^
a.cc:6:14: error: array must be initialized with a brace-enclosed initializer
    6 |   int y[3] = 0;
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: expected unqualified-id before '==' token
   19 |     if (bool == true) {
      |              ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: expected '(' before 'bool'
   19 |     if bool == true {
      |        ^~~~
      |        (
a.cc:22:3: error: 'else' without a previous 'if'
   22 |   else cout << "No" << endl;
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected initializer before '==' token
   10 |   bool good == true;
      |             ^~
a.cc:15:19: error: expected initializer before '==' token
   15 |         bool good == false;
      |                   ^~
a.cc:19:19: error: expected initializer before '==' token
   19 |     if (bool good == true) cout << "Yes" << endl;
      |                   ^~
a.cc:19:18: error: expected ')' before '==' token
   19 |     if (bool good == true) cout << "Yes" << endl;
      |        ~         ^~~
      |                  )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: array must be initialized with a brace-enclosed initializer
    5 |   int x[0] = 0;
      |              ^
a.cc:6:14: error: array must be initialized with a brace-enclosed initializer
    6 |   int y[0] = 0;
      |              ^
a.cc:7:17: error: array must be initialized with a brace-enclosed initializer
    7 |   int a[0][0] = 0;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: array must be initialized with a brace-enclosed initializer
    5 |   int x[0] = 0;
      |              ^
a.cc:6:14: error: array must be initialized with a brace-enclosed initializer
    6 |   int y[0] = 0;
      |              ^
a.cc:7:17: error: array must be initialized with a brace-enclosed initializer
    7 |   int a[0][0] = 0;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: declaration of 'a' as multidimensional array must have bounds for all dimensions except the first
    7 |   int a[][] = {};
      |       ^
a.cc:8:36: error: 'a' was not declared in this scope
    8 |   for (int i = 0;i < 3;i++) y[i] = a[0][i] - x[0];
      |                                    ^
a.cc:9:36: error: 'a' was not declared in this scope
    9 |   for (int i = 0;i < 3;i++) x[i] = a[0][i] - y[0];
      |                                    ^
a.cc:14:23: error: 'a' was not declared in this scope
   14 |       if(x[i]+y[i] != a[i][j]){
      |                       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: array must be initialized with a brace-enclosed initializer
    5 |   int x[0] = 0;
      |              ^
a.cc:6:14: error: array must be initialized with a brace-enclosed initializer
    6 |   int y[0] = 0;
      |              ^
a.cc:7:17: error: array must be initialized with a brace-enclosed initializer
    7 |   int a[0][0] = 0;
      |                 ^
Language: C++

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

int main(){
  int x[0] = 0;
  int y[0] = 0;
  int a[0][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[0][i] - y[0];
  bool good = true;
  
  for (int i=0;i<3;i++){
    for (int j=0;j<3;i++){
      if(x[i]+y[i] != a[i][j]){
        good = false+
      }
    }
  }
  cout << good << endl;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: array must be initialized with a brace-enclosed initializer
    5 |   int x[0] = 0;
      |              ^
a.cc:6:14: error: array must be initialized with a brace-enclosed initializer
    6 |   int y[0] = 0;
      |              ^
a.cc:7:17: error: array must be initialized with a brace-enclosed initializer
    7 |   int a[0][0] = 0;
      |                 ^
a.cc:16:7: error: expected primary-expression before '}' token
   16 |       }
      |       ^