Submission #00101


ソースコード

ステータス

項目 データ
問題 0001 - 改元
ユーザー名 ei1829
投稿日時 2019-03-29 13:46:10
言語 C++
状態 Compile Error
得点 0
ソースコード長 519 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/bits/stl_algobase.h:64,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/bits/char_traits.h:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/bits/char_traits.h:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/bits/char_traits.h:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:98:11: error: ‘ptrdiff_t’ does not name a type
   typedef ptrdiff_t streamsize; // Signed integral type
           ^~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:98:11: 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/postypes.h:41:1:
+#include <cstddef>

/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:98:11:
   typedef ptrdiff_t streamsize; // Signed integral type
           ^~~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:108:66: error: ‘std::size_t’ has not been declared
       compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
                                                                  ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:110:40: error: ‘size_t’ in namespace ‘std’ does not name a type
       static _GLIBCXX14_CONSTEXPR std::size_t
                                        ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:114:39: error: ‘std::size_t’ has not been declared
       find(const char_type* __s, std::size_t __n, const char_type& __a);
                                       ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:117:57: error: ‘std::size_t’ has not been declared
       move(char_type* __s1, const char_type* __s2, std::size_t __n);
                                                         ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:120:57: error: ‘std::size_t’ has not been declared
       copy(char_type* __s1, const char_type* __s2, std::size_t __n);
                                                         ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:123:35: error: ‘std::size_t’ has not been declared
       assign(char_type* __s, std::size_t __n, char_type __a);
                                   ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:149:64: error: ‘std::size_t’ has not been declared
     compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h: In static member function ‘static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:151:17: error: ‘size_t’ is not a member of ‘std’
       for (std::size_t __i = 0; __i < __n; ++__i)
                 ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:151:17: note: suggested alternative:
In file included from /usr/include/wchar.h:52,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cwchar:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/string:40,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:151:33: error: ‘__i’ was not declared in this scope
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:151:33: note: suggested alternative: ‘__n’
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^~~
                                 __n
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:160:31: error: ‘size_t’ in namespace ‘std’ does not name a type
     _GLIBCXX14_CONSTEXPR std::size_t
                               ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:173:37: error: ‘std::size_t’ has not been declared
     find(const char_type* __s, std::size_t __n, const char_type& __a)
                                     ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h: In static member function ‘static const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:175:17: error: ‘size_t’ is not a member of ‘std’
       for (std::size_t __i = 0; __i < __n; ++__i)
                 ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:175:17: note: suggested alternative:
In file included from /usr/include/wchar.h:52,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cwchar:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/string:40,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:175:33: error: ‘__i’ was not declared in this scope
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:175:33: note: suggested alternative: ‘__s’
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^~~
                                 __s
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:184:55: error: ‘std::size_t’ has not been declared
     move(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                       ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:193:55: error: ‘std::size_t’ has not been declared
     copy(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                       ^~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:203:33: error: ‘std::size_t’ has not been declared
     assign(char_type* __s, std::size_t __n, char_type __a)
                                 ^~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/ext/new_allocator.h:33,
                 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/string:41,
                 from ./Main.cpp:2:
/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/wchar.h:52,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cwchar:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/ext/new_allocator.h:33,
                 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/string:41,
                 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/wchar.h:52,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cwchar:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/ext/new_allocator.h:33,
                 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/string:41,
                 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/wchar.h:52,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cwchar:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/ext/new_allocator.h:33,
                 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/string:41,
                 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/wchar.h:52,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cwchar:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/ext/new_allocator.h:33,
                 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/string:41,
                 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/wchar.h:52,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cwchar:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/ext/new_allocator.h:33,
                 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/string:41,
                 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/wchar.h:52,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/cwchar:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/postypes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:40,
                 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/ext/new_allocator.h:33,
                 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/string:41,
                 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/string:41,
                 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:34:1:
+#include <cstddef>
 #include <bits/functexcept.h>
/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/string:41,
                 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:47:1:
+#include <cstddef>
 #include <bits/memoryfwd.h>
/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/string:44,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:45:26: error: ‘streamsize’ has not been declared
       const _CharT* __s, streamsize __n)
                          ^~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h: In function ‘void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:50:13: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
       const streamsize __put = __out.rdbuf()->sputn(__s, __n);
             ^~~~~~~~~~
             streambuf
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:51:11: error: ‘__put’ was not declared in this scope
       if (__put != __n)
           ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:51:11: note: suggested alternative: ‘__out’
       if (__put != __n)
           ^~~~~
           __out
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:57:59: error: ‘streamsize’ has not been declared
     __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
                                                           ^~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:77:27: error: ‘streamsize’ has not been declared
        const _CharT* __s, streamsize __n)
                           ^~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h: In function ‘std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:87:14: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
        const streamsize __w = __out.width();
              ^~~~~~~~~~
              streambuf
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:88:12: error: ‘__w’ was not declared in this scope
        if (__w > __n)
            ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:88:12: note: suggested alternative: ‘__s’
        if (__w > __n)
            ^~~
            __s
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h: At global scope:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:118:68: error: ‘streamsize’ has not been declared
   extern template ostream& __ostream_insert(ostream&, const char*, streamsize);
                                                                    ^~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ostream_insert.h:122:11: error: ‘streamsize’ has not been declared
           streamsize);
           ^~~~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:53,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.tcc: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.tcc:1487:14: error: ‘streamsize’ does not name a type; did you mean ‘streambuf’?
        const streamsize __w = __in.width();
              ^~~~~~~~~~
              streambuf
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.tcc:1488:32: error: ‘__w’ was not declared in this scope
        const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
                                ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.tcc:1488:32: note: suggested alternative: ‘__n’
        const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
                                ^~~
                                __n
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:52,
                 from ./Main.cpp:2:
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<char>, char>’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:80:24:   required from ‘class std::__cxx11::basic_string<char>’
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.tcc:1607:25:   required from here
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/alloc_traits.h:126:53: error: no type named ‘difference_type’ in ‘class std::allocator<char>’
     typedef typename _Alloc::difference_type        difference_type;
                                                     ^~~~~~~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/alloc_traits.h: In instantiation of ‘struct __gnu_cxx::__alloc_traits<std::allocator<wchar_t>, wchar_t>’:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:80:24:   required from ‘class std::__cxx11::basic_string<wchar_t>’
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.tcc:1630:25:   required from here
/usr/local/gcc-8.2.0/include/c++/8.2.0/ext/alloc_traits.h:126:53: error: no type named ‘difference_type’ in ‘class std::allocator<wchar_t>’
./Main.cpp: In function ‘int main()’:
./Main.cpp:12:5: error: ‘cin’ was not declared in this scope
     cin >> g;
     ^~~
./Main.cpp:12:5: 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:12:5:
     cin >> g;
     ^~~
./Main.cpp:19:11: error: ‘cout’ was not declared in this scope
           cout << "?" << " " << y-30 << " " << m << " " << d << endl;
           ^~~~
./Main.cpp:19:11: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:19:65: error: ‘endl’ was not declared in this scope
           cout << "?" << " " << y-30 << " " << m << " " << d << endl;
                                                                 ^~~~
./Main.cpp:19:65: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
./Main.cpp:3:1:
+#include <ostream>
 using namespace std;
./Main.cpp:19:65:
           cout << "?" << " " << y-30 << " " << m << " " << d << endl;
                                                                 ^~~~
./Main.cpp:21:11: error: ‘cout’ was not declared in this scope
           cout << "HEISEI" << " " << y << " " << m << " " << d << endl;
           ^~~~
./Main.cpp:21:11: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:21:67: error: ‘endl’ was not declared in this scope
           cout << "HEISEI" << " " << y << " " << m << " " << d << endl;
                                                                   ^~~~
./Main.cpp:21:67: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
./Main.cpp:24:9: error: ‘cout’ was not declared in this scope
         cout << "HEISEI" << " " << y << " " << m << " " << d << endl;
         ^~~~
./Main.cpp:24:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:24:65: error: ‘endl’ was not declared in this scope
         cout << "HEISEI" << " " << y << " " << m << " " << d << endl;
                                                                 ^~~~
./Main.cpp:24:65: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?

セット

セット 得点 Cases

テストケース

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