noobcoder696969's blog

By noobcoder696969, history, 114 minutes 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
  • -1
  • Vote: I do not like it

»
90 minutes ago, # |
  Vote: I like it +9 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).

  • »
    »
    72 minutes ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    Done

    It worked

    Thanks