$ time g++ -O3 -Wall -pedantic-errors -o test test.cc
real 0m1.533s
user 0m1.303s
sys 0m0.181s
that's 11 times slower
More importantly, "#include <bits/stdc++.h>" means you're no longer using C++: your program can't be used with any other compiler, a future version of GCC may choose to drop or change that header, and you won't be able to use this at work.
i dont understand the difference between compilation time and execution time, execution time is the one that matters in contests or the compilation time? i dont understand this