Problem finalday
User Joashhh
Submission Time 2024-12-10 10:50:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

finalday.cpp: In function ‘int main()’:
finalday.cpp:20:21: error: reference to ‘rank’ is ambiguous
20 | if(arr[i] + 100 > rank(arr, k){
| ^~~~
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from finalday.cpp:1:
/usr/include/c++/9/type_traits:1250:12: note: candidates are: ‘template<class> struct std::rank’
1250 | struct rank
| ^~~~
finalday.cpp:6:5: note: ‘int rank(std::vector<int>, int)’
6 | int rank(vector<int> d, int rank){
| ^~~~
finalday.cpp:20:33: error: expected ‘)’ before ‘{’ token
2