User forums > Help

Code::Blocks shows different result from other IDE's

(1/3) > >>

marky1337:
Hi, I'm trying to do a programming problem using Kruskal's minimum spanning tree algorithm but that's not so important, my problem is that Code::Blocks gives me a different result from every other IDE i could find. The result is wrong while other IDEs give me the right answer with the same code. I tried it on 2 computers, same thing. So, what's wrong?

oBFusCATed:
http://wiki.codeblocks.org/index.php/FAQ-General

Most probably your code is wrong...  8)

stahta01:
The main problem is you do not know the difference between an compiler and a IDE.

Tim S.

marky1337:

--- Quote from: oBFusCATed on February 22, 2018, 02:14:53 am ---http://wiki.codeblocks.org/index.php/FAQ-General

Most probably your code is wrong...  8)

--- End quote ---

I took the code from geeksforgeeks and with exactly the same code I got different results on their IDE and on Code::Blocks.
The code: https://www.geeksforgeeks.org/greedy-algorithms-set-2-kruskals-minimum-spanning-tree-mst/


--- Quote from: stahta01 on February 22, 2018, 02:29:48 am ---The main problem is you do not know the difference between an compiler and a IDE.

Tim S.


--- End quote ---

Care to explain more? Don't just post-hunt.

BlueHazzard:
you give way to less information...
Give your operating system, your compiler, your compiler version, the other compiler version, codeblocks version, codeblocks installation file source

--- Quote ---my problem is that Code::Blocks gives me a different result from every other IDE i could find
--- End quote ---
what are different results?
This "different" can vary from crashing, black output, gibberish output, to totally fine output but different representation... And any difference can have different reasons.... We can not help with this few informations. Describe more, no describe EXACTLY every detail you have...

Are you using debug builds? Release builds? Do you know what a compiler is? Do you use different compilers for every IDE? What are the others ide? what compilers do they use? What if you use the other compilers with codeblocks?

Can you post a full rebuild log?
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F


--- Quote ---Care to explain more? Don't just post-hunt.
--- End quote ---
Well, two seconds google, or just 2 sec on wiki would solve this:
https://en.wikipedia.org/wiki/Integrated_development_environment
http://wiki.codeblocks.org/index.php/FAQ-General#Q:_What_is_Code::Blocks.3F
http://wiki.codeblocks.org/index.php/FAQ-General#Q:_What_Code::Blocks_is_not.3F


Navigation

[0] Message Index

[#] Next page

Go to full version