idkao's blog

By idkao, 5 months ago, In English

Hi everyone.

Why same code gave C.E at C++ 20 but it worked fine at C++ 17.

C.E at C++ 20: 267653364

ACC at C++ 17 : 267653431

Can someone explain please?

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
5 months ago, # |
  Vote: I like it +6 Vote: I do not like it

The header <bits/extc++.h> doesn't work for the C++ 20 compiler, instead you'll need to use

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>