Share your repls and programming experiences

← Back to all posts
7outofBLIP (4)

For @TheDrone7 's WEEKLY challenge #6.

7outofBLIP (4)

@TheDrone7 noooooooooooooooooooooooooooooooooooooooooooooooooooo
I put in the wrong repl. I know you don't care but still...

DynamicSquid (2655)

@7outofBLIP oh cool, you fixed it! Oh, also...

1) #include <bits/stdc++.h> don't use that
2) it's better to declare prime_check() in a header file, and define it in a .cpp file
3) int main(void) don't do that, that's C not C++, do this: int main()

7outofBLIP (4)

@DynamicSquid The last two make sense. However, why should I not use #include <bits/stdc++.h>?

DynamicSquid (2655)

@7outofBLIP It's not standard - and that can cause a lot of problems, and programmers never like to import everything if we're not using everything

Read more about it here: