/ Vijos /

记录详情

Compile Error

foo.cpp:2:1: error: expected unqualified-id before numeric constant
 2
 ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\move.h:57:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_pair.h:59,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algobase.h:64,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_tree.h:61,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\map:60,
                 from foo.cpp:70:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:285:31: error: 'std::size_t' has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:419:34: error: 'nullptr_t' is not a member of 'std'
     struct __is_nullptr_t_helper<std::nullptr_t>
                                  ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:419:34: error: 'nullptr_t' is not a member of 'std'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:419:48: error: template argument 1 is invalid
     struct __is_nullptr_t_helper<std::nullptr_t>
                                                ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1239:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1239:32: error: 'size_t' is not a member of 'std'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1239:61: error: template argument 1 is invalid
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                                             ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1239:61: note: invalid template non-type parameter
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1244:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 0> { };
                                ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1244:32: error: 'size_t' is not a member of 'std'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1244:46: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 0> { };
                                              ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1244:46: note: invalid template non-type parameter
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1246:31: error: 'std::size_t' has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1248:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1248:32: error: 'size_t' is not a member of 'std'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1248:65: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                                                 ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1248:65: note: invalid template non-type parameter
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1252:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1252:32: error: 'size_t' is not a member of 'std'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1252:65: error: template argument 1 is invalid
     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
                                                                 ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1252:65: note: invalid template non-type parameter
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\type_traits:1257:32: er

信息

递交者
类型
递交
题目
P1820 变换序列
语言
C++
递交时间
2016-09-19 13:30:51
评测时间
2016-09-19 13:31:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes