|
|
вернуться в форумОбщий форумProblems with comparator Hi. I'm using :) such a construction in my code struct maxY { bool operator () (const int& n1, const int& n2) { // compare something } }; ... set<int, maxY> s; in my VS 2009 it's ok, but Online Judge says it's a compilation error. Help to fix, please. Re: Problems with comparator Re: Problems with comparator Oh, yeah, thanks :) Any other thoughts? Re: Problems with comparator I've got, what's the problem. bool operator()(int t1, int t2)const { ... } should be written |
|
|