I am following this answer to define a priority_queue with a lambda function. However, I am running to: error: lambda-expression in unevaluated context
#include <bits/stdc++.h>
int main()
{
std::priority_queue<
int,
std::vector<int>,
decltype( [](int a, int b)->bool{
return a>b;
})>
q;
}