Click here to Skip to main content
16,012,759 members

Comments by Rahul Thengadi (Top 20 by date)

Rahul Thengadi 18-Jun-16 13:31pm View    
after applying above solution it shows: Segmentation fault (core dumped)
Rahul Thengadi 9-Jun-16 1:46am View    
i will improve my the question, i think you didn't get the whole situation.
Rahul Thengadi 9-Jun-16 0:18am View    
But in the problem it is clearly specified that the the integers are delimited by space and should be accepted through console.
I tried getline(cin,temp) and then check the temp.empty().But as i used getline method i can't check whether user has given correct input
Rahul Thengadi 8-Jun-16 23:10pm View    
It is console input and input should separated by space.
Im using fedora
Rahul Thengadi 8-Jun-16 5:57am View    
Ya i will try one more time as soon as new version of g++ compiler is installed on my pc.
The old compiler wasn't supporting 'stoi' so i tested that program on codechef online ide.