Home > Back-end >  Debug variables appear not found in the current context
Debug variables appear not found in the current context

Time:09-26

Times are so hard, just want to learn a try baidu more than a hour can't solve,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

CodePudding user response:

Eldest brother you that there is no return value

CodePudding user response:

reference 1st floor weixin_46120888 response:
eldest brother you this not return a value

Well, but I want to know is how to solve the left appeared not found in the current context

CodePudding user response:

What is not the code with the strange characters.
Delete it to rewrite the code to try

CodePudding user response:

reference qybao reply: 3/f
can't is mixed with what strange characters in the code
Delete try rewriting it knock code

In several applications, is still the same not found in the current context

CodePudding user response:

The world how so magical, every time writing code so much stuff

CodePudding user response:

The main add a return 0; Try again

CodePudding user response:

refer to 6th floor ggglivw response:
main add a return 0; Try again

Has already been refilled, useless

CodePudding user response:

Compile time plus - try O1
The compiler to set there
- O1 - g

CodePudding user response:

Wrong, try using - O0

CodePudding user response:

references 9 f qybao response:
wrong, try the - O0

Or not,,,

CodePudding user response:

No one can solve it,,,

CodePudding user response:

No environment, survey the
You change the compiler to try

CodePudding user response:

The
refer to 12 floor qybao reply:
environment, survey the
You change the compiler try

In the setup vs stay on

CodePudding user response:

The
refer to 12 floor qybao reply:
environment, survey the
You change the compiler try

Ann if you try https://sm.myapp.com/original/Development/Dev-Cpp_5.11_TDM-GCC_4.9.2_Setup.exe , VS is too complex, not used

CodePudding user response:

The
refer to 12 floor qybao reply:
environment, survey the
You change the compiler try

This is my download devc++

CodePudding user response:

Where is currently running to all position
Seen from above the main back braces, and the last line is special show
That you perform to the current position is one of the two is
No matter where a beyond its own life cycle, it shows that, the not found
You run to your own to do the two a breakpoint inside, is within the scope of the life cycle, should can see

Look at your figure, Line: 12 Col: 2, explain your mouse point on the current, and finally the curly braces on the

CodePudding user response:

Use # include & lt; iostream>
Or # include & lt; Bits/stdc++. H>

CodePudding user response:

Why c + + header files and c content again? Try to c file

CodePudding user response:

Code in addition to no return, no other problems, should be the compiler where there is no good configuration, you can write code that is not in the main, direct return 0, can see this compile

CodePudding user response:

There is no hint, normal operation,

CodePudding user response:

You of this problem I also reappeared, its reason is because you debug is a single file, it will appear this kind of circumstance,
You need to build a project, there would be no this problem in engineering debug

CodePudding user response:

In fact this problem I have baidu to yesterday, the break in the box in the lower right corner where the GDK instead of a bunch of stuff. R

CodePudding user response:

I copied your code on my Devc++ run again, and I have a value, not appear not found in the current contex prompt, to the other code is to run the main () call after the end of the other functions, and other functions in variables from a value into the not found in the current context,
  • Related