Problem shops
User KCL
Submission Time 2025-02-25 17:39:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shops.cpp: In function ‘constexpr void make_set(int)’:
shops.cpp:14:13: error: call to non-‘constexpr’ function ‘int& parentof(int)’
14 | parentof(v) = v;
| ^
shops.cpp: In function ‘constexpr int find_set(int)’:
shops.cpp:18:22: error: call to non-‘constexpr’ function ‘int& parentof(int)’
18 | if (v == parentof(v)) return v;
| ^