Language: C++

#include <cstdio>
#define int unsigned long long
#include <vector>

int MAX;
//std::vector<bool> sosuu[1000000000];
bool sosuu[1000000000];
int n;

//?????°?????°?????¢??°
void erase(int foo)
{
//    static int a=1;
//    a++;
//    printf("%llu ", foo);
//    if (a == 10) { a = 0; printf("\n"); }
    for (int i = foo*foo; i <= MAX; i+=foo*2)
    {
        sosuu[i] = false;
    }
}

signed main()
{
    int n;
    scanf("%llu",&n);
    printf("%llu:",n);
    
    MAX=n;
    
    //?????????true??§?????????
    for (int i = 0; i <= MAX; i++)
    {
        if (i % 2)sosuu[i] = true;
        else	  sosuu[i] = false;
    }
    sosuu[2]=true;
    
    //MAX?????§?????????????????????
    for (int p = 2; p <= MAX; p++)
    {
     
        if (sosuu[p])
        {
            while(n%p==0)
            {
                printf(" %llu",p);
                n=n/p;
            }
            erase(p);
            if(n==0){break;}
        }
    }
    printf("\n");
}

Compiler output:
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:61,
                 from /usr/include/c++/14/vector:62,
                 from a.cc:3:
/usr/include/c++/14/bits/cpp_type_traits.h:222:12: error: redefinition of 'struct std::__is_integer<long long unsigned int>'
  222 |     struct __is_integer<unsigned int>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/cpp_type_traits.h:215:12: note: previous definition of 'struct std::__is_integer<long long unsigned int>'
  215 |     struct __is_integer<int>
      |            ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/cpp_type_traits.h:250:12: error: redefinition of 'struct std::__is_integer<long long unsigned int>'
  250 |     struct __is_integer<unsigned long long>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/cpp_type_traits.h:215:12: note: previous definition of 'struct std::__is_integer<long long unsigned int>'
  215 |     struct __is_integer<int>
      |            ^~~~~~~~~~~~~~~~~
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:62:
/usr/include/c++/14/ext/type_traits.h:138:12: error: redefinition of 'struct __gnu_cxx::__remove_unsigned<long long unsigned int>'
  138 |     struct __remove_unsigned<unsigned long long>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ext/type_traits.h:130:12: note: previous definition of 'struct __gnu_cxx::__remove_unsigned<long long unsigned int>'
  130 |     struct __remove_unsigned<unsigned int>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
                 from /usr/include/c++/14/bits/stl_algobase.h:64:
/usr/include/c++/14/type_traits:392:12: error: redefinition of 'struct std::__is_integral_helper<long long unsigned int>'
  392 |     struct __is_integral_helper<unsigned int>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/type_traits:388:12: note: previous definition of 'struct std::__is_integral_helper<long long unsigned int>'
  388 |     struct __is_integral_helper<int>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/type_traits:408:12: error: redefinition of 'struct std::__is_integral_helper<long long unsigned int>'
  408 |     struct __is_integral_helper<unsigned long long>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/type_traits:388:12: note: previous definition of 'struct std::__is_integral_helper<long long unsigned int>'
  388 |     struct __is_integral_helper<int>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/type_traits:790:38: error: 'signed' and 'unsigned' specified together
  790 |           signed char, signed short, signed int, signed long,
      |                                      ^~~~~~
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
/usr/include/c++/14/type_traits:1605:43: error: no matching function for call to 'declval<void*>()'
 1605 |         noexcept(::new(std::declval<void*>()) _Tp(std::declval<_Args>()...))
      |                        ~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/14/type_traits:973:10: note: candidate: 'template<class _Tp> decltype (__declval<_Tp>(0)) std::declval()'
  973 |     auto declval() noexcept -> decltype(__declval<_Tp>(0));
      |          ^~~~~~~
/usr/include/c++/14/type_traits:973:10: note:   template argument deduction/substitution failed:
/usr/include/c++/14/type_traits: In substitution of 'template<class _Tp> decltype (__declval<_Tp>(0)) std::declval() [with _Tp = void*]':
/usr/include/c++/14/type_traits:1605:36:   required from here
 1605 |         noexcept(::new(std::declval<void*>()) _Tp(std::declval<_Args>()...))
      |                        ~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/14/type_traits:973:55: error: call of overloaded '__declval<void*>(int)' is ambiguous
  973 |     auto declval() noexcept -> decltype(__declval<_Tp>(0));
      |                                         ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/type_traits:965:5: note: candidate: '_Up std::__declval(long long unsigned int) [with _Tp = void*; _Up = void*&&]'
  965 |     __declval(int);
      |     ^~~~~~~~~
/usr/include/c++/14/type_traits:969:5: note: candidate: '_Tp std::__declval(long int) [with _Tp = void*]'
  969 |     __declval(long);
      |     ^~~~~~~~~
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
/usr/include/c++/14/type_traits:1958:22: error: 'signed' and 'unsigned' specified together
 1958 |     { using __type = signed int; };
      |                      ^~~~~~
/usr/include/c++/14/type_traits:1965:12: error: redefinition of 'struct std::__make_signed<long long unsigned int>'
 1965 |     struct __make_signed<unsigned long long>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/type_traits:1957:12: note: previous definition of 'struct std::__make_signed<long long unsigned int>'
 1957 |     struct __make_signed<unsigned int>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:63:
/usr/include/c++/14/ext/numeric_traits.h: In instantiation of 'struct __gnu_cxx::__numeric_traits_integer<unsigned int>':
/usr/include/c++/14/bit:211:52:   required from here
  211 |       constexpr auto _Nd_u = __int_traits<unsigned>::__digits;
      |                                                    ^~
/usr/include/c++/14/ext/numeric_traits.h:64:53: error: static assertion failed: invalid specialization
   64 |       static_assert(__is_integer_nonstrict<_Value>::__value,
      |                                                     ^~~~~~~
/usr/include/c++/14/ext/numeric_traits.h:64:53: note: 'std::__is_integer<unsigned int>::__value' evaluates to false
/usr/include/c++/14/bits/stl_algobase.h:1046:3: error: redefinition of 'constexpr long long unsigned int std::__size_to_integer(long long unsigned int)'
 1046 |   __size_to_integer(unsigned long long __n) { return __n; }
      |   ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:1036:3: note: 'constexpr long long unsigned int std::__size_to_integer(long long unsigned int)' previously defined here
 1036 |   __size_to_integer(int __n) { return __n; }
      |   ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In static member function 'static long long unsigned int std::__lexicographical_compare<_BoolType>::__3way(_II1, _II1, _II2, _II2)':
a.cc:2:13: error: expected primary-expression before 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
a.cc:2:13: error: expected ';' before 'unsigned'
a.cc:2:13: error: expected primary-expression before 'unsigned'
In file included from /usr/include/c++/14/bits/stl_bvector.h:65,
                 from /usr/include/c++/14/vector:67:
/usr/include/c++/14/bits/functional_hash.h: At global scope:
a.cc:2:13: error: duplicate 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
/usr/include/c++/14/bits/functional_hash.h:166:3: error: redefinition of 'struct std::hash<long long unsigned int>'
  166 |   _Cxx_hashtable_define_trivial_hash(unsigned int)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/functional_hash.h:154:3: note: previous definition of 'struct std::hash<long long unsigned int>'
  154 |   _Cxx_hashtable_define_trivial_hash(int)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/functional_hash.h:172:3: error: redefinition of 'struct std::hash<long long unsigned int>'
  172 |   _Cxx_hashtable_define_trivial_hash(unsigned long long)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/functional_hash.h:154:3: note: previous definition of 'struct std::hash<long long unsigned int>'
  154 |   _Cxx_hashtable_define_trivial_hash(int)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:2:13: error: expected primary-expression before 'unsigned'
    2 | #define int unsigned long long
      |             ^~~~~~~~
a.cc:2:13: error: expected '}' before 'unsigned'
/usr/include/c++/14/bits/stl_bvector.h:73:8: note: to match this '{'
   73 |   enum { _S_word_bit = int(__CHAR_BIT__ * sizeof(_Bit_type)) };
      |        ^
/usr/include/c++/14/bits/stl_bvector.h:73:28: error: expected unqualified-id before numeric constant
   73 |   enum { _S_word_bit = int(__CHAR_BIT__ * sizeof(_Bit_type)) };
      |                            ^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:73:28: error: expected ')' before numeric constant
   73 |   enum { _S_word_bit = int(__CHAR_BIT__ * sizeof(_Bit_type)) };
      |                           ~^
      |                            )
/usr/include/c++/14/bits/stl_bvector.h:78:3: error: variable or field '__fill_bvector_n' declared void
   78 |   __fill_bvector_n(_Bit_type*, size_t, bool) _GLIBCXX_NOEXCEPT;
      |   ^~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:78:20: error: '_Bit_type' was not declared in this scope; did you mean 'std::_Bit_type'?
   78 |   __fill_bvector_n(_Bit_type*, size_t, bool) _GLIBCXX_NOEXCEPT;
      |                    ^~~~~~~~~
      |                    std::_Bit_type
/usr/include/c++/14/bits/stl_bvector.h:72:25: note: 'std::_Bit_type' declared here
   72 |   typedef unsigned long _Bit_type;
      |                         ^~~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:78:30: error: expected primary-expression before ',' token
   78 |   __fill_bvector_n(_Bit_type*, size_t, bool) _GLIBCXX_NOEXCEPT;
      |                              ^
/usr/include/c++/14/bits/stl_bvector.h:78:38: