Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>

int main(){
  vector<bool> candidates(151,{false});
  int A ,B ,C;
  cin >> A >> B >> C;
  
  int N = A + B + C;
  
  for(int i = 1 ; i <= 150; i++){
    if(N % 2 == i % 2 && i % 3 == 0 && i / 3 >= max(A,max(B,C))){
      candidates[i] = true;
      cout << i << endl;
    }
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<bool> candidates(151,{false});
      |   ^~~~~~
a.cc:7:3: 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:7:10: error: expected primary-expression before 'bool'
    7 |   vector<bool> candidates(151,{false});
      |          ^~~~
a.cc:7:38: error: expected primary-expression before ')' token
    7 |   vector<bool> candidates(151,{false});
      |                                      ^
a.cc:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   cin >> A >> B >> C;
      |   ^~~
      |   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:14:55: error: 'max' was not declared in this scope; did you mean 'std::max'?
   14 |     if(N % 2 == i % 2 && i % 3 == 0 && i / 3 >= max(A,max(B,C))){
      |                                                       ^~~
      |                                                       std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:14:49: error: 'max' was not declared in this scope; did you mean 'std::max'?
   14 |     if(N % 2 == i % 2 && i % 3 == 0 && i / 3 >= max(A,max(B,C))){
      |                                                 ^~~
      |                                                 std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:15:7: error: 'candidates' was not declared in this scope
   15 |       candidates[i] = true;
      |       ^~~~~~~~~~
a.cc:16:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |       cout << i << 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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |       cout << i << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~