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:\