When I use INT_MAX here,it's complier error! Why?


  • 0
    C

    bitset<32767> bs;// when I use INT_MAX(bitset<INT_MAX> bs;),it's complier error! Why?
    for(vector<int>::iterator iter=nums.begin();iter!=nums.end();iter++)
    {
    if(bs[*iter])
    return *iter;
    else
    bs.set(*iter);
    }
    return 0;


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.