Bläddra i källkod

add sync_with_stdio

Olivier Marty 8 år sedan
förälder
incheckning
c5f2108d8d
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      code/Tips.cpp

+ 3 - 0
code/Tips.cpp

@@ -20,3 +20,6 @@ __builtin_ctz(unsigned int) // number of trailing 0-bits
 // __builtin_ctz(0) is undefined
 __builtin_popcount(int) // number of 1-bits
 // __builtin_popcount(0110b) = 2
+
+// desynchronise standard i/o
+ios::sync_with_stdio(false);