can anyone tell me why does it show that reference is ambiguous on custom invocation of codeforces although it works fine on sublime and when i just change the name of array it works fine .. ... code link...
...thank you
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3611 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 161 |
| 2 | adamant | 150 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 144 |
| 5 | errorgorn | 141 |
| 6 | cry | 139 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
can anyone tell me why does it show that reference is ambiguous on custom invocation of codeforces although it works fine on sublime and when i just change the name of array it works fine .. ... code link...
...thank you
| Название |
|---|



in c++17 you can't name a global variable data. You probably use an older c++ standard locally that's why its works for oyu.
I can name a global variable data, why not? oO
Because of global namespace pollution (
using namespace std;)Edit: to be more clear, there are several utility function templates defined in the std namespace with the same name (data).
Thanks.. :)