GHORU AND HIS DIFFICULT DOUBTS
CodeChefOpen on judge ↗
$GHORU$ is trying to build a C++ $compiler$. He has few doubts in the following problem. Help him to answer the question. Given a $code$, you need to print the $output$ of code. $cin$ $>>$ $a$ $>>$ $b$ $;$ Scanning two integers in $a$ and $b$. if a or b is declared before, its value should be $updated$. $cout$ $<<$ $"$$A:$ $"$ $<<$ $a$ $;$ if a = 1, then out
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start