Plz ans my query

Provided the link of code of question Spark to code

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

There is one statement

cin >> ws ;

where ws is not even defined
is ws any inbuilt function or keyword
what is its use and how it is used ?

std::ws

Extracts as many whitespace characters as possible from the current position in the input sequence. The extraction stops as soon as a non-whitespace character is found. These extracted whitespace characters are discarded.
http://www.cplusplus.com/reference/istream/ws/

2 Likes

Thanks Bro .