noobcoder696969's blog

By noobcoder696969, history, 3 hours ago, In English

The solution that got AC :

The solution that got compilation error :

Both of the codes are exactly same, I'm getting compilation error in the below one and AC in the above one

I just replaced long long by int wherever possible and got an AC

Can anyone please tell what exactly is happening ?

  • Vote: I like it
  • -2
  • Vote: I do not like it

»
2 hours ago, # |
  Vote: I like it +13 Vote: I do not like it

Replace make_pair(i,-1) with make_pair(i,-1ll), because make_pair(i,-1) produce std::pair<long long, int>, but you need std::pair<long long, long long>, which can be produced by make_pair(i,-1ll).

  • »
    »
    117 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Done

    It worked

    Thanks