/ Vijos /

记录详情

Compile Error

foo.cpp:1:2: error: stray '#' in program
 h#include<cstring>
  ^
foo.cpp:1:1: error: 'h' does not name a type
 h#include<cstring>
 ^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_construct.h:59:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_tempbuf.h:60,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:62,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
                 from foo.cpp:4:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:91:31: error: declaration of 'operator new' as non-function
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                               ^
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:91:20: error: 'size_t' is not a member of 'std'
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                    ^
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:91:20: note: suggested alternative:
In file included from c:\tdm-gcc-32\include\stdio.h:26:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\cstdio:42,
                 from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_construct.h:59:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_tempbuf.h:60,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:62,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
                 from foo.cpp:4:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:93:33: error: declaration of 'operator new []' as non-function
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                                 ^
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:93:22: error: 'size_t' is not a member of 'std'
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                      ^
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:93:22: note: suggested alternative:
In file included from c:\tdm-gcc-32\include\stdio.h:26:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\cstdio:42,
                 from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_construct.h:59:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_tempbuf.h:60,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:62,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
                 from foo.cpp:4:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:99:25: error: declaration of 'operator new' as non-function
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                         ^
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:99:20: error: 'size_t' is not a member of 'std'
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                    ^
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\new:99:20: note: suggested alternative:
In file included from c:\tdm-gcc-32\include\stdio.h:26:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\cstdio:42,
                 from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\stddef.h:212:23: note:   'size_t'
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_construct.h:59:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_tempbuf.h:60,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:62,
                 from c:\

信息

递交者
类型
递交
题目
P1907 飞扬的小鸟
语言
C++
递交时间
2014-11-22 10:55:52
评测时间
2014-11-22 10:56:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes