0_0_18807287_19861.cpp: In function 'int main()':
0_0_18807287_19861.cpp:46:26: error: reference to 'ratio' is ambiguous
while(nn>=2&&ratio(now,s[nn])<=ratio(s[nn],s[nn-1])) nn--;
^
0_0_18807287_19861.cpp:13:8: note: candidates are: struct ratio
struct ratio{ // 斜率类
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/chrono:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:100,
from 0_0_18807287_19861.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ratio:263:12: note: template<long long int _Num, long long int _Den> struct std::ratio
struct ratio
^
0_0_18807287_19861.cpp:46:44: error: reference to 'ratio' is ambiguous
while(nn>=2&&ratio(now,s[nn])<=ratio(s[nn],s[nn-1])) nn--;
^
0_0_18807287_19861.cpp:13:8: note: candidates are: struct ratio
struct ratio{ // 斜率类
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/chrono:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:100,
from 0_0_18807287_19861.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ratio:263:12: note: template<long long int _Num, long long int _Den> struct std::ratio
struct ratio
^
0_0_18807287_19861.cpp:53:17: error: reference to 'ratio' is ambiguous
ratio ra1=ratio(pii(i,a[i]),s[mid1]);
^
0_0_18807287_19861.cpp:13:8: note: candidates are: struct ratio
struct ratio{ // 斜率类
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/chrono:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:100,
from 0_0_18807287_19861.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ratio:263:12: note: template<long long int _Num, long long int _Den> struct std::ratio
struct ratio
^
0_0_18807287_19861.cpp:54:17: error: reference to 'ratio' is ambiguous
ratio ra2=ratio(pii(i,a[i]),s[mid2]);
^
0_0_18807287_19861.cpp:13:8: note: candidates are: struct ratio
struct ratio{ // 斜率类
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/chrono:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:100,
from 0_0_18807287_19861.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ratio:263:12: note: template<long long int _Num, long long int _Den> struct std::ratio
struct ratio
^
0_0_18807287_19861.cpp:55:21: error: 'ra1' was not declared in this scope
if (ra1<ra2){
^
0_0_18807287_19861.cpp:55:25: error: 'ra2' was not declared in this scope
if (ra1<ra2){
^
|