Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#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 FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
  pr(b);
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

int F[100][14];
int P[100][15];
int main()
{
  // input
  int N;
  cin >> N;
  REP(i, N)
  REP(j, 10)
  cin >> F[i][j];

  REP(i, N)
  REP(j, 11)
  cin >> P[i][j];

  int res = -(1 < < 30);

  //全探索：２＾１０通り
  for (int b = 1; b < (1 < < 10); b++)
  {
    int cc = 0;
    REP(i, N)
    {
      int c = 0;
      REP(j, 10)
      // 1 だった場合
      if ((b >> j & 1) && F[i][j])
        c++;
      cc += P[i][c];
    }
    // find max
    if (res < cc)
      res = cc;
  }
  cout << res << endl;
}

Compiler output:
a.cc:57:14: error: 'int P [100][15]' redeclared as different kind of entity
   57 | int P[100][15];
      |              ^
a.cc:6:24: note: previous declaration 'typedef struct std::pair<int, int> P'
    6 | typedef pair<int, int> P;
      |                        ^
a.cc: In function 'int main()':
a.cc:5:12: error: expected primary-expression before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:63:3: note: in expansion of macro 'REP'
   63 |   REP(i, N)
      |   ^~~
a.cc:5:12: error: expected ';' before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:63:3: note: in expansion of macro 'REP'
   63 |   REP(i, N)
      |   ^~~
a.cc:5:12: error: expected primary-expression before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:63:3: note: in expansion of macro 'REP'
   63 |   REP(i, N)
      |   ^~~
a.cc:5:12: error: expected ')' before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:63:3: note: in expansion of macro 'REP'
   63 |   REP(i, N)
      |   ^~~
a.cc:24:23: note: to match this '('
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                       ^
a.cc:63:3: note: in expansion of macro 'REP'
   63 |   REP(i, N)
      |   ^~~
a.cc:63:7: error: 'i' was not declared in this scope
   63 |   REP(i, N)
      |       ^
a.cc:24:45: note: in definition of macro 'REP'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                             ^
a.cc:64:7: error: 'j' was not declared in this scope
   64 |   REP(j, 10)
      |       ^
a.cc:24:34: note: in definition of macro 'REP'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                  ^
a.cc:5:12: error: expected primary-expression before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:64:3: note: in expansion of macro 'REP'
   64 |   REP(j, 10)
      |   ^~~
a.cc:5:12: error: expected primary-expression before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:67:3: note: in expansion of macro 'REP'
   67 |   REP(i, N)
      |   ^~~
a.cc:5:12: error: expected ';' before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:67:3: note: in expansion of macro 'REP'
   67 |   REP(i, N)
      |   ^~~
a.cc:5:12: error: expected primary-expression before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:67:3: note: in expansion of macro 'REP'
   67 |   REP(i, N)
      |   ^~~
a.cc:5:12: error: expected ')' before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:67:3: note: in expansion of macro 'REP'
   67 |   REP(i, N)
      |   ^~~
a.cc:24:23: note: to match this '('
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                       ^
a.cc:67:3: note: in expansion of macro 'REP'
   67 |   REP(i, N)
      |   ^~~
a.cc:5:12: error: expected primary-expression before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:68:3: note: in expansion of macro 'REP'
   68 |   REP(j, 11)
      |   ^~~
a.cc:71:19: error: expected primary-expression before '<' token
   71 |   int res = -(1 < < 30);
      |                   ^
a.cc:74:28: error: expected primary-expression before '<' token
   74 |   for (int b = 1; b < (1 < < 10); b++)
      |                            ^
a.cc:5:12: error: expected primary-expression before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:77:5: note: in expansion of macro 'REP'
   77 |     REP(i, N)
      |     ^~~
a.cc:5:12: error: expected ';' before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:77:5: note: in expansion of macro 'REP'
   77 |     REP(i, N)
      |     ^~~
a.cc:5:12: error: expected primary-expression before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:77:5: note: in expansion of macro 'REP'
   77 |     REP(i, N)
      |     ^~~
a.cc:5:12: error: expected ')' before 'long'
    5 | #define ll long long
      |            ^~~~
a.cc:24:38: note: in expansion of macro 'll'
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                                      ^~
a.cc:77:5: note: in expansion of macro 'REP'
   77 |     REP(i, N)
      |     ^~~
a.cc:24:23: note: to match this '('
   24 | #define REP(i, n) for (ll i = 0; i < ll(n); i++)
      |                       ^
a.cc:77:5: note: in expansion of macro 'REP'
   77 |     REP(i, N)
      |     ^~~