Language: C++

#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
#define rep(i,n) for(ll i=0;i<(n);i++)
#define repr(i,n) for(ll i=(n-1);i>=0;i--)
#define all(x) x.begin(),x.end()
#define br cout << "\n";
using namespace std;
const long long INF = 1e10;
const long long MOD = 1e9+7;
using Graph = vector<vector<ll>>;
using pll = pair<ll, ll>;
template<class T> inline bool chmin(T &a, T b) { if(a > b){ a = b; return true;} return false;}
template<class T> inline bool chmax(T &a, T b) { if(a < b){ a = b; return true;} return false;}

// 0 false, 1 true 
// string to int : -48
// a to A : -32
// ceil(a)  1.2->2.0
// c++17	g++ -std=c++17 a.cpp

int main() {
    std::cout << std::fixed << std::setprecision(15);
    ll d; cin >> d;
    vector<ll> c(26);
    rep(i, 26){
        cin >> c[i];
    }
    vector<vector<ll>> vec(d, vector<ll>(26));
    rep(i, d){
        rep(j, 26){
            cin >> vec[i][j];
        }
    }

    rep(i, d){
        cout << 1 << endl;
    }
    /*
    ll ans = 0;
    vector<ll> last(26);

    rep(i, d){

        ll max_value = -1;
        ll contest_type = -1;
        rep(j, 26){
            if(max_value < vec[i][j]){
                max_value = vec[i][j];
                contest_type = j;
            }
            /*
            if(t[i] == j){
                ans += vec[i][j];
                last[j] = 0;
            }else{
                last[j]++;
            }
            */
        }

        ans += max_value;

        rep(j, 26){
            if(j == contest_type){
                last[j] = 0;
            }else{
                last[j]++;
            }
        }

        rep(j, 26){
            ans -= c[j]*last[j];
        }

        cout << contest_type+1 << endl;
    }
    */


}

Compiler output:
a.cc:62:9: error: 'ans' does not name a type
   62 |         ans += max_value;
      |         ^~~
a.cc:4:18: error: expected unqualified-id before 'for'
    4 | #define rep(i,n) for(ll i=0;i<(n);i++)
      |                  ^~~
a.cc:64:9: note: in expansion of macro 'rep'
   64 |         rep(j, 26){
      |         ^~~
a.cc:64:13: error: 'j' does not name a type
   64 |         rep(j, 26){
      |             ^
a.cc:4:29: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll i=0;i<(n);i++)
      |                             ^
a.cc:64:13: error: 'j' does not name a type
   64 |         rep(j, 26){
      |             ^
a.cc:4:35: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll i=0;i<(n);i++)
      |                                   ^
a.cc:4:18: error: expected unqualified-id before 'for'
    4 | #define rep(i,n) for(ll i=0;i<(n);i++)
      |                  ^~~
a.cc:72:9: note: in expansion of macro 'rep'
   72 |         rep(j, 26){
      |         ^~~
a.cc:72:13: error: 'j' does not name a type
   72 |         rep(j, 26){
      |             ^
a.cc:4:29: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll i=0;i<(n);i++)
      |                             ^
a.cc:72:13: error: 'j' does not name a type
   72 |         rep(j, 26){
      |             ^
a.cc:4:35: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll i=0;i<(n);i++)
      |                                   ^
a.cc:76:9: error: 'cout' does not name a type
   76 |         cout << contest_type+1 << endl;
      |         ^~~~
a.cc:77:5: error: expected declaration before '}' token
   77 |     }
      |     ^
a.cc:78:6: error: expected unqualified-id before '/' token
   78 |     */
      |      ^
a.cc:81:1: error: expected declaration before '}' token
   81 | }
      | ^