**********************bfs

error in code

@ayu2321 the program ran successfully and gave an output as well…what problem are you facing?

error is coming in line 28

@ayu2321 it is working perfectly fine on the ide. can you show me what the error message is? Also make sure that you are using C++11 or c++14 for compilation

i am working on cb web app… it is only showing the line number ,also may codes dont work here and if i run them on ideone they work fine

hi @ayu2321 it is running fine on the CB ide as well… see it here https://ide.codingblocks.com/s/278943
It must be a compiler issue, some of the newer features are not available in older compiler versions, you have to manually set it up so that the latest version of C++ is being used.
This link might be useful https://stackoverflow.com/questions/18174988/how-can-i-add-c11-support-to-codeblocks-compiler

it is working fine now…thank you:)

1 Like

@ayu2321 dont forget to mark the doubt as resolved :slight_smile: