criyle/codenet-compile-errors huggingface dataset:
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];
		}
	}
	bool ans = true;
	int a,b,d;
	a = c[0][1]-c[0][0];
	b = c[1][1]-c[1][0];
	d = c[2][1]-c[2][0];
	if (!(a==b&&b==d)) ans = false;
	a = c[0][2]-c[0][1];
	b = c[1][2]-c[1][1];
	d = c[2][2]-c[2][1];
	if (!(a==b&&b==d)) ans = false;
	a = c[1][0]-c[0][0];
	b = c[1][1]-c[0][1];
	d = c[1][2]-c[0][2];
	if (!(a==b&&b==d)) ans = false;
	a = c[2][0]-c[1][0];
	b = c[2][1]-c[1][1];
	d = c[2][2]-c[1][2];
	if (!(a==b&&b==d)) ans = false;
	if (ans) {cout << yes << endl;}
	else {cout << no << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:27: error: 'yes' was not declared in this scope
   29 |         if (ans) {cout << yes << endl;}
      |                           ^~~
a.cc:30:23: error: 'no' was not declared in this scope
   30 |         else {cout << no << endl;}
      |                       ^~
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];
		}
	}
	bool ans = true;
	int a,b,d;
	a = c[0][1]-c[0][0];
	b = c[1][1]-c[1][0];
	d = c[2][1]-c[2][0];
	if (!(a==b&&b==c)) ans = false;
	a = c[0][2]-c[0][1];
	b = c[1][2]-c[1][1];
	d = c[2][2]-c[2][1];
	if (!(a==b&&b==c)) ans = false;
	a = c[1][0]-c[0][0];
	b = c[1][1]-c[0][1];
	d = c[1][2]-c[0][2];
	if (!(a==b&&b==c)) ans = false;
	a = c[2][0]-c[1][0];
	b = c[2][1]-c[1][1];
	d = c[2][2]-c[1][2];
	if (!(a==b&&b==c)) ans = false;
	if (ans) {cout << yes << endl;}
	else {cout << no << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if (!(a==b&&b==c)) ans = false;
      |                     ~^~~
a.cc:20:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |         if (!(a==b&&b==c)) ans = false;
      |                     ~^~~
a.cc:24:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         if (!(a==b&&b==c)) ans = false;
      |                     ~^~~
a.cc:28:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |         if (!(a==b&&b==c)) ans = false;
      |                     ~^~~
a.cc:29:27: error: 'yes' was not declared in this scope
   29 |         if (ans) {cout << yes << endl;}
      |                           ^~~
a.cc:30:23: error: 'no' was not declared in this scope
   30 |         else {cout << no << endl;}
      |                       ^~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int c[4][4] = {0};
    bool ansFlag = false;

    int a1, a2, a3, b1, b2, b3;

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

    for (int i = 0; i <= 100; i++) {
        // a1 = iで固定した場合のb1〜b3の関係は以下の通り
        a1 = i;
        b1 = c[1][1] - i;
        a2 = c[2][1] - c[1][1] + i;
        b2 = c[1][2] - i;
        a3 = c[3][1] - c[1][1] + i;
        b3 = c[1][3] - i;

        if (a1 + b1 == c[1][1]) && (a1 + b2 == c[1][2]) && (a1 + b3 = c[1][3]) && (a2 + b1 == c[2][1]) && (a2 + b2 == c[2][2]) && (a2 + b3 == c[2][3]) && (a3 + b1 == c[3][1]) && (a3 + b2 == c[3][2]) && (a3 + b3 == c[3][3]) {
            ansFlag = true;
            break;
        }
    }

    if (ansFlag) cout << "Yes" << endl;
    else         cout << "No" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:36: error: expected identifier before '(' token
   27 |         if (a1 + b1 == c[1][1]) && (a1 + b2 == c[1][2]) && (a1 + b3 = c[1][3]) && (a2 + b1 == c[2][1]) && (a2 + b2 == c[2][2]) && (a2 + b3 == c[2][3]) && (a3 + b1 == c[3][1]) && (a3 + b2 == c[3][2]) && (a3 + b3 == c[3][3]) {
      |                                    ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int main(){
    cin.tie(0);
   	ios::sync_with_stdio(false);
    int c[3][3];
    for (int i = 0; i < 3; ++i) {
    for (int j = 0; j < 3; ++j) {
      std::cin >> c[i][j];
    }
  }
    int a[3],b[3];
    for(a[0] = 0;a[0] <= 100;a[0]++){
      for(a[1] = 0;a[1] <= 100;a[1]++){
        for(a[2] = 0;a[2] <= 100;a[2]++){
          b[0] = c[0][0] - a[0];
          b[1] = c[1][1] - a[1];
          b[2] = c[2][2] - a[2];
          if(c[0][1] == a[0] + b[1] && 
            c[0][2] == a[0] + b[2] &&
            c[1][0] == a[1] + b[0] &&
            c[1][2] == a[1] + b[2] &&
            c[2][0] == a[2] + b[0] &&
            c[2][1] == a[2] + b[1]) cout <<"Yes"<<endl;
        }
      }
    }
  cout << "No" << endl;
}
}


Compiler output:
a.cc:47:1: error: expected declaration before '}' token
   47 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int main(){
    cin.tie(0);
   	ios::sync_with_stdio(false);
    int c[3][3];
    for (int i = 0; i < 3; ++i) {
    for (int j = 0; j < 3; ++j) {
      std::cin >> c[i][j];
    }
  }
    int a[3],b[3];
    for(a[0] = 0;a[0] <= 100;a[0]++){
      for(a[1] = 0;a[1] <= 100;a[1]++){
        for(a[2] = 0;a[2] <= 100;a[2]++){
          b[0] = c[0][0] - a[0];
          b[1] = c[1][1] - a[1];
          b[2] = c[2][2] - a[2];
          if(c[0][1] == a1 + b2 && 
            c[0][2] == a1 + b3 &&
            c[1][0] == a2 + b1 &&
            c[1][2] == a2 + b3 &&
            c[2][0] == a3 + b1 &&
            c[2][1] == a3 + b2) cout <<"Yes"<<endl;
        }
      }
    }
  cout << "No" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:25: error: 'a1' was not declared in this scope; did you mean 'a'?
   36 |           if(c[0][1] == a1 + b2 &&
      |                         ^~
      |                         a
a.cc:36:30: error: 'b2' was not declared in this scope; did you mean 'b'?
   36 |           if(c[0][1] == a1 + b2 &&
      |                              ^~
      |                              b
a.cc:37:29: error: 'b3' was not declared in this scope; did you mean 'b'?
   37 |             c[0][2] == a1 + b3 &&
      |                             ^~
      |                             b
a.cc:38:24: error: 'a2' was not declared in this scope; did you mean 'a'?
   38 |             c[1][0] == a2 + b1 &&
      |                        ^~
      |                        a
a.cc:38:29: error: 'b1' was not declared in this scope; did you mean 'b'?
   38 |             c[1][0] == a2 + b1 &&
      |                             ^~
      |                             b
a.cc:40:24: error: 'a3' was not declared in this scope; did you mean 'a'?
   40 |             c[2][0] == a3 + b1 &&
      |                        ^~
      |                        a
a.cc: At global scope:
a.cc:47:1: error: expected declaration before '}' token
   47 | }
      | ^
Language: C++

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

int main()
{
  int c[4][4];
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      if (i < 3 && j < 3)
        cin >> c[i][j];
      if (i == 3 && j < 3)
        c[i][j] = c[0]c[j]; 
      if (i < 3 && j == 3)
        c[i][j] = c[i][0]; 
    }
  }
  bool flag = true;
  for (int i = 0; i < 3; i++) {
    int dsum1 = 0;
    int dsum2 = 0;
    for (int j = 0; i < 3; j++) {
      dsum1 += c[i][j];
      dsum2 += c[j][i];
    }
    if (!dsum1 || !dsum2) {
      flag = false;
      break;
    }
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   12 |         c[i][j] = c[0]c[j];
      |                   ~~~^
      |                      |
      |                      int*
a.cc:12:23: error: expected ';' before 'c'
   12 |         c[i][j] = c[0]c[j];
      |                       ^
      |                       ;
Language: C++

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

int main()
{
	int c[9];
	bool flag = true;
	for (int i = 0; i < 9; ++i) cin >> c[i];
	for (int i = 0; i < 2; ++i)
	{
		for (int j = 0; j < 2; ++j)
		{
			if (!(c[i]+c[i+3*j+1] == c[i+1]+c[i+3*j]))
			{
				flag = false;
			}
		}
	}
	if(flag){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:8:37: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         for (int i = 0; i < 9; ++i) cin >> c[i];
      |                                     ^~~
      |                                     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:20:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |                 cout << "Yes" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |                 cout << "Yes" << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:22:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |                 cout << "No" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |                 cout << "No" << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

int main()
{
	int c[9];
	bool flag = true;
	for (int i = 0; i < 9; ++i) cin >> c[i];
	for (int i = 0; i < 2; ++i)
	{
		for (int j = 0; j < 2; ++j)
		{
			if (!(c[i]+c[i+3*j+1] == c[i+1]+c[i+3*j]))
			{
				flag = false;
			}
		}
	}
	if(flag){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         for (int i = 0; i < 9; ++i) cin >> c[i];
      |                                     ^~~
      |                                     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:19:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |                 cout << "Yes" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |                 cout << "Yes" << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:21:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |                 cout << "No" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:21:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |                 cout << "No" << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

using System;
using System.Linq;

namespace atcoder_Begginer_Contest88_C
{
    class Program
    {
        static void Main(string[] args)
        {
            var c = new int[3][];
            for (int i = 0; i < 3; i++)
            {
                c[i] = Console.ReadLine().Split().Select(int.Parse).ToArray();
                c[i] = c[i].Select(x => x - c[i].Min()).ToArray();
            }
            Console.WriteLine((c[0].SequenceEqual(c[1]) && c[0].SequenceEqual(c[2])) ? "Yes" : "No");
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:18:6: error: expected ';' after class definition
   18 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void atcoder_Begginer_Contest88_C::Program::Main(int*)':
a.cc:10:13: error: 'var' was not declared in this scope
   10 |             var c = new int[3][];
      |             ^~~
a.cc:13:17: error: 'c' was not declared in this scope
   13 |                 c[i] = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                 ^
a.cc:13:24: error: 'Console' was not declared in this scope
   13 |                 c[i] = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                        ^~~~~~~
a.cc:13:58: error: expected primary-expression before 'int'
   13 |                 c[i] = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                                                          ^~~
a.cc:14:36: error: 'x' was not declared in this scope
   14 |                 c[i] = c[i].Select(x => x - c[i].Min()).ToArray();
      |                                    ^
a.cc:14:39: error: expected primary-expression before '>' token
   14 |                 c[i] = c[i].Select(x => x - c[i].Min()).ToArray();
      |                                       ^
a.cc:16:13: error: 'Console' was not declared in this scope
   16 |             Console.WriteLine((c[0].SequenceEqual(c[1]) && c[0].SequenceEqual(c[2])) ? "Yes" : "No");
      |             ^~~~~~~
a.cc:16:32: error: 'c' was not declared in this scope
   16 |             Console.WriteLine((c[0].SequenceEqual(c[1]) && c[0].SequenceEqual(c[2])) ? "Yes" : "No");
      |                                ^
Language: C++

int main(int argc, const char * argv[]) {
    vector<vector<int>> c(3, vector<int>(3));
    for(int i = 0; i < 3; i++) {
        for(int j = 0; j < 3; j++) {
            int inp; cin >> inp;
            c[i][j] = inp;
        }
    }
    
    vector<int> x(3), y(3);
    x[0] = 0;
    for(int i = 0; i < 3; i++) y[i] = c[0][i] - x[0];
    for(int i = 0; i < 3; i++) x[i] = c[i][0] - y[0];
    
    bool good = true;
    for(int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            if(x[i] + y[j] != c[i][j]) {
                good = false;
            }
        }
    }
    
    if(good) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:2:5: error: 'vector' was not declared in this scope
    2 |     vector<vector<int>> c(3, vector<int>(3));
      |     ^~~~~~
a.cc:2:19: error: expected primary-expression before 'int'
    2 |     vector<vector<int>> c(3, vector<int>(3));
      |                   ^~~
a.cc:5:22: error: 'cin' was not declared in this scope
    5 |             int inp; cin >> inp;
      |                      ^~~
a.cc:6:13: error: 'c' was not declared in this scope
    6 |             c[i][j] = inp;
      |             ^
a.cc:10:12: error: expected primary-expression before 'int'
   10 |     vector<int> x(3), y(3);
      |            ^~~
a.cc:11:5: error: 'x' was not declared in this scope
   11 |     x[0] = 0;
      |     ^
a.cc:12:32: error: 'y' was not declared in this scope
   12 |     for(int i = 0; i < 3; i++) y[i] = c[0][i] - x[0];
      |                                ^
a.cc:12:39: error: 'c' was not declared in this scope
   12 |     for(int i = 0; i < 3; i++) y[i] = c[0][i] - x[0];
      |                                       ^
a.cc:13:39: error: 'c' was not declared in this scope
   13 |     for(int i = 0; i < 3; i++) x[i] = c[i][0] - y[0];
      |                                       ^
a.cc:13:49: error: 'y' was not declared in this scope
   13 |     for(int i = 0; i < 3; i++) x[i] = c[i][0] - y[0];
      |                                                 ^
a.cc:18:23: error: 'y' was not declared in this scope
   18 |             if(x[i] + y[j] != c[i][j]) {
      |                       ^
a.cc:18:31: error: 'c' was not declared in this scope
   18 |             if(x[i] + y[j] != c[i][j]) {
      |                               ^
a.cc:25:9: error: 'cout' was not declared in this scope
   25 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:25:26: error: 'endl' was not declared in this scope
   25 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:27:9: error: 'cout' was not declared in this scope
   27 |         cout << "No" << endl;
      |         ^~~~
a.cc:27:25: error: 'endl' was not declared in this scope
   27 |         cout << "No" << endl;
      |                         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
int main(void){
    a=0;
    vector<vector<int>> vec(3)(3);
    rep(i,0,3)rep(j,0,3)cin>>vec[i][j];
    rep(i,0,3)rep(j,0,3)vec[i][j]-=vec[i][2];
    rep(i,0,3)rep(j,0,3)vec[j][i]-=vec[2][i];
    rep(i,0,3)rep(j,0,3)a+=vec[i][j];
    cout<<(a?"No":"Yes");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'a' was not declared in this scope
    6 |     a=0;
      |     ^
a.cc:7:31: error: expected ',' or ';' before '(' token
    7 |     vector<vector<int>> vec(3)(3);
      |                               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool solve() {
    ll w = 3, h = 3;
    vector<vector<ll>> m(h, vector<ll>(w)); cin >> m;
    rep(y, h-1) {
        set<ll> s;
        rep(x, w) {
            s.insert(m[y+1][x] - m[y][x]);
        }
        if (s.size() > 1) return false;
    }
    rep(x, w-1) {
        set<ll> s;
        rep(y, h) {
            s.insert(m[y][x+1] - m[y][x]);
        }
        if (s.size() > 1) return false;
    }
    return true;
}
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    if (solve()) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'bool solve()':
a.cc:4:5: error: 'll' was not declared in this scope
    4 |     ll w = 3, h = 3;
      |     ^~
a.cc:5:19: error: template argument 2 is invalid
    5 |     vector<vector<ll>> m(h, vector<ll>(w)); cin >> m;
      |                   ^~
a.cc:5:21: error: template argument 1 is invalid
    5 |     vector<vector<ll>> m(h, vector<ll>(w)); cin >> m;
      |                     ^~
a.cc:5:21: error: template argument 2 is invalid
a.cc:5:26: error: 'h' was not declared in this scope
    5 |     vector<vector<ll>> m(h, vector<ll>(w)); cin >> m;
      |                          ^
a.cc:5:38: error: template argument 2 is invalid
    5 |     vector<vector<ll>> m(h, vector<ll>(w)); cin >> m;
      |                                      ^
a.cc:5:40: error: 'w' was not declared in this scope
    5 |     vector<vector<ll>> m(h, vector<ll>(w)); cin >> m;
      |                                        ^
a.cc:5:42: error: expression list treated as compound expression in initializer [-fpermissive]
    5 |     vector<vector<ll>> m(h, vector<ll>(w)); cin >> m;
      |                                          ^
a.cc:6:9: error: 'y' was not declared in this scope
    6 |     rep(y, h-1) {
      |         ^
a.cc:6:5: error: 'rep' was not declared in this scope
    6 |     rep(y, h-1) {
      |     ^~~
a.cc:13:9: error: 'x' was not declared in this scope
   13 |     rep(x, w-1) {
      |         ^
Language: C++

#include <iostream>
using namespace std;

int check(int c[][],int a[]){
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      if(c[i][j]-a[i]<0||c[i][j]-a[i]>3){
        return 0;
      }
    }
  }
  return 1;
}

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 a1=0;a1<3;a1++){
    for(int a2=0;a2<3;a2++){
      for(int a3=0;a3<3;a3++){
        int a[3]={a1,a2,a3};
        if(check(c,a)==0){
          cout<<"No"<<endl;
        }else{
          cout<<"Yes"<<endl;
        }
      }
    }
  }
}


Compiler output:
a.cc:4:15: error: declaration of 'c' as multidimensional array must have bounds for all dimensions except the first
    4 | int check(int c[][],int a[]){
      |               ^
a.cc:4:20: error: expected ')' before ',' token
    4 | int check(int c[][],int a[]){
      |          ~         ^
      |                    )
a.cc:4:21: error: expected unqualified-id before 'int'
    4 | int check(int c[][],int a[]){
      |                     ^~~
Language: C++

#include <iostream>
using namespace std;

int check(int c[],int a[]){
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      if(c[i][j]-a[i]<0||c[i][j]-a[i]>3){
        return 0;
      }
    }
  }
  return 1;
}

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 a1=0;a1<3;a1++){
    for(int a2=0;a2<3;a2++){
      for(int a3=0;a3<3;a3++){
        int a[3]={a1,a2,a3};
        if(check(c,a)==0){
          cout<<"No"<<endl;
        }else{
          cout<<"Yes"<<endl;
        }
      }
    }
  }
}


Compiler output:
a.cc: In function 'int check(int*, int*)':
a.cc:7:14: error: invalid types 'int[int]' for array subscript
    7 |       if(c[i][j]-a[i]<0||c[i][j]-a[i]>3){
      |              ^
a.cc:7:30: error: invalid types 'int[int]' for array subscript
    7 |       if(c[i][j]-a[i]<0||c[i][j]-a[i]>3){
      |                              ^
a.cc: In function 'int main()':
a.cc:26:18: error: cannot convert 'int (*)[3]' to 'int*'
   26 |         if(check(c,a)==0){
      |                  ^
      |                  |
      |                  int (*)[3]
a.cc:4:15: note:   initializing argument 1 of 'int check(int*, int*)'
    4 | int check(int c[],int a[]){
      |           ~~~~^~~
Language: C++

#include <iostream>
using namespace std;

int check(c,a){
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      if(c[i][j]-a[i]<0||c[i][j]-a[i]>3){
        return 0;
      }
    }
  }
  return 1;
}

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 a1=0;a1<3;a1++){
    for(int a2=0;a2<3;a2++){
      for(int a3=0;a3<3;a3++){
        int a[3]={a1,a2,a3};
        if(check(c,a)==0){
          cout<<"No"<<endl;
        }else{
          cout<<"Yes"<<endl;
        }
      }
    }
  }
}

Compiler output:
a.cc:4:11: error: 'c' was not declared in this scope
    4 | int check(c,a){
      |           ^
a.cc:4:13: error: 'a' was not declared in this scope
    4 | int check(c,a){
      |             ^
a.cc:4:14: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | int check(c,a){
      |              ^
a.cc: In function 'int main()':
a.cc:26:17: error: 'check' cannot be used as a function
   26 |         if(check(c,a)==0){
      |            ~~~~~^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int s=0,a[6],flag=0;
int arr[3][3];
void suiizhao(int ss,int k)
{
	int i,j;
	if(ss>s||flag)
		return;
	if(k==6)
	{
		if(ss==s)
		{
			for(i=0;i<3;i++)
			{
				for(j=i+1;j<3;j++)
				{
					if(a[i]+a[j+3]!=arr[i][j])
					{
						return;
					}
				}
			}
			flag=1;
			printf("Yes");
		}
		return;
	}
	for(i=0;i<=s-ss;i++)
	{
		a[k]=i;
		suizhao(ss+i,k+1);
		if(flag)
			return;
	}
}
int main()
{
	int i,j;
	for(i=0;i<3;i++)
	{
		for(j=0;j<3;j++)
		{
			scanf("%d",&arr[i][j]);
			s+=arr[i][j];
		}
	}
	s/=3;
	suizhao(0,0);
	if(!flag)
		printf("No");
	return 0;
}

Compiler output:
a.cc: In function 'void suiizhao(int, int)':
a.cc:32:17: error: 'suizhao' was not declared in this scope; did you mean 'suiizhao'?
   32 |                 suizhao(ss+i,k+1);
      |                 ^~~~~~~
      |                 suiizhao
a.cc: In function 'int main()':
a.cc:49:9: error: 'suizhao' was not declared in this scope; did you mean 'suiizhao'?
   49 |         suizhao(0,0);
      |         ^~~~~~~
      |         suiizhao
Language: C++

#include<bits/stdc++.h>
using namespace std;
int s=0,a[6],flag=0;
void suiizhao(int ss,int k)
{
	int i,j;
	if(ss>s||flag)
		return;
	if(k==6)
	{
		if(ss==s)
		{
			for(i=0;i<3;i++)
			{
				for(j=i+1;j<3;j++)
				{
					if(a[i]+a[j+3]!=arr[i][j])
					{
						return;
					}
				}
			}
			flag=1;
			printf("Yes");
		}
		return;
	}
	for(i=0;i<s-ss;i++)
	{
		a[k]=i;
		suizhao(ss+i,k+1);
		if(flag)
			return;
	}
}
int main()
{
	int i,j;
	int arr[3][3];
	for(i=0;i<3;i++)
	{
		for(j=0;j<3;j++)
		{
			scanf("%d",&arr[i][j]);
			s+=arr[i][j];
		}
	}
	s/=3;
	suizhao(0,0);
	if(!flag)
		printf("No");
	return 0;
}

Compiler output:
a.cc: In function 'void suiizhao(int, int)':
a.cc:17:57: error: 'arr' was not declared in this scope
   17 |                                         if(a[i]+a[j+3]!=arr[i][j])
      |                                                         ^~~
a.cc:31:17: error: 'suizhao' was not declared in this scope; did you mean 'suiizhao'?
   31 |                 suizhao(ss+i,k+1);
      |                 ^~~~~~~
      |                 suiizhao
a.cc: In function 'int main()':
a.cc:49:9: error: 'suizhao' was not declared in this scope; did you mean 'suiizhao'?
   49 |         suizhao(0,0);
      |         ^~~~~~~
      |         suiizhao
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a1,a2,a3,b1,b2,b3;
	int x[4][4];
	for(int i=1; i<=3; i++)
	{
		for(int j=1; j<=3; j++)
		{
			cin>>x[i][j];
		}
	}
	a1=0;
	b1=x[1][1]-a1;
	b2=x[1][2]-a1;
	b3=x[1][3]-a1;
	a2=x[2][1]-b1;
	a3=x[3][1]-b1;
	f(a2+b2==x[2][2] && a2+b3==x[2][3] && 
	   a3+b2==x[3][2] && a3+b3==x[3][3])
	   {
		 cout<<"Yes"<<endl;
		 return 0;
	}
	cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'f' was not declared in this scope
   20 |         f(a2+b2==x[2][2] && a2+b3==x[2][3] &&
      |         ^
Language: C++

sdfsfdsfdsfdsfsdfddddddddddddddddddddddddddddddddddd

Compiler output:
a.cc:1:1: error: 'sdfsfdsfdsfdsfsdfddddddddddddddddddddddddddddddddddd' does not name a type
    1 | sdfsfdsfdsfdsfsdfddddddddddddddddddddddddddddddddddd
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
int mapp[3][3];
int main()
{
for(int i=0;i<3;i++)
{
    for(int j=0;j<3;j++)
    {  
       cin>>mapp[i][j];
    }
}
int sum1=mapp[0][0]+mapp[1][1]+mapp[2][2];
int sum2=mapp[0][1]+mapp[1][2]+mapp[2][0];
int sum3=mapp[1][0]+mapp[2][1]+mapp[0][2];
if(sum1==sum2&&sum2==sum3)
       cout<<"Yes"<<endl;
else
       cout<<"No"<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |        cin>>mapp[i][j];
      |        ^~~
      |        std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |        cout<<"Yes"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |        cout<<"Yes"<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:18:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |        cout<<"No"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |        cout<<"No"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int mapp[3][3];
int main()
{
for(int i=0;i<3;i++)
{
    for(int j=0;j<3;j++)
    {  
       cin>>mapp[i][j];
    }
}
int sum1=mapp[0][0]+mapp[1][1]+mapp[2][2];
int sum2=mapp[0][1]+mapp[1][2]+mapp[2][0];
int sum3=mapp[1][0]+mapp[2][1]+mapp[0][2];
if(sum1==sum2&&sum2==sum3)
       cout<<Yes<<endl;
else
       cout<<No<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'Yes' was not declared in this scope
   17 |        cout<<Yes<<endl;
      |              ^~~
a.cc:19:14: error: 'No' was not declared in this scope
   19 |        cout<<No<<endl;
      |              ^~
Language: C++

#include<bits/stdc++.h>
int mapp[3][3];
int main()
{
for(int i=0;i<3;i++)
{
    for(int j=0;j<3;j++)
    {  
       cin>>mapp[i][j];
    }
}
int sum1=mapp[0][0]+mapp[1][1]+mapp[2][2];
int sum2=mapp[0][1]+mapp[1][2]+mapp[2][0];
int sum3=mapp[1][0]+mapp[2][1]+mapp[0][2];
if(sum1==sum2&&sum2==sum3)
       cout<<Yes<<endl;
else
       cout<<No<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |        cin>>mapp[i][j];
      |        ^~~
      |        std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |        cout<<Yes<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:14: error: 'Yes' was not declared in this scope
   16 |        cout<<Yes<<endl;
      |              ^~~
a.cc:16:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |        cout<<Yes<<endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:18:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |        cout<<No<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:14: error: 'No' was not declared in this scope
   18 |        cout<<No<<endl;
      |              ^~
a.cc:18:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |        cout<<No<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int a[4][4];
int main(){
    for(int i = 1; i<= 3;i++) {
        for(int j = 1;j <= 3;j ++) {
            cin>>a[i][j];
        }
    }
for(int k = -201;k <= 201;k++) {
        int a2,a3,b1,b2,b3;
        int a1 = k;
        b1 = a[1][1] - k;
        b2 = a[1][2] - k;
        b3 = a[1][3] - k;
        a2 = a[2][1] - b1;
        a3 = a[3][1] - b1;
        bool flag = false;
        if(a[2][2] != a2 + b2) flag = true;
        if(a[2][3] != a2 + b3) flag = true;
        if(a[3][2] != a3 + b2) flag = true;
        if(a[3][3] != a3 + b3) flag = true;
        if(!flg) 
       {
            cout<<"Yes"<<endl;return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:13: error: 'flg' was not declared in this scope; did you mean 'flag'?
   25 |         if(!flg)
      |             ^~~
      |             flag
Language: C++

#include<cstdio>
#include<cmath>
#include<algorithm>
#include<cstring>
#include <vector>
#include <map>
using namespace std;
int s[3][3];
int check()
{
    if(s[0][1] - s[0][0] != s[1][1] - s[1][0] || s[0][1] - s[0][0] != s[2][1] - s[2][0])return 0;
    if(s[0][2] - s[0][0] != s[1][2] - s[1][0] || s[0][2] - s[0][0] != s[2][2] - s[2][0])return 0;
    if(s[0][1] - s[0][2] != s[1][1] - s[1][2] || s[0][1] - s[0][2] != s[2][1] - s[2][2])return 0;
    if(s[0][0] - s[1][0] != s[0][1] - s[1][1] || s[0][0] - s[1][0] != s[0][2] - s[1][2])return 0;
    if(s[0][0] - s[2][0] != s[0][1] - s[2][1] || s[0][0] - s[2][0] != s[0][2] - s[2][2])return 0;
    if(s[2][0] - s[1][0] != s[2][1] - s[1][1] || s[2][0] - s[1][0] != s[2][2] - s[1][2])return 0;
    return 1;
}
int main()
{
    for(int i = 0;i < 3;i ++)
    {
        for(int j = 0;j < 3;j ++)
        {
            cin>>s[i][j];
        }
    }
    if(check())cout<<"Yes";
    else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:13: error: 'cin' was not declared in this scope
   25 |             cin>>s[i][j];
      |             ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    6 | #include <map>
  +++ |+#include <iostream>
    7 | using namespace std;
a.cc:28:16: error: 'cout' was not declared in this scope
   28 |     if(check())cout<<"Yes";
      |                ^~~~
a.cc:28:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:10: error: 'cout' was not declared in this scope
   29 |     else cout<<"No";
      |          ^~~~
a.cc:29:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;
int const nm = 107;
int v[nm];
int main()
{
    int n , a , suma = 0 , sumb = 0 ;
    for(int i = 1 ; i < = 3 ; ++ i )
        for (int j = 1; j < = 3; ++ j )
    {
            cin >> a;
            suma + = a;
    }
    if ( suma % 3 == 0)
        cout << "Yes";
    else
        cout << "No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected primary-expression before '=' token
    8 |     for(int i = 1 ; i < = 3 ; ++ i )
      |                         ^
a.cc:9:29: error: expected primary-expression before '=' token
    9 |         for (int j = 1; j < = 3; ++ j )
      |                             ^
a.cc:12:20: error: expected primary-expression before '=' token
   12 |             suma + = a;
      |                    ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:27: error: lvalue required as left operand of assignment
   23 |         if(a2+b2==x[2][2] && a2+b3=x[2][3]&&\
      |            ~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

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

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

int main()
{
	int i,n,b,s;
	cin>>i>>n>>b>>s;
	int b[n];
	
	for(int i=0; i<=n; i++) cin>>b[n];
	
	for(int i=0; i<=n; i++)
	{
		if(int(sqrt(b)==sqrt(b)) s++; 
		cout<<"Yes"<<endl;
	}
	else
	{
	    cout<<"No"<<endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: conflicting declaration 'int b [n]'
    8 |         int b[n];
      |             ^
a.cc:6:17: note: previous declaration as 'int b'
    6 |         int i,n,b,s;
      |                 ^
a.cc:10:39: error: invalid types 'int[int]' for array subscript
   10 |         for(int i=0; i<=n; i++) cin>>b[n];
      |                                       ^
a.cc:14:41: error: expected ';' before 's'
   14 |                 if(int(sqrt(b)==sqrt(b)) s++;
      |                                         ^~
      |                                         ;
a.cc:15:34: error: expected ')' before ';' token
   15 |                 cout<<"Yes"<<endl;
      |                                  ^
      |                                  )
a.cc:14:19: note: to match this '('
   14 |                 if(int(sqrt(b)==sqrt(b)) s++;
      |                   ^
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else
      |         ^~~~
Language: C

#include<stdio.h>
int main(void){
	unsigned int c[3][3],i=0,count=0;

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

	i=0;

	for(i=0;i<=2;i++){
		if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2])){
			count++;
		}
		if((c[0][i]-c[0][(i+1)%3]==c[1][i]-c[1][(i+1)%3])&&(c[0][i]-c[0][(i+1)%3]==c[2][i]-c[2][(i+1)%3])){
			count++;
		}
	}

	if(count==6){
		printf("Yes");
	}else{
		printf("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	unsigned int c[3][3],i=0,count=0;

	for(i=0;i<=2;i++){
		scanf("%d %d %d\n",&c[i][0],&c[i][1],&c[i][2]);
	}

	i=0;

	for(i=0;i<=2;i++){
		if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2])){
			count++;
		}
		if((c[0][i]-c[0][(i+1)%3]==c[1][i]-c[1][(i+1)%3])&&(c[0][i]-c[0][(i+1)%3]==c[2][i]-c[2][(i+1)%3])){
			count++;
		}
	}

	if(count==6){
		printf("Yes");
	}else{
		printf("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(void){
	int c[3][3],i=0,count=0;

	for(i=0;i<=2;i++){
		cin >> c[i][0];
		cin >> c[i][1];
		cin >> c[i][2];
	}

	i=0;

	for(i=0;i<=2;i++){
		if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2])){
			count++;
		}
		if((c[0][i]-c[0][(i+1)%3]==c[1][i]-c[1][(i+1)%3])&&(c[0][i]-c[0][(i+1)%3]==c[2][i]-c[2][(i+1)%3])){
			count++;
		}
	}

	if(count==6){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;

	return 0;
}

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

#include<iostream>
using namespace std;
int main(void){
	int c[3][3],i=0,count=0;

	for(i=0;i<=2;i++){
		cin >> c[i][0] c[i][1] c[i][2];
	}

	i=0;

	for(i=0;i<=2;i++){
		if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2])){
			count++;
		}
		if((c[0][i]-c[0][(i+1)%3]==c[1][i]-c[1][(i+1)%3])&&(c[0][i]-c[0][(i+1)%3]==c[2][i]-c[2][(i+1)%3])){
			count++;
		}
	}

	if(count==6){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before 'c'
    7 |                 cin >> c[i][0] c[i][1] c[i][2];
      |                               ^~
      |                               ;
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C

#include<stdio.h>
int main(void){
	unsigned int c[3][3],i=0,count=0;

	for(i=0;i<=2;i++){
		scanf("%d %d %d\n",&c[i][0],&c[i][1],&c[i][2]);
	}

	i=0;

	for(i=0;i<=2;i++){
		if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2]){
			count++;
		}
		if((c[0][i]-c[0][(i+1)%3]==c[1][i]-c[1][(i+1)%3])&&(c[0][i]-c[0][(i+1)%3]==c[2][i]-c[2][(i+1)%3])){
			count++;
		}
	}

	if(count==6){
		printf("Yes");
	}else{
		printf("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:114: error: expected ')' before '{' token
   12 |                 if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2]){
      |                   ~                                                                                              ^
      |                                                                                                                  )
main.c:18:9: error: expected expression before '}' token
   18 |         }
      |         ^
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	unsigned int c[3][3],i=0,count=0;

	scanf("%d %d %d\n",c[0][0],c[0][1],c[0][2]);
	scanf("%d %d %d\n",c[1][0],c[1][1],c[1][2]);
	scanf("%d %d %d\n",c[2][0],c[2][1],c[2][2]);

	for(i=0;i<=2:i++){
		if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2]){
			count++;
		}
		if((c[0][i]-c[0][(i+1)%3]==c[1][i]-c[1][(i+1)%3])&&(c[0][i]-c[0][(i+1)%3]==c[2][i]-c[2][(i+1)%3])){
			count++;
		}
	}

	if(count==6){
		printf("Yes");
	}else{
		printf("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: expected ';' before ':' token
    9 |         for(i=0;i<=2:i++){
      |                     ^
      |                     ;
main.c:10:114: error: expected ')' before '{' token
   10 |                 if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2]){
      |                   ~                                                                                              ^
      |                                                                                                                  )
main.c:16:9: error: expected expression before '}' token
   16 |         }
      |         ^
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	unsigned int c[3][3],i=0,count=0;

	scanf("%d %d %d\n",c[0][0],c[0][1],c[0][2]);
	scanf("%d %d %d\n",c[1][0],c[1][1],c[1][2]);
	scanf("%d %d %d\n",c[2][0],c[2][1],c[2][2]);

	for(i=0;i<=2:i++){
		if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2]){
			count++;
		}
		if((c[0][j]-c[0][(j+1)%3]==c[1][j]-c[1][(j+1)%3])&&(c[0][j]-c[0][(j+1)%3]==c[2][j]-c[2][(j+1)%3])){
			count++;
		}
	}

	if(count==6){
		printf("Yes");
	}else{
		printf("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: expected ';' before ':' token
    9 |         for(i=0;i<=2:i++){
      |                     ^
      |                     ;
main.c:10:114: error: expected ')' before '{' token
   10 |                 if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2]){
      |                   ~                                                                                              ^
      |                                                                                                                  )
main.c:16:9: error: expected expression before '}' token
   16 |         }
      |         ^
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^