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
17
u/[deleted] Mar 19 '20
I'd much rather hire someone who can balance a binary tree than someone who knows how to implement perfect forwarding manually.
One is a timeless concept that is fundamental to computer science and transfers to a variety of different languages and problem domains, the other is C++ minutiae that is not only a kind of hack to work around the limitations of C++ as a language, but even within the C++ community is only relevant to a tiny subset of C++ developers.