0_0_21203323_7976.cpp:3:1: error: stray '\241' in program
Description In somewhere, there is a crazy super man. He can¡¯t fly, but he could jump from housetop to housetop. Today he plans to use N houses to hone his house hopping skills. He will start at the shortest house and make N-1 jumps, with each jump taking him to a taller house than the one he is jumping from. When finished, he will have been on every house exactly once, traversing them in increasing order of height, and ending up on the tallest house.
^
0_0_21203323_7976.cpp:3:1: error: stray '\257' in program
0_0_21203323_7976.cpp:5:1: error: stray '\241' in program
The crazy super man have an ability¡ªmove houses. So he is going to move the houses subject to the following constraints:
^
0_0_21203323_7976.cpp:5:1: error: stray '\252' in program
0_0_21203323_7976.cpp:9:1: error: missing terminating ' character
4. The super man can only jump so far, so every house must be moved close enough to the next taller house. Specifically, they must be no further than D apart on the ground (the difference in their heights doesn't matter).
^
0_0_21203323_7976.cpp:12:1: error: stray '\241' in program
Each test case begins with a line containing two integers N (1 ¡Ü N ¡Ü 10000) and D (1 ¡Ü D ¡Ü100000). The next line contains N integer, giving the heights of the N houses, in the order that they should be moved. Within a test case, all heights will be unique.
^
0_0_21203323_7976.cpp:12:1: error: stray '\334' in program
0_0_21203323_7976.cpp:12:1: error: stray '\241' in program
0_0_21203323_7976.cpp:12:1: error: stray '\334' in program
0_0_21203323_7976.cpp:12:1: error: stray '\241' in program
0_0_21203323_7976.cpp:12:1: error: stray '\334' in program
0_0_21203323_7976.cpp:12:1: error: stray '\241' in program
0_0_21203323_7976.cpp:12:1: error: stray '\334' in program
0_0_21203323_7976.cpp:13:1: error: stray '\241' in program
Output For each test case , output ¡°Case #d: ¡°first where d is the case number counted from one, then output a single integer representing the maximum distance between the shortest and tallest house, subject to the constraints above, or -1 if it is impossible to lay out the houses. Do not print any blank lines between answers. Sample Input 3
^
0_0_21203323_7976.cpp:13:1: error: stray '\260' in program
0_0_21203323_7976.cpp:13:43: error: stray '#' in program
Output For each test case , output ¡°Case #d: ¡°first where d is the case number counted from one, then output a single integer representing the maximum distance between the shortest and tallest house, subject to the constraints above, or -1 if it is impossible to lay out the houses. Do not print any blank lines between answers. Sample Input 3
^
0_0_21203323_7976.cpp:13:1: error: stray '\241' in program
Output For each test case , output ¡°Case #d: ¡°first where d is the case number counted from one, then output a single integer representing the maximum distance between the shortest and tallest house, subject to the constraints above, or -1 if it is impossible to lay out the houses. Do not print any blank lines between answers. Sample Input 3
^
0_0_21203323_7976.cpp:13:1: error: stray '\260' in program
0_0_21203323_7976.cpp:20:20: error: stray '#' in program
Sample Output Case #1: 3
^
0_0_21203323_7976.cpp:21:6: error: stray '#' in program
Case #2: 3
^
0_0_21203323_7976.cpp:22:6: error: stray '#' in program
Case #3: -1
^
0_0_21203323_7976.cpp:1:1: error: 'House' does not name a type
House Man
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_21203323_7976.cpp:41:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:95:30: error: field 'nullptr_t' has incomplete type 'std::__exception_ptr::exception_ptr'
exception_ptr(nullptr_t) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:95:30: error: expected ';' at end of member declaration
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:95:32: error: expected unqualified-id before 'noexcept'
exception_ptr(nullptr_t) noexcept
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_21203323_7976.cpp:41:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable
__is_null_pointer(std::nullptr_t)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:155:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
__is_null_pointer(_Type)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:21: error: 'nullptr_t' is not a member of 'std'
__is_null_pointer(std::nullptr_t)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_21203323_7976.cpp:41:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:294:31: error: 'std::size_t' has not been declared
template<typename _Tp, std::size_t _Size>
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:493:37: error: 'nullptr_t' is not a member of 'std'
struct __is_null_pointer_helper<std::nullptr_t>
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:493:37: error: 'nullptr_t' is not a member of 'std'
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:493:51: error: template argument 1 is invalid
struct __is_null_pointer_helper<std::nullptr_t>
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1336:32: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1336:32: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/crtdefs.h:10:0,
from GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:9,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_21203323_7976.cpp:41:
GCC4.9.2/x86_64-w64-mingw32/include/_mingw.h:377:44: note: 'size_t'
__MINGW_EXTENSION typedef unsigned __int64 size_t;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_21203323_7976.cpp:41:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1336:32: error: 'size_t' is not a member of 'std'
: public integral_constant<std::size_t, __alignof__(_Tp)> { };
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1336:32: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/crtdefs.h:10:0,
from GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:9,
from D:/HDOJ/Compil
|