+ 1

Robot Barman got a bit drunk (Solved)

Says that there’s a few things missing but they seem to be there. Problem is Robot Barman https://code.sololearn.com/cX6F7k6lpZHR/?ref=app The errors: ./Playground/file0.cs(34,17): error CS0103: The name 'd' does not exist in the current context ./Playground/file0.cs(34,19): error CS0103: The name 's' does not exist in the current context

20th Jun 2022, 4:52 PM
Tristan Smith
Tristan Smith - avatar
6 Respuestas
0
cetozofumee Now it is right
20th Jun 2022, 6:44 PM
A͢J
A͢J - avatar
+ 1
cetozofumee what is d and s in your code? And why you have written code in finally block?
20th Jun 2022, 5:57 PM
A͢J
A͢J - avatar
0
d stands for drinks, s stands for shelves May or maynot have thought it would work A͢J
20th Jun 2022, 6:18 PM
Tristan Smith
Tristan Smith - avatar
0
cetozofumee This is programming and here no shortcut works. You have to defined what is d and what is s. Have you heard about data type and variable? d and drinks both are different value
20th Jun 2022, 6:24 PM
A͢J
A͢J - avatar
0
Try it now A͢J
20th Jun 2022, 6:36 PM
Tristan Smith
Tristan Smith - avatar
0
Alright
20th Jun 2022, 6:56 PM
Tristan Smith
Tristan Smith - avatar