foo.cc: In function 'bool getOK(int, int)':
foo.cc:40:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return ok[x] = 1;
~~~~~~^~~
foo.cc: In function 'bool check(ll)':
foo.cc:72:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ss.size(); i++){
~~^~~~~~~~~~~
foo.cc:92:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < H.size(); i++){
~~^~~~~~~~~~
foo.cc:93:13: warning: unused variable 'y' [-Wunused-variable]
int y = H[i].second;
^
foo.cc: In function 'int main()':
foo.cc:126:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
ll mid = l + r >> 1;
~~^~~
自豪的采用jd5进行评测(github.com/masnn/jd5)