|
|
back to boardCommon BoardShow all messages Hide all messagesHi. 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. Oh, yeah, thanks :) Any other thoughts? I've got, what's the problem. bool operator()(int t1, int t2)const { ... } should be written |
|
|