Why so many students are using '#include<bits/stdc++.h>' instead of '#include<iostream>'?
I am hiring for my company. And the codes submitted for a test problem has '#include<bits/stdc++.h>' at the beginning. The MacOS default compiler complains
main.cpp:1:9: fatal error: 'bits/stdc++.h' file not found
#include<bits/stdc++.h>
^~~~~~~~~~~~~~~
1 error generated.
Why people are using '#include<bits/stdc++.h>'?
225
Upvotes
1
u/Fureeish Mar 20 '20
To not reuse the same identifier. For instance, I know that Herb Sutter somewhere claimed that they considered something like
T&?orT&!for rvalue references. Why not adaptT&&as rvalue reference and, for example, one of the formers for forwarding reference? For those who are used to&&everywhere, it surely looks at least weird, but try to take a different perspective.