Language: C++

#include <iostream>
#include <math.h>
#include <numeric>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <queue>
#include <queue>
#include <stack> 
#include <sstream>
#include <set>

typedef  long long ll;
const int dx[8]={1,0,-1,0,1,-1,-1,1};
const int dy[8]={0,1,0,-1,1,1,-1,-1};
const int dr[4] = {-1, 0, 1, 0};
const int dc[4] = { 0, 1, 0,-1};
const int INF = 1e9;
#define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define SORT(a) sort(a.begin(),a.end())
#define REVERSE(a) reverse(a.begin(),a.end())
int guki (int a){
    if(a%2==0) return 0;
    else return 1;
}
int gcd(int a, int b){
    if(a%b==0){
        return b;
    }else{
        return (gcd(b,a%b));
    }
}
int lcm(int a, int b){
    int x = gcd(a,b);
    return (a*b/x);
}
using namespace std;
int main(){
    ll n,a,b,c,d,e;
    cin >> n >> a >> b >> c >> d >> e;
    cout << max({n-1}/a, {n-1}/b, {n-1}/c, {n-1}/d, {n-1}/e) + 5 <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:22: error: expected ')' before '/' token
   43 |     cout << max({n-1}/a, {n-1}/b, {n-1}/c, {n-1}/d, {n-1}/e) + 5 <<endl;
      |                ~     ^
      |                      )
a.cc:43:31: error: expected ')' before '/' token
   43 |     cout << max({n-1}/a, {n-1}/b, {n-1}/c, {n-1}/d, {n-1}/e) + 5 <<endl;
      |                ~              ^
      |                               )
a.cc:43:40: error: expected ')' before '/' token
   43 |     cout << max({n-1}/a, {n-1}/b, {n-1}/c, {n-1}/d, {n-1}/e) + 5 <<endl;
      |                ~                       ^
      |                                        )
a.cc:43:49: error: expected ')' before '/' token
   43 |     cout << max({n-1}/a, {n-1}/b, {n-1}/c, {n-1}/d, {n-1}/e) + 5 <<endl;
      |                ~                                ^
      |                                                 )
a.cc:43:58: error: expected ')' before '/' token
   43 |     cout << max({n-1}/a, {n-1}/b, {n-1}/c, {n-1}/d, {n-1}/e) + 5 <<endl;
      |                ~                                         ^
      |                                                          )
a.cc:43:16: error: no matching function for call to 'max(<brace-enclosed initializer list>, <brace-enclosed initializer list>, <brace-enclosed initializer list>, <brace-enclosed initializer list>, <brace-enclosed initializer list>)'
   43 |     cout << max({n-1}/a, {n-1}/b, {n-1}/c, {n-1}/d, {n-1}/e) + 5 <<endl;
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 5 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 5 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:6:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 5 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 5 provided