Language: C++

#include <bits/stdc++.h>                                                                                                                                                                                                                        #define REP(i ,n) for(int i=0 ;i < n; i++)                                                                              #define REPB(i ,n) for(int i=n; i >= 0; i--)                                                                            #define FOR(i ,m ,n) for(int i=m; i < n; i++)                                                                           #define FORB(i, m, n) for(int i=m; i>= m; i--)                                                                          #define ll long long                                                                                                    #define pb push_back                                                                                                    #define popb pop_back                                                                                                   using namespace std;                                                                                                                                                                                                                            int main(){                                                                                                               int n;                                                                                                                  vector<int> p;                                                                                                          cin >> n;                                                                                                               int a;                                                                                                                  int ans = 0;                                                                                                            REP(k, n){                                                                                                                  cin >> a;                                                                                                               p.pb(a);                                                                                                              }                                                                                                                       sort(p.begin(), p.end());                                                                                               p.back() /= 2;                                                                                                          REP(i, p.size()){                                                                                                           ans += p[i];                                                                                                          }                                                                                                                       cout << ans << endl;                                                                                                    return 0;                                                                                                         } 

Compiler output:
a.cc:1:241: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>                                                                                                                                                                                                                        #define REP(i ,n) for(int i=0 ;i < n; i++)                                                                              #define REPB(i ,n) for(int i=n; i >= 0; i--)                                                                            #define FOR(i ,m ,n) for(int i=m; i < n; i++)                                                                           #define FORB(i, m, n) for(int i=m; i>= m; i--)                                                                          #define ll long long                                                                                                    #define pb push_back                                                                                                    #define popb pop_back                                                                                                   using namespace std;                                                                                                                                                                                                                            int main(){                                                                                                               int n;                                                                                                                  vector<int> p;                                                                                                          cin >> n;                                                                                                               int a;                                                                                                                  int ans = 0;                                                                                                            REP(k, n){                                                                                                                  cin >> a;                                                                                                               p.pb(a);                                                                                                              }                                                                                                                       sort(p.begin(), p.end());                                                                                               p.back() /= 2;                                                                                                          REP(i, p.size()){                                                                                                           ans += p[i];                                                                                                          }                                                                                                                       cout << ans << endl;                                                                                                    return 0;                                                                                                         }
      |                                                                                                                                                                                                                                                 ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status