0

Why is this Code not working

I'm working on a simple code (new to c++) and it gives me a compilatilon error. Where is my mistake? https://code.sololearn.com/ce98EmzoyJkv/?ref=app

20th Jul 2018, 5:34 PM
FuFuNAIK
FuFuNAIK - avatar
5 Answers
+ 3
Try moving the int sum = x+y line below the cin lines also the cout line should be << instead of >>
20th Jul 2018, 5:47 PM
S C
20th Jul 2018, 6:08 PM
Satyam
+ 2
thx guys
20th Jul 2018, 6:14 PM
FuFuNAIK
FuFuNAIK - avatar
+ 1
you are welcome.
20th Jul 2018, 6:15 PM
Satyam
+ 1
yeah cuz before it was so ething like 0+0=0 print 0
20th Jul 2018, 6:18 PM
darkorbit17493