Language: C++

#ifndef COMPETITIVE_HEADER
    #pragma GCC optimize ("Ofast")
    #ifdef ONLINE_JUDGE
        #pragma GCC target ("avx512f")
    #else
        #pragma GCC target ("avx")
    #endif
    //----------------------------
    #include <bits/stdc++.h>
    using namespace std;

    typedef long long ll;
    typedef unsigned long long ull;

    #define FOR(i,j,n) for (int i=(int)(j);i<(n);i++)
    #define REP(i,n) for (int i=0;i<(int)(n);i++)
    #define REPS(i,n) for (int i=1;i<=(int)(n);i++)
    #define REPN(i,n) for (int i=(int)(n)-1;i>=0;i--)
    #define REPNS(i,n) for (int i=(int)(n);i>0;i--)

    #define I(n) scanf("%d", &(n))
    #define LL(n) scanf("%lld", &(n))
    #define pb(n) push_back((n))
    #define mp(i,j) make_pair((i),(j))
    #define eb(i,j) emplace_back((i),(j))
    #define y0 y3487465
    #define y1 y8687969
    #define j0 j1347829
    #define j1 j234892
    #define uniq(v) v.erase( unique(v.begin(), v.end()), v.end() )

    #define all(x) (x).begin(),(x).end()
    #define sz(x) ((int)(x).size())

    typedef vector<int> vi;
    typedef pair<int,int> pi;
    typedef vector<pi> vpi;
    typedef vector<vi> vvi;
    typedef vector<vpi> vvpi;
    typedef vector<vvi> vvvi;

    const int mod = 1000000007;
#endif

inline unsigned long long rdtsc()
{
#ifdef __amd64
  unsigned long long a, d;
  __asm__ volatile ("rdtsc" : "=a" (a), "=d" (d));
  return (d << 32) | a;
#else
  unsigned long long x;
  __asm__ volatile ("rdtsc" : "=A" (x));
  return x;
#endif
}

inline double gettime(){return rdtsc()/2993344000.0;}
inline double elapsed(double st){return gettime()-st;}
uint32_t xor128() { 
    static uint64_t x = 88172645463325252ULL;
    x = x ^ (x << 13); x = x ^ (x >> 7);
    return x = x ^ (x << 17);
}


const int D = 365;
int c[26], s[365][26], t[365];
int lst[26];
int satisfy;

void input(){
    I(c[0]);
    REP(i,26) I(c[i]);
    REP(i,365) REP(j,26) I(s[i][j]);
}

void exec(){
    double st = gettime();



    while(gettime(st) < 1.95){
        REP(_,50){
            double prob;
            bool do_exch = prob * UINT32_MAX > xor128();
            if(do_exch){

            }
        }
    }
    
}

void judge(){
    input();
    exec();


}

void test(){
    REP(i,26) c[i] = xor128() % 101;
    REP(i,365) REP(j,26) s[i][j] = xor128() % 20001;
    exec();


}

int score(){
    satisfy = 0;
    REP(i,26) lst[i] = 0;
    REP(i,365){
        lst[t[i]] = i+1;
        satisfy += s[i][t[i]];
        REP(j,26) satisfy -= c[i] * (i - lst[i] + 1)
    }
    return satisfy;
}

int main(){
    // #ifdef ONLINE_JUDGE
    //     judge();
    // #else 
    //     test();
    // #endif
    input();
    REP(i,365) I(t[i]);
    cout << score << endl;
}

Compiler output:
a.cc: In function 'void exec()':
a.cc:83:18: error: too many arguments to function 'double gettime()'
   83 |     while(gettime(st) < 1.95){
      |           ~~~~~~~^~~~
a.cc:58:15: note: declared here
   58 | inline double gettime(){return rdtsc()/2993344000.0;}
      |               ^~~~~~~
a.cc: In function 'int score()':
a.cc:116:53: error: expected ';' before '}' token
  116 |         REP(j,26) satisfy -= c[i] * (i - lst[i] + 1)
      |                                                     ^
      |                                                     ;
  117 |     }
      |     ~