How does input work with C++ in IDE mode?

I’m getting my arg count as 1 in my main, no matter what I put in the input box.

https://www.codechef.com/viewsolution/47854152

My bad. I realised that the input is being given using cin, rather than directly as arguments throught main. e.g.:

https://www.codechef.com/viewsolution/47856356

1 Like