Advertisement
Josif_tepe

Untitled

Apr 21st, 2022
960
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None
  1. #include <iostream>
  2. #include <cstring>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9.     int p = 10;
  10.     cout << __builtin_popcount(p) << endl;
  11.     return 0;
  12. }
  13.  
Advertisement
RAW Paste Data Copied
Advertisement