0_0_36081017_32183.cpp: In function 'int guass(int, int)':
0_0_36081017_32183.cpp:14:49: error: call of overloaded 'abs(double&)' is ambiguous
for(int i=x+1; i<=n; ++i) if(abs(A[i][y])>abs(A[pos][y])) pos=i;
^
0_0_36081017_32183.cpp:14:49: 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++/bits/stl_algo.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
int __cdecl abs(int _X);
^
0_0_36081017_32183.cpp:8:15: note: double abs(double)
inline double abs(double x) { return x<0?-x:x; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
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:87:3: note: constexpr float std::abs(float)
abs(float __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:81:3: note: constexpr double std::abs(double)
abs(double __x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:59:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
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:166:3: note: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
0_0_36081017_32183.cpp:14:64: error: call of overloaded 'abs(double&)' is ambiguous
for(int i=x+1; i<=n; ++i) if(abs(A[i][y])>abs(A[pos][y])) pos=i;
^
0_0_36081017_32183.cpp:14:64: 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++/bits/stl_algo.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
int __cdecl abs(int _X);
^
0_0_36081017_32183.cpp:8:15: note: double abs(double)
inline double abs(double x) { return x<0?-x:x; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
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:87:3: note: constexpr float std::abs(float)
abs(float __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:81:3: note: constexpr double std::abs(double)
abs(double __x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:59:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
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:166:3: note: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
0_0_36081017_32183.cpp:15:25: error: call of overloaded 'abs(double&)' is ambiguous
if(abs(A[pos][y])<eps) { ++y; continue; }
^
0_0_36081017_32183.cpp:15:25: 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++/bits/stl_algo.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
int __cdecl abs(int _X);
^
0_0_36081017_32183.cpp:8:15: note: double abs(double)
inline double abs(double x) { return x<0?-x:x; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
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:87:3: note: constexpr float std::abs(float)
abs(float __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:81:3: note: constexpr double std::abs(double)
abs(double __x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:59:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
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:166:3: note: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
0_0_36081017_32183.cpp:17:49: error: call of overloaded 'abs(double&)' is ambiguous
for(int i=x+1; i<=n; ++i) if(abs(A[i][y])>=eps) {
^
0_0_36081017_32183.cpp:17:49: 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++/bits/stl_algo.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
int __cdecl abs(int _X);
^
0_0_36081017_32183.cpp:8:15: note: double abs(double)
inline double abs(double x) { return x<0?-x:x; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
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:87:3: note: constexpr float std::abs(float)
abs(float __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:81:3: note: constexpr double std::abs(double)
abs(double __x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:59:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
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:166:3: note: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
0_0_36081017_32183.cpp:23:45: error: call of overloaded 'abs(double&)' is ambiguous
for(int i=x; i<=n; ++i) if(abs(A[i][m+1])>=eps) return 0;
^
0_0_36081017_32183.cpp:23:45: 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++/bits/stl_algo.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_36081017_32183.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
int __cdecl abs(int _X);
^
0_0_36081017_32183.cpp:8:15: note: double abs(double)
inline double abs(double x) { return x<0?-x:x; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_
|