Language: C++

//khodaya khodet komak kon
#include <bits/stdc++.h>

#define F first
#define S second
#define pb push_back
#define all(x) x.begin(), x.end()
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math")


using namespace std;

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

const int N = 2000 + 10;
const ll MOD = 1000000000 + 7;
const ll INF = 1000000010;
const ll LOG = 25;

bitset<N> L[N], R[N], A[N];
int n;

int32_t main(){
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	cin >> n;
	for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
	for (int i = 1; i <= n; i++) for (int j = i; j <= n; j++){
		LR[i][j] = LR[i][j - 1];
		LR[i][j] = 1;
	}
	











	return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:28:71: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::bitset<2010>::reference')
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                   ~~~ ^~ ~~~~~~~
      |                                                                   |            |
      |                                                                   |            std::bitset<2010>::reference
      |                                                                   std::istream {aka std::basic_istream<char>}
In file included 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,
                 from a.cc:2:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  170 |       operator>>(bool& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:170:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'bool&' to an rvalue of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  174 |       operator>>(short& __n);
      |       ^~~~~~~~
/usr/include/c++/14/istream:174:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  177 |       operator>>(unsigned short& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:177:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  181 |       operator>>(int& __n);
      |       ^~~~~~~~
/usr/include/c++/14/istream:181:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  184 |       operator>>(unsigned int& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:184:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  188 |       operator>>(long& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:188:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  192 |       operator>>(unsigned long& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:192:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  199 |       operator>>(long long& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:199:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  203 |       operator>>(unsigned long long& __n)
      |       ^~~~~~~~
/usr/include/c++/14/istream:203:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |                                                                          ~~~~~~^
/usr/include/c++/14/bitset:920:9: note:   after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2010]'
  920 |         operator bool() const _GLIBCXX_NOEXCEPT
      |         ^~~~~~~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  219 |       operator>>(float& __f)
      |       ^~~~~~~~
/usr/include/c++/14/istream:219:7: note:   conversion of argument 1 would be ill-formed:
a.cc:28:80: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'bool'
   28 |         for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) cin >> A[i][j];
      |