Submission #00239


ソースコード

ステータス

項目 データ
問題 0005 - 電線
ユーザー名 ei191931
投稿日時 2019-08-05 11:45:38
言語 C++
状態 Compile Error
得点 0
ソースコード長 587 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp:1:1: error: ‘include’ does not name a type
 include<iostream>
 ^~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_pair.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/utility:70,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:60,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:201:26: error: ‘size_t’ has not been declared
   template<typename _Tp, size_t _Nm>
                          ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:209:21: error: ‘_Nm’ was not declared in this scope
     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
                     ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:209:24: error: variable or field ‘swap’ declared void
     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
                        ^
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:209:16: error: ‘__a’ was not declared in this scope
     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
                ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:209:21: error: ‘_Nm’ was not declared in this scope
     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
                     ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:209:33: error: ‘__b’ was not declared in this scope
     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
                                 ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/move.h:209:38: error: ‘_Nm’ was not declared in this scope
     swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
                                      ^~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:65,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:116:67: error: ‘ptrdiff_t’ does not name a type
   template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
                                                                   ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:116:67: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:1:1:
+#include <cstddef>
 // Types used in iterator implementation -*- C++ -*-
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:116:67:
   template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
                                                                   ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:182:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t                   difference_type;
               ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:182:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:193:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t                   difference_type;
               ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_types.h:193:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:66,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:110:5: error: ‘ptrdiff_t’ does not name a type
     ptrdiff_t
     ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:110:5: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:66:1:
+#include <cstddef>

/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:110:5:
     ptrdiff_t
     ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:116:5: error: ‘ptrdiff_t’ does not name a type
     ptrdiff_t
     ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_iterator_base_funcs.h:116:5: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:366:10: error: ‘ptrdiff_t’ does not name a type
    const ptrdiff_t _Num = __last - __first;
          ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:366:10: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:72:1:
+#include <cstddef>

/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:366:10:
    const ptrdiff_t _Num = __last - __first;
          ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:367:8: error: ‘_Num’ was not declared in this scope
    if (_Num)
        ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:367:8: note: suggested alternative: ‘enum’
    if (_Num)
        ^~~~
        enum
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:369:22: error: ‘_Num’ was not declared in this scope
    return __result + _Num;
                      ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:369:22: note: suggested alternative: ‘enum’
    return __result + _Num;
                      ^~~~
                      enum
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:568:10: error: ‘ptrdiff_t’ does not name a type
    const ptrdiff_t _Num = __last - __first;
          ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:568:10: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:569:8: error: ‘_Num’ was not declared in this scope
    if (_Num)
        ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:569:8: note: suggested alternative: ‘enum’
    if (_Num)
        ^~~~
        enum
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:571:22: error: ‘_Num’ was not declared in this scope
    return __result - _Num;
                      ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:571:22: note: suggested alternative: ‘enum’
    return __result - _Num;
                      ^~~~
                      enum
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_byte<_Tp>::__value, void>::__type std::__fill_a(_Tp*, _Tp*, const _Tp&)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:706:11: error: expected primary-expression before ‘const’
       if (const size_t __len = __last - __first)
           ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:706:11: error: expected ‘)’ before ‘const’
       if (const size_t __len = __last - __first)
          ~^~~~~
           )
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:707:63: error: ‘__len’ was not declared in this scope
  __builtin_memset(__first, static_cast<unsigned char>(__tmp), __len);
                                                               ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In static member function ‘static bool std::__equal<true>::equal(const _Tp*, const _Tp*, const _Tp*)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:813:8: error: expected primary-expression before ‘const’
    if (const size_t __len = (__last1 - __first1))
        ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:813:8: error: expected ‘)’ before ‘const’
    if (const size_t __len = (__last1 - __first1))
       ~^~~~~
        )
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:814:65: error: ‘__len’ was not declared in this scope
      return !__builtin_memcmp(__first1, __first2, sizeof(_Tp) * __len);
                                                                 ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In static member function ‘static bool std::__lexicographical_compare<true>::__lc(const _Tp*, const _Tp*, const _Up*, const _Up*)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:917:10: error: ‘size_t’ does not name a type
    const size_t __len1 = __last1 - __first1;
          ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:917:10: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:918:10: error: ‘size_t’ does not name a type
    const size_t __len2 = __last2 - __first2;
          ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:918:10: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:919:8: error: expected primary-expression before ‘const’
    if (const size_t __len = std::min(__len1, __len2))
        ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:919:8: error: expected ‘)’ before ‘const’
    if (const size_t __len = std::min(__len1, __len2))
       ~^~~~~
        )
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:920:62: error: ‘__len’ was not declared in this scope
      if (int __result = __builtin_memcmp(__first1, __first2, __len))
                                                              ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:920:62: note: suggested alternative: ‘__lc’
      if (int __result = __builtin_memcmp(__first1, __first2, __len))
                                                              ^~~~~
                                                              __lc
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:922:11: error: ‘__len1’ was not declared in this scope
    return __len1 < __len2;
           ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:922:11: note: suggested alternative: ‘__lc’
    return __len1 < __len2;
           ^~~~~~
           __lc
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:922:20: error: ‘__len2’ was not declared in this scope
    return __len1 < __len2;
                    ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:922:20: note: suggested alternative: ‘__lc’
    return __len1 < __len2;
                    ^~~~~~
                    __lc
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:120:31: error: declaration of ‘operator new’ as non-function
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                               ^
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:120:25: error: ‘size_t’ is not a member of ‘std’
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                         ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:120:25: note: suggested alternative:
In file included from /usr/include/stdlib.h:33,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdlib:75,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:122:33: error: declaration of ‘operator new []’ as non-function
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                                 ^
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:122:27: error: ‘size_t’ is not a member of ‘std’
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                           ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:122:27: note: suggested alternative:
In file included from /usr/include/stdlib.h:33,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdlib:75,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:134:25: error: declaration of ‘operator new’ as non-function
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                         ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:134:25: error: ‘size_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:134:25: note: suggested alternative:
In file included from /usr/include/stdlib.h:33,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdlib:75,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:134:33: error: expected primary-expression before ‘const’
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                 ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:136:27: error: declaration of ‘operator new []’ as non-function
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                           ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:136:27: error: ‘size_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:136:27: note: suggested alternative:
In file included from /usr/include/stdlib.h:33,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdlib:75,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:136:35: error: expected primary-expression before ‘const’
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                   ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:168:32: error: declaration of ‘operator new’ as non-function
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:168:32: error: ‘size_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:168:32: note: suggested alternative:
In file included from /usr/include/stdlib.h:33,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdlib:75,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:168:40: error: expected primary-expression before ‘void’
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                        ^~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:170:34: error: declaration of ‘operator new []’ as non-function
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                  ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:170:34: error: ‘size_t’ is not a member of ‘std’
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:170:34: note: suggested alternative:
In file included from /usr/include/stdlib.h:33,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cstdlib:75,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/stddef.h:216:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:59,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/new:170:42: error: expected primary-expression before ‘void’
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                          ^~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/allocator.h:46,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ext/alloc_traits.h:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:61,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h:44:14: error: ‘std::size_t’ has not been declared
   using std::size_t;
              ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h:45:14: error: ‘std::ptrdiff_t’ has not been declared
   using std::ptrdiff_t;
              ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h:62:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t  difference_type;
               ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h:62:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h:1:1:
+#include <cstddef>
 // Allocator that wraps operator new -*- C++ -*-
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h:62:15:
       typedef ptrdiff_t  difference_type;
               ^~~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/ext/alloc_traits.h:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_construct.h:61,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:60,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/allocator.h:72:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t   difference_type;
               ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/allocator.h:72:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/allocator.h:48:1:
+#include <cstddef>
 #if __cplusplus >= 201103L
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/allocator.h:72:15:
       typedef ptrdiff_t   difference_type;
               ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/allocator.h:112:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t  difference_type;
               ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/allocator.h:112:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algo.h:62,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:62,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:84:16: error: ‘ptrdiff_t’ was not declared in this scope
     pair<_Tp*, ptrdiff_t>
                ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:84:16: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:61:1:
+#include <cstddef>

/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:84:16:
     pair<_Tp*, ptrdiff_t>
                ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:84:25: error: template argument 2 is invalid
     pair<_Tp*, ptrdiff_t>
                         ^
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:85:26: error: ‘ptrdiff_t’ was not declared in this scope
     get_temporary_buffer(ptrdiff_t __len) _GLIBCXX_NOEXCEPT
                          ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:85:26: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:85:42: error: expected ‘;’ before ‘{’ token
     get_temporary_buffer(ptrdiff_t __len) _GLIBCXX_NOEXCEPT
                                          ^
                                          ;
     {
     ~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:131:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t   size_type;
               ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:131:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:134:7: error: ‘size_type’ does not name a type; did you mean ‘size_t’?
       size_type  _M_original_len;
       ^~~~~~~~~
       size_t
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:135:7: error: ‘size_type’ does not name a type; did you mean ‘size_t’?
       size_type  _M_len;
       ^~~~~~~~~
       size_t
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:140:7: error: ‘size_type’ does not name a type; did you mean ‘size_t’?
       size_type
       ^~~~~~~~~
       size_t
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:145:7: error: ‘size_type’ does not name a type; did you mean ‘size_t’?
       size_type
       ^~~~~~~~~
       size_t
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h: In member function ‘std::_Temporary_buffer<_ForwardIterator, _Tp>::value_type* std::_Temporary_buffer<_ForwardIterator, _Tp>::end()’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:157:28: error: ‘_M_len’ was not declared in this scope
       { return _M_buffer + _M_len; }
                            ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:157:28: note: suggested alternative: ‘__lg’
       { return _M_buffer + _M_len; }
                            ^~~~~~
                            __lg
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h: In destructor ‘std::_Temporary_buffer<_ForwardIterator, _Tp>::~_Temporary_buffer()’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:167:39: error: ‘_M_len’ was not declared in this scope
  std::_Destroy(_M_buffer, _M_buffer + _M_len);
                                       ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:167:39: note: suggested alternative: ‘__lg’
  std::_Destroy(_M_buffer, _M_buffer + _M_len);
                                       ^~~~~~
                                       __lg
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h: In constructor ‘std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, _ForwardIterator)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:245:7: error: class ‘std::_Temporary_buffer<_ForwardIterator, _Tp>’ does not have any field named ‘_M_original_len’
     : _M_original_len(std::distance(__first, __last)),
       ^~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:246:7: error: class ‘std::_Temporary_buffer<_ForwardIterator, _Tp>’ does not have any field named ‘_M_len’
       _M_len(0), _M_buffer(0)
       ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:250:23: error: ‘size_type’ was not declared in this scope
    std::pair<pointer, size_type> __p(std::get_temporary_buffer<
                       ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:250:23: note: suggested alternative: ‘size_t’
    std::pair<pointer, size_type> __p(std::get_temporary_buffer<
                       ^~~~~~~~~
                       size_t
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:250:32: error: template argument 2 is invalid
    std::pair<pointer, size_type> __p(std::get_temporary_buffer<
                                ^
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:251:22: error: ‘_M_original_len’ was not declared in this scope
          value_type>(_M_original_len));
                      ^~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:252:20: error: request for member ‘first’ in ‘__p’, which is of non-class type ‘int’
    _M_buffer = __p.first;
                    ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:253:4: error: ‘_M_len’ was not declared in this scope
    _M_len = __p.second;
    ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:253:4: note: suggested alternative: ‘__lg’
    _M_len = __p.second;
    ^~~~~~
    __lg
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:253:17: error: request for member ‘second’ in ‘__p’, which is of non-class type ‘int’
    _M_len = __p.second;
                 ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:262:4: error: ‘_M_len’ was not declared in this scope
    _M_len = 0;
    ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_tempbuf.h:262:4: note: suggested alternative: ‘__lg’
    _M_len = 0;
    ^~~~~~
    __lg
./Main.cpp: In function ‘int main()’:
./Main.cpp:6:3: error: ‘cin’ was not declared in this scope
   cin>>a>>b;
   ^~~
./Main.cpp:6:3: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:3:1:
+#include <iostream>
 using namespace std;
./Main.cpp:6:3:
   cin>>a>>b;
   ^~~
./Main.cpp:44:3: error: ‘cout’ was not declared in this scope
   cout<<n<<"\n";
   ^~~~
./Main.cpp:44:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #