fork download
  1. #pragma GCC optimize("Ofast")
  2. #pragma GCC target("abm")
  3. #include <bits/stdc++.h>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. cout << __lg(1) << endl;
  9. volatile int i = 1;
  10. do {
  11. cout << __lg(i) << endl;
  12. ++i;
  13. } while (i <= 1);
  14. }
Success #stdin #stdout 0s 4240KB
stdin
Standard input is empty
stdout
0
31