Language: C++

#include<iostream>
using namespace std;
#define unsigned lli long long int
#include<bits/stdc++.h>
int main(){
  lli n,r,f,k;
  cin>>k;
  n=k+1;
  
  while(1){
    int b=1;
    if(n==1)
      b=0;
    else if(n<4)
      b=1;
    else if(n%2==0)
      b=0;
    else if(n<9)
      b=1;
    else if(n%3==0)
      b=0;
    else{
      r=sqrt(n);
      f=5;
      while(f<=r){
        if(n%f==0){
          b=0;
          break;
        }
        if(n%(f+2)==0){
          b=0;
          break;
        }
        f=f+6;
      }
    }
    
    if(b==1){
      cout<<n<<"\n";
      break;
    }
    n++;
  }
  return 0;
}

Compiler output:
a.cc:3:18: error: 'lli' has not been declared
    3 | #define unsigned lli long long int
      |                  ^~~
a.cc:3:18: error: two or more data types in declaration of '__line'
In file included from /usr/include/c++/14/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:4:
/usr/include/assert.h:70:47: error: expected ')' before ',' token
   70 |                            unsigned int __line, const char *__function)
      |                                               ^
      |                                               )
/usr/include/assert.h:69:27: note: to match this '('
   69 | extern void __assert_fail (const char *__assertion, const char *__file,
      |                           ^
/usr/include/assert.h:70:49: error: expected unqualified-id before 'const'
   70 |                            unsigned int __line, const char *__function)
      |                                                 ^~~~~
a.cc:3:18: error: 'lli' has not been declared
    3 | #define unsigned lli long long int
      |                  ^~~
a.cc:3:18: error: two or more data types in declaration of '__line'
/usr/include/assert.h:75:54: error: expected ')' before ',' token
   75 |                                   unsigned int __line, const char *__function)
      |                                                      ^
      |                                                      )
/usr/include/assert.h:74:34: note: to match this '('
   74 | extern void __assert_perror_fail (int __errnum, const char *__file,
      |                                  ^
/usr/include/assert.h:75:56: error: expected unqualified-id before 'const'
   75 |                                   unsigned int __line, const char *__function)
      |                                                        ^~~~~
a.cc:3:18: error: 'lli' does not name a type
    3 | #define unsigned lli long long int
      |                  ^~~
a.cc:3:18: error: 'lli' does not name a type
    3 | #define unsigned lli long long int
      |                  ^~~
a.cc:3:18: error: 'lli' does not name a type
    3 | #define unsigned lli long long int
      |                  ^~~
a.cc:3:18: error: 'lli' does not name a type
    3 | #define unsigned lli long long int
      |                  ^~~
a.cc:3:18: error: 'lli' does not name a type
    3 | #define unsigned lli long long int
      |                  ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:45:
/usr/include/c++/14/cstdint:74:11: error: 'uint_fast8_t' has not been declared in '::'
   74 |   using ::uint_fast8_t;
      |           ^~~~~~~~~~~~
/usr/include/c++/14/cstdint:75:11: error: 'uint_fast16_t' has not been declared in '::'
   75 |   using ::uint_fast16_t;
      |           ^~~~~~~~~~~~~
/usr/include/c++/14/cstdint:76:11: error: 'uint_fast32_t' has not been declared in '::'
   76 |   using ::uint_fast32_t;
      |           ^~~~~~~~~~~~~
/usr/include/c++/14/cstdint:77:11: error: 'uint_fast64_t' has not been declared in '::'
   77 |   using ::uint_fast64_t;
      |           ^~~~~~~~~~~~~
/usr/include/c++/14/cstdint:85:11: error: 'uintptr_t' has not been declared in '::'
   85 |   using ::uintptr_t;
      |           ^~~~~~~~~
/usr/include/c++/14/bits/uniform_int_dist.h: In member function 'std::uniform_int_distribution<_IntType>::result_type std::uniform_int_distribution<_IntType>::operator()(_UniformRandomBitGenerator&, const param_type&)':
a.cc:3:22: error: expected initializer before 'long'
    3 | #define unsigned lli long long int
      |                      ^~~~
a.cc:3:18: error: 'lli' was not declared in this scope; did you mean 'lldiv'?
    3 | #define unsigned lli long long int
      |                  ^~~
In file included from /usr/include/c++/14/bits/stl_algo.h:65,
                 from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/uniform_int_dist.h:318:39: error: parse error in template argument list
  318 |                 __ret = __extension__ _S_nd<unsigned __int128>(__urng,
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/uniform_int_dist.h:319:64: error: '__u64erange' was not declared in this scope; did you mean '__uerange'?
  319 |                                                                __u64erange);
      |                                                                ^~~~~~~~~~~
      |                                                                __uerange
a.cc:3:18: error: 'lli' was not declared in this scope; did you mean 'lldiv'?
    3 | #define unsigned lli long long int
      |                  ^~~
/usr/include/c++/14/bits/uniform_int_dist.h:328:25: error: parse error in template argument list
  328 |                 __ret = _S_nd<__UINT64_TYPE__>(__urng, __u32erange);
      |                         ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/uniform_int_dist.h:328:56: error: '__u32erange' was not declared in this scope; did you mean '__uerange'?
  328 |                 __ret = _S_nd<__UINT64_TYPE__>(__urng, __u32erange);
      |                                                        ^~~~~~~~~~~
      |                                                        __uerange
/usr/include/c++/14/bitset: At global scope:
a.cc:3:18: error: 'lli' does not name a type
    3 | #define unsigned lli long long int
      |                  ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bitset:87:7: error: '_WordT' does not name a type
   87 |       _WordT            _M_w[_Nw];
      |       ^~~~~~
a.cc:3:22: error: expected ')' before 'long'
    3 | #define unsigned lli long long int
      |                      ^~~~
/usr/include/c++/14/bitset:93:29: note: to match this '('
   93 |       constexpr _Base_bitset(unsigned long long __val) noexcept
      |                             ^
/usr/include/c++/14/bitset:98:10: error: expected unqualified-id before '{' token
   98 |        } { }
      |          ^
/usr/include/c++/14/bitset:117:33: error: '_WordT' does not name a type
  117 |       static _GLIBCXX_CONSTEXPR _WordT
      |                                 ^~~~~~
/usr/include/c++/14/bitset:121:28: error: '_WordT' does not name a type
  121 |       _GLIBCXX14_CONSTEXPR _WordT&
      |                            ^~~~~~
/usr/include/c++/14/bitset:125:26: error: '_WordT' does not name a type
  125 |       _GLIBCXX_CONSTEXPR _WordT
      |                          ^~~~~~
/usr/include/c++/14/bitset:130:23: error: '_WordT' does not name a type
  130 |       constexpr const _WordT*
      |                       ^~~~~~
/usr/include/c++/14/bitset:135:28: error: '_WordT' does not name a type
  135 |       _GLIBCXX23_CONSTEXPR _WordT&
      |                            ^~~~~~
/usr/include/c++/14/bitset:139:26: error: '_WordT' does not name a type
  139 |       _GLIBCXX_CONSTEXPR _WordT
      |                          ^~~~~~
a.cc:3:18: error: 'lli' does not name a type
    3 | #define unsigned lli long long int
      |                  ^~~
a.cc:3:18: error: 'lli' does not name a type
    3 | #define unsigned lli long long int
      |                  ^~~
/usr/include/c++/14/bitset: In constructor 'constexpr std::_Base_bitset<_Nw>::_Base_bitset()':
/usr/include/c++/14/bitset:90:9: error: class 'std::_Base_bitset<_Nw>' does not have any field named '_M_w'
   90 |       : _M_w() { }
      |         ^~~~
/usr/include/c++/14/bitset: In member function 'void std::_Base_bitset<_Nw>::_M_do_and(const std::_Base_bitset<_Nw>&)':
/usr/include/c++/14/bitset:147:11: error: '_M_w' was not declared in this scope
  147 |           _M_w[__i] &= __x._M_w[__i];
      |           ^~~~
/usr/include/c++/14/bitset: In member function 'constexpr void std::_Base_bitset<_Nw>::_M_do_or(const std::_Base_bitset<_Nw>&)':
/usr/include/c++/14/bitset:154:11: error: '_M_w' was not declared in this scope
  154 |           _M_w[__i] |= __x._M_w[__i];
      |           ^~~~
/usr/include/c++/14/bitset: In member function 'constexpr void std::_Base_bitset<_Nw>::_M_do_xor(const std::_Base_bitset<_Nw>&)':
/usr/include/c++/14/bitset:161:11: error: '_M_w' was not declared in this scope
  161 |           _M_w[__i] ^= __x._M_w[__i];
      |           ^~~~
/usr/include/c++/14/bitset: In member function 'constexpr void std::_Base_bitset<_Nw>::_M_do_flip()':
/usr/include/c++/14/bitset:174:11: error: '_M_w' was not declared in this scope
  174 |           _M_w[__i] = ~_M_w[__i];
      |           ^~~~
/usr/include/c++/14/bitset: In member function 'constexpr void std::_Base_bitset<_Nw>::_M_do_set()':
/usr/include/c++/14/bitset:183:18: error: '_WordT' was not declared in this scope
  183 |             for (_WordT& __w : _M_w)
      |                  ^~~~~~
/usr/include/c++/14/bitset:183:30: error: found ':' in nested-name-specifier, expected '::'
  183 |             for (_WordT& __w : _M_w)
      |                              ^
      |                              ::
/usr/include/c++/14/bitset:183:26: error: '__w' has not been declared
  183 |             for (_WordT& __w : _M_w)
      |                          ^~~
/usr/include/c++/14/bitset:185:13: error: expected primary-expression before 'return'
  185 |             return;
      |             ^~~~~~
/usr/include/c++/14/bitset:185:13: error: expected ')' before 'return'
/usr/include/c++/14/bitset:183:17: note: to match this '('
  183 |             for (_WordT& __w : _M_w)
      |                 ^
/usr/include/c++/14/bitset:188:26: error: '_M_w' was not declared in this scope
  188 |         __builtin_memset(_M_w, 0xFF, _Nw * sizeof(_WordT));
      |                          ^~~~
/usr/include/c++/14/bitset:188:51: error: '_WordT' was not declared in this scope
  188 |         __builtin_memset(_M_w, 0xFF, _Nw * sizeof(_WordT));
      |                                                   ^~~~~~
/usr/include/c++/14/bitset: In member function 'constexpr void std::_Base_bitset<_Nw>::_M_do_reset()':
/usr/include/c++/14/bitset:197:18: error: '_WordT' was not declared in this scope
  197 |             for (_WordT& __w : _M_w)
      |                  ^~~~~~
/usr/i