+ 1

Whats wrong with this code.. plz help me out..

https://code.sololearn.com/c602QYzMpVc3/?ref=app

10th Apr 2019, 12:35 PM
Jayachandran Thuwaragesh
Jayachandran Thuwaragesh - avatar
3 Answers
+ 2
I don't see problem in your code, except its poor indentation. You need to run your code in an IDE such as Visual Studio for the interactivity. On sololearn, codes are compiled at their server so you have to input everything before the app runs.
10th Apr 2019, 12:44 PM
Gordon
Gordon - avatar
0
Gordon but it shows sm compilation errors... saying that "the name 'c' does not exist in the current context" in line 27 đŸ€”đŸ€” Anyways.. Thanx a lot for ur answer 😊
10th Apr 2019, 4:39 PM
Jayachandran Thuwaragesh
Jayachandran Thuwaragesh - avatar
0
Demo (not fully solving the problem for you) : https://code.sololearn.com/coxtyv6PwZSx/?ref=app 1. Fixing indentation until the problem. 2. My comment at line 44, 33, 21 of my code snippet) 3. Variable scope issues, your condition is using a variable declared in the do-while loop. Solution is to elevate the declaration and initialization to the functional scope. 4. You will need to do the same for your deposit() and withdraw()
10th Apr 2019, 9:12 PM
Gordon
Gordon - avatar