Mihail
well that should have it
Mihail
codeblocks-17.12mingw-setup.exe
when you go into the compiler settings tab do you see one listed there?
Dima
Anonymous
when you go into the compiler settings tab do you see one listed there?
I thing there was not anyone and then i clicked compiler option and tried auto detect option of toolchain executables then it says could not detect auto installation path of Microsoft visual c++
Anonymous
try re-running the setup and make sure to check for any compiler-related options
By default it shows Microsoft visual c++ 2010 There are many other options
Mihail
does it also show one labelled GCC?
Mihail
whish should be highlighted as installed or available
Mihail
Yes many
yes but most of them aren't highlighted and so are not installed/available
Mihail
does only MSVC++ 2010 show as installed?
Anonymous
does only MSVC++ 2010 show as installed?
It shows that So I thing it is installed but then it was not able to auto detect the path
klimi
Where is my bleach
Mihail
pictures of screens aren't allowed, but look at the dropdown above
Anonymous
Sorry for that
Mihail
you could send a screenshot
Mihail
not a picture of a screen tho
Anonymous
It's screenshot
Mihail
Mihail
It's a photo of a screen
Anonymous
Ok I understand
professor
Is anyone instead into vulnerability research from here?
Anonymous
Think here what I should do
Anonymous
It's a photo of a screen
Actually in my country India telegram web is not properly working man Only app is properly working It seems banned or gives multiple errors that's why I have to take picture Mihail Think here what should I do now mihail
Francisco
Actually in my country India telegram web is not properly working man Only app is properly working It seems banned or gives multiple errors that's why I have to take picture Mihail Think here what should I do now mihail
You could also send a pastebin/compiler explorer/wandbox link. There's many good ways to share code in Telegram (even formatting is a good solution), but pictures of a screen are just horrible
Anonymous
I don't have anyone of them
Francisco
Oh, you don't have a browser? If you do, then you have those
Francisco
Formatting code in Telegram is as simple as enclosing it between three consecutive `
Francisco
Like this This is multiline code as you can see Or you can do inline code by enclosing the code between one `
Francisco
Don't tell excuses when you have a lot of tools to correctly share your code
Anonymous
Formatting code in Telegram is as simple as enclosing it between three consecutive `
Telegram web or desktop is not working man in India It seems blocked I am seeing everything from my phone
Mihail
where you had selected MSVC++ 2010
Anonymous
In settings
Francisco
it's not code he's trying to share
You can format error messages too. The code formatting is not restricted to code
Mihail
that he's trying to do
Steve
Hello I am called Steve and new in CPP i have a problem with writing a program that prints prime number >=50
Steve
Please \
Mihail
well tell us what the problem is
Steve
Just a simple program that will print prime number out on the screen
Mihail
and what exactly is your problem?
Steve
and what exactly is your problem?
print prime number out on the screen
Steve
What have you tried? Some code?
okay let me send you the code then
Francisco
Send it here, not to me
Steve
#include <iostream> using namespace std; int main() { int a; int d=2; cout << "Please enter your number \n"; cin>>a; for( d>=a; d++){ if(a%d!=0){ cout << "prime\n"; } else { cout << "Not prime \n"; } } return 0; }
Steve
But is not working
Steve
I have tried but still not working please
I_Interface
it's wrong algorithm
I_Interface
Mihail
also you should move than int d=2; into the for, like so: for(int d = 2; d <= a; d++)
Francisco
Mihail
and sqrt mb ?
if he's testing small numbers it might be slower, but for anything slighly larger, yes
Mihail
Steve if a number isn't divisable (with a remainder of 0) by any of the numbers smaller than it's square root, it's prime
Mihail
so you're doing some unnecessary checks
Steve
But still getting error when i run
Mihail
But still getting error when i run
well what's the error?
Steve
Can someone please send me the code
Francisco
Steve
this
Mihail
this
you're missing an init statement
Mihail
and also your logic isn't correct
Mihail
as everytime you check a number it'd say either prime or not prime
Mihail
it should do that once
Steve
it should do that once
You mean i shoud just cout ............
Steve
right
Steve
???