Language: C++

#include<iostream>
using namespace std;
main(){int c[9];for(int i=0;i<9;i++)cin>>c[i];cout<<(c[0]+c[4]-c[1]-c[3])|(c[0]+c[5]-c[2]-c[3])|(c[0]+c[7]-c[1]-c[6])|(c[0]+c[8]-c[2]-c[6])?"NO":"YES"<<endl;}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){int c[9];for(int i=0;i<9;i++)cin>>c[i];cout<<(c[0]+c[4]-c[1]-c[3])|(c[0]+c[5]-c[2]-c[3])|(c[0]+c[7]-c[1]-c[6])|(c[0]+c[8]-c[2]-c[6])?"NO":"YES"<<endl;}
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:74: error: no match for 'operator|' (operand types are 'std::basic_ostream<char>' and 'int')
    3 | main(){int c[9];for(int i=0;i<9;i++)cin>>c[i];cout<<(c[0]+c[4]-c[1]-c[3])|(c[0]+c[5]-c[2]-c[3])|(c[0]+c[7]-c[1]-c[6])|(c[0]+c[8]-c[2]-c[6])?"NO":"YES"<<endl;}
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
      |                                                   |                                      |
      |                                                   std::basic_ostream<char>               int
a.cc:3:74: note: candidate: 'operator|(int, int)' (built-in)
    3 | main(){int c[9];for(int i=0;i<9;i++)cin>>c[i];cout<<(c[0]+c[4]-c[1]-c[3])|(c[0]+c[5]-c[2]-c[3])|(c[0]+c[7]-c[1]-c[6])|(c[0]+c[8]-c[2]-c[6])?"NO":"YES"<<endl;}
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
a.cc:3:74: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int'
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/cstddef:136:3: note: candidate: 'constexpr std::byte std::operator|(byte, byte)'
  136 |   operator|(byte __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/14/cstddef:136:18: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::byte'
  136 |   operator|(byte __l, byte __r) noexcept
      |             ~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:89:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator|(_Ios_Fmtflags, _Ios_Fmtflags)'
   89 |   operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:89:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Fmtflags'
   89 |   operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:139:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator|(_Ios_Openmode, _Ios_Openmode)'
  139 |   operator|(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:139:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Openmode'
  139 |   operator|(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:186:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator|(_Ios_Iostate, _Ios_Iostate)'
  186 |   operator|(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:186:26: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Iostate'
  186 |   operator|(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~^~~
a.cc:3:151: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    3 | main(){int c[9];for(int i=0;i<9;i++)cin>>c[i];cout<<(c[0]+c[4]-c[1]-c[3])|(c[0]+c[5]-c[2]-c[3])|(c[0]+c[7]-c[1]-c[6])|(c[0]+c[8]-c[2]-c[6])?"NO":"YES"<<endl;}
      |                                                                                                                                                  ~~~~~^~~~~~