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_29405170_19175.cpp: In function 'int main()':
0_0_29405170_19175.cpp:6:31: error: expected unqualified-id before 'long'
     int m,n,i,m_max=1,n_max=1,long long score,max=0;
                               ^
0_0_29405170_19175.cpp:13:18: error: 'score' was not declared in this scope
             cin>>score;
                  ^
0_0_29405170_19175.cpp:14:24: error: no matching function for call to 'fabs(<unresolved overloaded function type>)'
             if(fabs(max)<fabs(score))
                        ^
0_0_29405170_19175.cpp:14:24: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from 0_0_29405170_19175.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:181:31: note: double fabs(double)
   __CRT_INLINE double __cdecl fabs (double x)
                               ^
GCC4.9.2/x86_64-w64-mingw32/include/math.h:181:31: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
In file included from 0_0_29405170_19175.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:272:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::fabs(_Tp)
     fabs(_Tp __x)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:272:5: note:   template argument deduction/substitution failed:
0_0_29405170_19175.cpp:14:24: note:   couldn't deduce template parameter '_Tp'
             if(fabs(max)<fabs(score))
                        ^
In file included from 0_0_29405170_19175.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:264:3: note: constexpr long double std::fabs(long double)
   fabs(long double __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:264:3: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double'
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:260:3: note: constexpr float std::fabs(float)
   fabs(float __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:260:3: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
0_0_29405170_19175.cpp:21:37: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
         cout<<m_max<<" "<<n_max<<" "<<max<<endl;
                                     ^
0_0_29405170_19175.cpp:21:37: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_29405170_19175.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:108:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(__ostream_type& (*__pf)(__ostream_type&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:108:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:117:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
       operator<<(__ios_type& (*__pf)(__ios_type&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:117:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:127:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(ios_base& (*__pf) (ios_base&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:127:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:166:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:166:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:170:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned long __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:170:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:174:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(bool __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:174:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:609:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_29405170_19175.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ostream.tcc:91:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
     basic_ostream<_CharT, _Traits>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ostream.tcc:91:5: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_29405170_19175.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:181:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned short __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:181:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:609:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_29405170_19175.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ostream.tcc:105:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
     basic_ostream<_CharT, _Traits>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ostream.tcc:105:5: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_29405170_19175.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:192:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned int __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:192:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:201:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long long __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:201:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:205:7: no


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-10-06 16:16:12, Gzip enabled