| Problem | unluckyfloors |
|---|---|
| User | huangchengcheng |
| Submission Time | 2026-08-25 14:15:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
unluckyfloors.cpp: In function ‘void precompute()’:
unluckyfloors.cpp:21:13: error: reference to ‘rank’ is ambiguous
21 | rank[i] = (int)lucky.size(); // 1-based
| ^~~~
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 unluckyfloors.cpp:1:
/usr/include/c++/9/type_traits:1250:12: note: candidates are: ‘template<class> struct std::rank’
1250 | struct rank
| ^~~~
unluckyfloors.cpp:7:31: note: ‘std::unordered_map<long long int, int> rank’
7 | unordered_map<long long, int> rank; // rank[y] = position of y among val