Runtime error in code

Why is it showing runtime error? It Is working fine in my system as well as gfg ide. Please help!

@Paras-Kaushik-446920412565840 please save your code on ide.codingblocks.com and share the link

Here is the link to the code: https://ide.codingblocks.com/s/243165

hi @Paras-Kaushik-446920412565840 you can take input in a real sample manner as opposed to what you are doing right now.
The name will be a single word only so you can simply take input like
cin >> name
cin >> salary

Yes, it worked. Thanks

1 Like

@Paras-Kaushik-446920412565840 please mark this doubt as resolved