Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

int main() {
  int N, M;
  cin &gt;&gt; N &gt;&gt; M;

  priority_queue&lt;ll&gt; pq;

  for (int i = 0; i &lt; N; i++) {
    ll A;
    cin &gt;&gt; A;
    pq.push(A);
  }

  while (M &gt; 0) {
    ll a = pq.top();
    pq.pop();

    pq.push(a / 2);
    M--;
  }

  ll ans = 0;
  while (!pq.empty()) {
    ll a = pq.top();
    pq.pop();
    ans += a;
  }

  cout &lt;&lt; ans &lt;&lt; endl;

  return 0;
}
</pre><pre id="for_copy0" class="source-code-for-copy" style="text-decoration: none; box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; position: absolute; left: -100000px; top: -100000px; caret-color: rgb(51, 51, 51); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-text-size-adjust: 100%;">#include &lt;bits/stdc++.h&gt;

using namespace std;

typedef long long ll;

int main() {
  int N, M;
  cin &gt;&gt; N &gt;&gt; M;

  priority_queue&lt;ll&gt; pq;

  for (int i = 0; i &lt; N; i++) {
    ll A;
    cin &gt;&gt; A;
    pq.push(A);
  }

  while (M &gt; 0) {
    ll a = pq.top();
    pq.pop();

    pq.push(a / 2);
    M--;
  }

  ll ans = 0;
  while (!pq.empty()) {
    ll a = pq.top();
    pq.pop();
    ans += a;
  }

  cout &lt;&lt; ans &lt;&lt; endl;

  return 0;
}
</pre><pre id="for_copy0" class="source-code-for-copy" style="text-decoration: none; box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; position: absolute; left: -100000px; top: -100000px; caret-color: rgb(51, 51, 51); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-text-size-adjust: 100%;">#include &lt;bits/stdc++.h&gt;

using namespace std;

typedef long long ll;

int main() {
  int N, M;
  cin &gt;&gt; N &gt;&gt; M;

  priority_queue&lt;ll&gt; pq;

  for (int i = 0; i &lt; N; i++) {
    ll A;
    cin &gt;&gt; A;
    pq.push(A);
  }

  while (M &gt; 0) {
    ll a = pq.top();
    pq.pop();

    pq.push(a / 2);
    M--;
  }

  ll ans = 0;
  while (!pq.empty()) {
    ll a = pq.top();
    pq.pop();
    ans += a;
  }

  cout &lt;&lt; ans &lt;&lt; endl;

  return 0;
}
</pre>&nbsp;<ol class="linenums" style="text-decoration: none; box-sizing: border-box; background-color: rgb(248, 248, 248); caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-text-size-adjust: 100%;"><li class="L0" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="com" style="box-sizing: border-box; color: rgb(136, 0, 0);">#include</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&lt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">bits</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">/</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">stdc</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">++.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">h</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&gt;</span></li><li class="L1" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L2" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">using</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">namespace</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> std</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L3" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L4" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: decimal !important;"><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">typedef</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">long</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">long</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> ll</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L5" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L6" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">int</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> main</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">()</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">{</span></li><li class="L7" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">int</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> N</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">,</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> M</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L8" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  cin </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&gt;&gt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> N </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&gt;&gt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> M</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L9" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: decimal !important;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L0" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  priority_queue</span><span class="str" style="box-sizing: border-box; color: rgb(0, 136, 0);">&lt;ll&gt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L1" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L2" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">for</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">(</span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">int</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> i </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">=</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> i </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&lt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> N</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> i</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">++)</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">{</span></li><li class="L3" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    ll A</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L4" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: decimal !important;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    cin </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&gt;&gt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> A</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L5" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">push</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">(</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">A</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">);</span></li><li class="L6" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">}</span></li><li class="L7" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L8" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">while</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">(</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">M </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&gt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">)</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">{</span></li><li class="L9" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: decimal !important;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    ll a </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">=</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">top</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">();</span></li><li class="L0" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">pop</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">();</span></li><li class="L1" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L2" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">push</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">(</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">a </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">/</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">2</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">);</span></li><li class="L3" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    M</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">--;</span></li><li class="L4" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: decimal !important;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">}</span></li><li class="L5" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L6" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  ll ans </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">=</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L7" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">while</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">(!</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">empty</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">())</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">{</span></li><li class="L8" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    ll a </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">=</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">top</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">();</span></li><li class="L9" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: decimal !important;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">pop</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">();</span></li><li class="L0" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">    ans </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">+=</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> a</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L1" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">}</span></li><li class="L2" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L3" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  cout </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&lt;&lt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> ans </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&lt;&lt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> endl</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L4" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: decimal !important;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L5" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">return</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L6" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">}</span></li></ol></body></html>

Compiler output:
a.cc:38:729: error: stray '#' in program
   38 | </pre><pre id="for_copy0" class="source-code-for-copy" style="text-decoration: none; box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; position: absolute; left: -100000px; top: -100000px; caret-color: rgb(51, 51, 51); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-text-size-adjust: 100%;">#include &lt;bits/stdc++.h&gt;
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
a.cc:75:729: error: stray '#' in program
   75 | </pre><pre id="for_copy0" class="source-code-for-copy" style="text-decoration: none; box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; position: absolute; left: -100000px; top: -100000px; caret-color: rgb(51, 51, 51); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-text-size-adjust: 100%;">#include &lt;bits/stdc++.h&gt;
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
a.cc:112:585: error: stray '#' in program
  112 | </pre>&nbsp;<ol class="linenums" style="text-decoration: none; box-sizing: border-box; background-color: rgb(248, 248, 248); caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-text-size-adjust: 100%;"><li class="L0" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="com" style="box-sizing: border-box; color: rgb(136, 0, 0);">#include</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&lt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">bits</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">/</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">stdc</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">++.</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">h</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&gt;</span></li><li class="L1" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L2" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">using</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">namespace</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> std</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L3" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L4" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: decimal !important;"><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">typedef</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">long</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">long</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> ll</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L5" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L6" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">int</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> main</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">()</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">{</span></li><li class="L7" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">int</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> N</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">,</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> M</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L8" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  cin </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&gt;&gt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> N </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">&gt;&gt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> M</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L9" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: decimal !important;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L0" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  priority_queue</span><span class="str" style="box-sizing: border-box; color: rgb(0, 136, 0);">&lt;ll&gt;</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> pq</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span></li><li class="L1" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(238, 238, 238); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">&nbsp;</span></li><li class="L2" style="box-sizing: border-box; line-height: 22.100000381469727px; background-color: rgb(245, 245, 245); list-style-type: none;"><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);">  </span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">for</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">(</span><span class="kwd" style="box-sizing: border-box; color: rgb(0, 0, 136);">int</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> i </span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">=</span><span class="pln" style="box-sizing: border-box; color: rgb(0, 0, 0);"> </span><span class="lit" style="box-sizing: border-box; color: rgb(0, 102, 102);">0</span><span class="pun" style="box-sizing: border-box; color: rgb(102, 102, 0);">;</span><span class="pln" style="box-sizing: border-b