0_0_24489205_14384.cpp: In function 'll solve(ll)':
0_0_24489205_14384.cpp:27:25: error: call of overloaded 'abs(ll)' is ambiguous
ret += t*abs(x-y);
^
0_0_24489205_14384.cpp:27:25: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/assert.h:17:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/cassert:43,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:33,
from 0_0_24489205_14384.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
int __cdecl abs(int _X);
^
0_0_24489205_14384.cpp:12:4: note: ll abs(ll)
ll abs(ll x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:47:0,
from 0_0_24489205_14384.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:166:3: note: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
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_24489205_14384.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:99:5: note: constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::abs(_Tp) [with _Tp = long long int; typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type = double]
abs(_Tp __x)
^
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)
^
0_0_24489205_14384.cpp: At global scope:
0_0_24489205_14384.cpp:53:13: error: 'Po' does not name a type
Po[1]=1;
^
0_0_24489205_14384.cpp:54:13: error: 'Po' does not name a type
Po[2]=b+1;
^
0_0_24489205_14384.cpp:55:13: error: expected unqualified-id before 'for'
for(int i=2;i<=a/tt;i++)
^
0_0_24489205_14384.cpp:55:25: error: 'i' does not name a type
for(int i=2;i<=a/tt;i++)
^
0_0_24489205_14384.cpp:55:33: error: 'i' does not name a type
for(int i=2;i<=a/tt;i++)
^
0_0_24489205_14384.cpp:78:13: error: 'ans' does not name a type
ans=sum[a/tt]*(n/tmp);
^
0_0_24489205_14384.cpp:79:13: error: 'n' does not name a type
n%=tmp;
^
0_0_24489205_14384.cpp:81:18: error: 'n' was not declared in this scope
ll x=n/b;
^
0_0_24489205_14384.cpp:82:13: error: 'ans' does not name a type
ans+=sum[x];
^
0_0_24489205_14384.cpp:83:13: error: 'n' does not name a type
n%=b;
^
0_0_24489205_14384.cpp:84:13: error: expected unqualified-id before 'if'
if(n)
^
|