/ Vijos /

记录详情

Compile Error

foo.cpp:2:1: error: expected unqualified-id before numeric constant
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
                 from foo.cpp:60:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:106:66: error: 'std::size_t' has not been declared
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:108:14: error: 'size_t' in namespace 'std' does not name a type
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:112:39: error: 'std::size_t' has not been declared
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:115:57: error: 'std::size_t' has not been declared
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:118:57: error: 'std::size_t' has not been declared
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:121:35: error: 'std::size_t' has not been declared
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:147:64: error: 'std::size_t' has not been declared
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h: In static member function 'static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)':
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:149:12: error: 'size_t' is not a member of 'std'
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:149:12: note: suggested alternative:
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/../../../../include/wchar.h:26:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/cwchar:46,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/postypes.h:42,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iosfwd:42,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:39,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
                 from foo.cpp:60:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/stddef.h:213:23: note:   'size_t'
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
                 from foo.cpp:60:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:149:24: error: expected ';' before '__i'
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:149:33: error: '__i' was not declared in this scope
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h: At global scope:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:158:5: error: 'size_t' in namespace 'std' does not name a type
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:171:37: error: 'std::size_t' has not been declared
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/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&)':
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:173:12: error: 'size_t' is not a member of 'std'
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:173:12: note: suggested alternative:
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/../../../../include/wchar.h:26:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/cwchar:46,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/postypes.h:42,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iosfwd:42,

信息

递交者
类型
递交
题目
P1846 华容道
语言
C++
递交时间
2014-08-13 20:23:42
评测时间
2014-08-13 20:24:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes