[Solved] Why “non-static variable cannot be referenced from a static context” produced for one program but not another? [duplicate]

[ad_1]

Why “non-static variable cannot be referenced from a static context” produced for one program but not another? [duplicate]

[ad_2]

solved Why “non-static variable cannot be referenced from a static context” produced for one program but not another? [duplicate]