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_36168532_8504.cpp: In function 'int main()':
0_0_36168532_8504.cpp:13:9: error: expected primary-expression before 'int'
         int max=0,x,y;
         ^
0_0_36168532_8504.cpp:19:27: error: no matching function for call to 'abs(<unresolved overloaded function type>)'
                 if(abs(max)<abs(a[i][k]))max=a[i][k],x=i,y=k;
                           ^
0_0_36168532_8504.cpp:19:27: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/string_conversions.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2850,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 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_36168532_8504.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
   int __cdecl abs(int _X);
               ^
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
In file included from 0_0_36168532_8504.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:99:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::abs(_Tp)
     abs(_Tp __x)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:99:5: note:   template argument deduction/substitution failed:
0_0_36168532_8504.cpp:19:27: note:   couldn't deduce template parameter '_Tp'
                 if(abs(max)<abs(a[i][k]))max=a[i][k],x=i,y=k;
                           ^
In file included from 0_0_36168532_8504.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:91:3: note: constexpr long double std::abs(long double)
   abs(long double __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:91: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:87:3: note: constexpr float std::abs(float)
   abs(float __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:87:3: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float'
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:81:3: note: constexpr double std::abs(double)
   abs(double __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:81:3: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/string_conversions.h:41:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2850,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 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_36168532_8504.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:174:3: note: long long int std::abs(long long int)
   abs(long long __x) { return __builtin_llabs (__x); }
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:174:3: 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++/cstdlib:166:3: note: long int std::abs(long int)
   abs(long __i) { return __builtin_labs(__i); }
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:166:3: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int'
0_0_36168532_8504.cpp:19:45: error: overloaded function with no contextual type information
                 if(abs(max)<abs(a[i][k]))max=a[i][k],x=i,y=k;
                                             ^
0_0_36168532_8504.cpp:19:54: error: 'x' was not declared in this scope
                 if(abs(max)<abs(a[i][k]))max=a[i][k],x=i,y=k;
                                                      ^
0_0_36168532_8504.cpp:19:58: error: 'y' was not declared in this scope
                 if(abs(max)<abs(a[i][k]))max=a[i][k],x=i,y=k;
                                                          ^
0_0_36168532_8504.cpp:22:15: error: 'x' was not declared in this scope
         cout<<x+1<<" "<<y+1<<" "<<max<<endl;
               ^
0_0_36168532_8504.cpp:22:25: error: 'y' was not declared in this scope
         cout<<x+1<<" "<<y+1<<" "<<max<<endl;
                         ^


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-17 03:53:24, Gzip enabled