Bits/stdc++.h giving me compilation error

I was trying to switch from iostream to bits.stdc++ because of a TLE error. But when I try using it, I keep getting compilation errors. Can someone tell me why am I getting these errors?

Solution with iostream and bits

1 Like

Use
#include <bits/stdc++.h>
At the start of your program

reply with your code

In the IDE you can check the error message post compilation error. There was a semicolon missing and also call to function was ambiguous as std :: function also is included with header bits/stdc++.h