Here is a simple question (not simple for a beginner):-
How to take n space separated integers as input in c++ without any clumsy code, in a simple and efficient manner?
I previously used python for programming and it has a neat way of doing that but I couldn’t find anything like that in c++. On searching through the net I found some code but surprisingly it was larger than the actual code for a problem (neither easy to implement nor to understand).
I would be grateful if you could tell the code that you use and explain the reason behind it.