Not accepting the inputs

Sir here my program is not taking inputs from an input text file. It is showing that “operator ‘<’ is reserved for future use”. Please let me know what is happening.

hello @bhavish_rohilla

bhaiya is using mac , urs system may have different os.
so this syntax may not work in ur system

Yes but I am not getting command for windows anywhere. Can you please tell me the command

i myself use ubuntu.
check this link , it might be helpful.

btw which ide u r using ?

i am using Sublime Text as told in the course previously. I used VS Code before

#ifndef ONLINE_JUDGE
    // for getting input from input.txt
    freopen("input.txt", "r", stdin);
    // for writing output to output.txt
    freopen("output.txt", "w", stdout);
#endif

add these two lines in ur code code ,and it will automically read from input.txt file and write it in output.txt file.

or u can use vs code and use its terminal to run the command that is used in video

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.