Language: C++

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

#define int long long
#define vvi vector<vector<int>>
#define vec vector
#define pq priority_queue
#define all(v) (v).begin(), (v).end()
#define uniqueV(x) sort(x.begin(), x.end()); x.erase(unique(x.begin(), x.end()), x.end());
#define rep(i, n) for (int (i) = (0); (i) < (n); ++(i))
#define repp(i, m, n) for (int (i) = (m); (i) < (n); ++(i))
#define dbg(x) cerr << #x << ": " << x << endl;
#define dbg2(x, y) cerr<<"("<<#x<<", "<<#y<<") = "<<"("<<x<<", "<<y<<")"<<endl;
#define dbg3(x, y, z) cerr<<"("<<#x<<", "<<#y<<", "<<#z<<") = "<<"("<<x<<", "<<y<<", "<<z<<")"<<endl;
#define dbgB(value, size) cerr<<#value<<": "<<bitset<size>(value) << endl;
#define line() cerr << "---------------" << endl;

const int dx[] = {1, -1, 0, 0};
const int dy[] = {0, 0, -1, 1};
const double PI = 3.14159265358979323846;

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a = b; return 1; } return 0; }

template<typename T>
void printA(vector<T> &printArray, char between = ' ') {
  int paSize = printArray.size();
  for (int i = 0; i < paSize; i++) { cerr << printArray[i] << between;}
  if (between != '\n') {cerr << endl;}
}

// ------------------------------------------------------------------------------------------

int N;
int a[111111];
map<int, int> mp;

signed main() {
  cin >> N;
  int sum = 0;
  rep (i, N) {
    cin >> a[i];
    sum += a[i];
    mp[a[i]]++;
  }

  if (count(a, a+N, 1) == N) {
    puts("first");
    return 0;
  }

  puts(sum%2?"first":"second");

/*
  for (auto x : mp) {
    dbg2(x.first, x.second)
  }

  if (mp.size() % 2 == 1) {
    puts("first");
  } else {
    puts("second");
  }
  */


  return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | a#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'a' does not name a type
    1 | a#include <bits/stdc++.h>
      | ^
a.cc:26:6: error: variable or field 'printA' declared void
   26 | void printA(vector<T> &printArray, char between = ' ') {
      |      ^~~~~~
a.cc:26:13: error: 'vector' was not declared in this scope
   26 | void printA(vector<T> &printArray, char between = ' ') {
      |             ^~~~~~
a.cc:26:21: error: expected primary-expression before '>' token
   26 | void printA(vector<T> &printArray, char between = ' ') {
      |                     ^
a.cc:26:24: error: 'printArray' was not declared in this scope
   26 | void printA(vector<T> &printArray, char between = ' ') {
      |                        ^~~~~~~~~~
a.cc:26:36: error: expected primary-expression before 'char'
   26 | void printA(vector<T> &printArray, char between = ' ') {
      |                                    ^~~~
a.cc:36:1: error: 'map' does not name a type
   36 | map<int, int> mp;
      | ^~~
a.cc: In function 'int main()':
a.cc:39:3: error: 'cin' was not declared in this scope
   39 |   cin >> N;
      |   ^~~
a.cc:44:5: error: 'mp' was not declared in this scope
   44 |     mp[a[i]]++;
      |     ^~
a.cc:47:7: error: 'count' was not declared in this scope
   47 |   if (count(a, a+N, 1) == N) {
      |       ^~~~~
a.cc:48:5: error: 'puts' was not declared in this scope
   48 |     puts("first");
      |     ^~~~
a.cc:52:3: error: 'puts' was not declared in this scope
   52 |   puts(sum%2?"first":"second");
      |   ^~~~