Problem | finalday |
---|---|
User | Joashhh |
Submission Time | 2024-12-10 10:49:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
finalday.cpp: In function ‘int main()’:
finalday.cpp:20:21: error: reference to ‘rank’ is ambiguous
20 | if(arr[i] + 100 > rank){
| ^~~~
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){
| ^~~~