Language: C++

#include <iostream>
#include <vector>
#include <climits>

using ll = long long

using namespace std;

int main(void){
  #define int ll

	int n;
	cin >> n;
	vector<int> f(n, 0);
	vector<vector<int> > p(n, vector<int>(11));
	for(auto& fi : f){
		for(int i = 0; i < 10; i++){
			int t;
			cin >> t;
			fi <<= 1;
			fi += t;
		}
	}
	for(auto& pi : p){
		for(auto& pii : pi){
			cin >> pii;
		}
	}
	int m = INT_MIN;
	for(int i = 0; i < 1<<10; i++){
		int t = 0;
		for(int j = 0; j < n; j++){
			int c = 0;
			for(int fi = f[j] & i; fi; fi >>= 1){
				c += fi & 1;
			}
			t += p[j][c];
		}
		m = max(m, t);
	}
	cout << m << endl;
	return 0;
}


Compiler output:
a.cc:5:21: error: expected ';' before 'using'
    5 | using ll = long long
      |                     ^
      |                     ;
    6 | 
    7 | using namespace std;
      | ~~~~~                
a.cc: In function 'int main()':
a.cc:10:15: error: 'll' was not declared in this scope
   10 |   #define int ll
      |               ^~
a.cc:12:9: note: in expansion of macro 'int'
   12 |         int n;
      |         ^~~
a.cc:13:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |         cin >> n;
      |         ^~~
      |         std::cin
In file included 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:13:16: error: 'n' was not declared in this scope
   13 |         cin >> n;
      |                ^
a.cc:14:9: error: 'vector' was not declared in this scope
   14 |         vector<int> f(n, 0);
      |         ^~~~~~
a.cc:14:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:14:21: error: 'f' was not declared in this scope
   14 |         vector<int> f(n, 0);
      |                     ^
a.cc:15:28: error: expected primary-expression before '>' token
   15 |         vector<vector<int> > p(n, vector<int>(11));
      |                            ^
a.cc:15:30: error: 'p' was not declared in this scope
   15 |         vector<vector<int> > p(n, vector<int>(11));
      |                              ^
a.cc:17:25: error: expected ';' before 'i'
   17 |                 for(int i = 0; i < 10; i++){
      |                         ^
a.cc:17:32: error: 'i' was not declared in this scope
   17 |                 for(int i = 0; i < 10; i++){
      |                                ^
a.cc:18:29: error: expected ';' before 't'
   18 |                         int t;
      |                             ^
a.cc:19:32: error: 't' was not declared in this scope; did you mean 'tm'?
   19 |                         cin >> t;
      |                                ^
      |                                tm
a.cc:29:13: error: expected ';' before 'm'
   29 |         int m = INT_MIN;
      |             ^
a.cc:30:17: error: expected ';' before 'i'
   30 |         for(int i = 0; i < 1<<10; i++){
      |                 ^
a.cc:30:24: error: 'i' was not declared in this scope
   30 |         for(int i = 0; i < 1<<10; i++){
      |                        ^
a.cc:31:21: error: expected ';' before 't'
   31 |                 int t = 0;
      |                     ^
a.cc:32:25: error: expected ';' before 'j'
   32 |                 for(int j = 0; j < n; j++){
      |                         ^
a.cc:32:32: error: 'j' was not declared in this scope
   32 |                 for(int j = 0; j < n; j++){
      |                                ^
a.cc:33:29: error: expected ';' before 'c'
   33 |                         int c = 0;
      |                             ^
a.cc:34:33: error: expected ';' before 'fi'
   34 |                         for(int fi = f[j] & i; fi; fi >>= 1){
      |                                 ^~
a.cc:34:48: error: 'fi' was not declared in this scope
   34 |                         for(int fi = f[j] & i; fi; fi >>= 1){
      |                                                ^~
a.cc:35:33: error: 'c' was not declared in this scope
   35 |                                 c += fi & 1;
      |                                 ^
a.cc:37:25: error: 't' was not declared in this scope; did you mean 'tm'?
   37 |                         t += p[j][c];
      |                         ^
      |                         tm
a.cc:37:35: error: 'c' was not declared in this scope
   37 |                         t += p[j][c];
      |                                   ^
a.cc:39:17: error: 'm' was not declared in this scope; did you mean 'tm'?
   39 |                 m = max(m, t);
      |                 ^
      |                 tm
a.cc:39:28: error: 't' was not declared in this scope; did you mean 'tm'?
   39 |                 m = max(m, t);
      |                            ^
      |                            tm
a.cc:39:21: error: 'max' was not declared in this scope; did you mean 'std::max'?
   39 |                 m = max(m, t);
      |                     ^~~
      |                     std::max
In file included from /usr/include/c++/14/string:51,
                 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:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:41:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   41 |         cout << m << 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:41:17: error: 'm' was not declared in this scope; did you mean 'tm'?
   41 |         cout << m << endl;
      |                 ^
      |                 tm
a.cc:41:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   41 |         cout << m << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~