consul.cpp: In function 'void solve(int)':
consul.cpp:13:16: error: no match for 'operator[]' (operand types are 'bool [12312]' and 'std::uniform_int_distribution<>')
13 | if(used[d])continue;
| ^
consul.cpp:14:21: error: cannot convert 'std::uniform_int_distribution<>' to 'int'
14 | int ans=kth(d);
| ^
| |
| std::uniform_int_distribution<>
In file included from consul.cpp:2:
grader.h:6:13: note: initializing argument 1 of 'int kth(int)'
6 | int kth(int k);
| ~~~~^
consul.cpp:15:32: error: return-statement with a value, in function returning 'void' [-fpermissive]
15 | if(cnt(ans)>n/3)return ans;
| ^~~