#WEEKLY 6
7outofBLIP (4)

For @TheDrone7 's WEEKLY challenge #6.

You are viewing a single comment. View All
DynamicSquid (1970)

@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 (1970)

@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: https://stackoverflow.com/questions/62419183/why-cant-declare-string-function-in-switch