bulb.cpp: In function 'int FindWinner(int, std::vector<int>, std::vector<int>)':
bulb.cpp:32:7: error: 'sort' is not a member of 'std'
std::sort(t1.begin(),t1.end());
^~~~
bulb.cpp:33:7: error: 'sort' is not a member of 'std'
std::sort(t2.begin(),t2.end());
^~~~
bulb.cpp:34:46: error: 'binary_search' was not declared in this scope
if(c==-2 || t1.size()>1 || t1.size()==1 && !binary_search(t2.begin(),t2.end(),t1[0])) return 0;
^~~~~~~~~~~~~
bulb.cpp:20:6: warning: unused variable 'N' [-Wunused-variable]
int N = L.size(), c, n, t;
^