/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: stray '##' in program
 ##include<iostream>
 ^
foo.cpp:1:3: error: 'include' does not name a type
 ##include<iostream>
   ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_pair.h:59:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\utility:70,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:60,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\move.h:183:26: error: 'size_t' has not been declared
   template<typename _Tp, size_t _Nm>
                          ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\move.h: In function 'void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])':
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\move.h:190:12: error: 'size_t' was not declared in this scope
       for (size_t __n = 0; __n < _Nm; ++__n)
            ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\move.h:190:19: error: expected ';' before '__n'
       for (size_t __n = 0; __n < _Nm; ++__n)
                   ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\move.h:190:28: error: '__n' was not declared in this scope
       for (size_t __n = 0; __n < _Nm; ++__n)
                            ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algobase.h:65:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:61,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator_base_types.h: At global scope:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator_base_types.h:116:67: error: expected type-specifier before 'ptrdiff_t'
   template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
                                                                   ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator_base_types.h:116:67: error: expected '>' before 'ptrdiff_t'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator_base_types.h:127:15: error: '_Pointer' does not name a type
       typedef _Pointer   pointer;
               ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator_base_types.h:129:15: error: '_Reference' does not name a type
       typedef _Reference reference;
               ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator_base_types.h:179:15: error: 'ptrdiff_t' does not name a type
       typedef ptrdiff_t                   difference_type;
               ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator_base_types.h:190:15: error: 'ptrdiff_t' does not name a type
       typedef ptrdiff_t                   difference_type;
               ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algobase.h:67:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:61,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator.h:101:69: error: wrong number of template arguments (5, should be 3)
                       typename iterator_traits<_Iterator>::reference>
                                                                     ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algobase.h:65:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:61,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator'
     struct iterator
            ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algobase.h:67:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:61,
                 from foo.cpp:2:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_iterator.h:403:66: error: wrong number of template arguments (5, should be 3)
     : public iterator<output_iterator_tag, void, void, void, void>
                                                                  ^
In file include

信息

递交者
类型
递交
题目
P1056 图形面积
语言
C++
递交时间
2016-05-29 11:39:47
评测时间
2016-05-29 11:40:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes