Problem platonic19
User maximushartanto
Submission Time 2025-12-24 10:37:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic19.cpp:19:26: error: ‘custom_hash’ was not declared in this scope
19 | unordered_map<i64, int, custom_hash> f;
| ^~~~~~~~~~~
platonic19.cpp:19:37: error: template argument 3 is invalid
19 | unordered_map<i64, int, custom_hash> f;
| ^
platonic19.cpp: In lambda function:
platonic19.cpp:49:39: error: request for member ‘size’ in ‘u->datas.std::vector<dat>::operator[]().f’, which is of non-class type ‘int’
49 | if (datas[v].f.size() < datas[u].f.size()){
| ^~~~
platonic19.cpp:58:28: error: ‘custom_hash’ was not declared in this scope
58 | unordered_map<i64, int, custom_hash>().swap(datas[v].f);
| ^~~~~~~~~~~
platonic19.cpp:58:39: error: template argument 3 is invalid
58 | unordered_map<i64, int, custom_hash>().swap(datas[v].f);