Check out example codes for "ios_base::sync_with_stdio(false);cin.tie(NULL);". It will help you in understanding the concepts better.

Code Example 1

cin.tie(NULL);

Code Example 2

ios_base::sync_with_stdio(false);

Learn ReactJs, React Native from akashmittal.com