F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_30423995_29407.cpp: In function 'constexpr __float128 fabs(__float128)':
0_0_30423995_29407.cpp:6:16: error: 'long' invalid for 'type name'
 #define double __float128
                ^
0_0_30423995_29407.cpp:9:60: note: in expansion of macro 'double'
 constexpr __float128 fabs(__float128 x) { return fabs<long double>(x); }
                                                            ^
0_0_30423995_29407.cpp:9:69: error: call to non-constexpr function '_Tp std::fabs(const std::complex<_Tp>&) [with _Tp = __float128]'
 constexpr __float128 fabs(__float128 x) { return fabs<long double>(x); }
                                                                     ^
0_0_30423995_29407.cpp: In function 'constexpr __float128 floor(__float128)':
0_0_30423995_29407.cpp:6:16: error: 'long' invalid for 'type name'
 #define double __float128
                ^
0_0_30423995_29407.cpp:10:62: note: in expansion of macro 'double'
 constexpr __float128 floor(__float128 x) { return floor<long double>(x); }
                                                              ^
0_0_30423995_29407.cpp:10:71: error: no matching function for call to 'floor(__float128&)'
 constexpr __float128 floor(__float128 x) { return floor<long double>(x); }
                                                                       ^
0_0_30423995_29407.cpp:10:71: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41:0,
                 from 0_0_30423995_29407.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:291:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::floor(_Tp)
     floor(_Tp __x)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:291:5: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath: In substitution of 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::floor(_Tp) [with _Tp = __float128]':
0_0_30423995_29407.cpp:10:71:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:291:5: error: no type named '__type' in 'struct __gnu_cxx::__enable_if<false, double>'
0_0_30423995_29407.cpp:10:74: error: body of constexpr function 'constexpr __float128 floor(__float128)' not a return-statement
 constexpr __float128 floor(__float128 x) { return floor<long double>(x); }
                                                                          ^
0_0_30423995_29407.cpp: In function 'std::istream& operator>>(std::istream&, __float128&)':
0_0_30423995_29407.cpp:6:16: error: 'long' invalid for 'type name'
 #define double __float128
                ^
0_0_30423995_29407.cpp:11:71: note: in expansion of macro 'double'
 istream& operator>> (istream& is, __float128& x) { return is >> (long double)(x); }
                                                                       ^
0_0_30423995_29407.cpp:11:62: error: no match for 'operator>>' (operand types are 'std::istream {aka std::basic_istream<char>}' and '__float128')
 istream& operator>> (istream& is, __float128& x) { return is >> (long double)(x); }
                                                              ^
0_0_30423995_29407.cpp:11:62: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_30423995_29407.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:120:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
       operator>>(__istream_type& (*__pf)(__istream_type&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:120:7: note:   no known conversion for argument 1 from '__float128' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:124:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>; std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
       operator>>(__ios_type& (*__pf)(__ios_type&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:124:7: note:   no known conversion for argument 1 from '__float128' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:131:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
       operator>>(ios_base& (*__pf)(ios_base&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:131:7: note:   no known conversion for argument 1 from '__float128' to 'std::ios_base& (*)(std::ios_base&)'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:168:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
       operator>>(bool& __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:168:7: note:   no known conversion for argument 1 from '__float128' to 'bool&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:172:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]
       operator>>(short& __n);
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:172:7: note:   no known conversion for argument 1 from '__float128' to 'short int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:175:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
       operator>>(unsigned short& __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:175:7: note:   no known conversion for argument 1 from '__float128' to 'short unsigned int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:179:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]
       operator>>(int& __n);
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:179:7: note:   no known conversion for argument 1 from '__float128' to 'int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:182:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
       operator>>(unsigned int& __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:182:7: note:   no known conversion for argument 1 from '__float128' to 'unsigned int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:186:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
       operator>>(long& __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:186:7: note:   no known conversion for argument 1 from '__float128' to 'long int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:190:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
       operator>>(unsigned long& __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:190:7: note:   no known conversion for argument 1 from '__float128' to 'long unsigned int&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:195:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
       operator>>(long long& __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:195:7: note:   no known conversion for argument 1 from '__float128' to 'long long int&'
GCC4.9.2/x86_


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 04:56:06, Gzip enabled