save the file with cpp extension. then press run button.
Note that for the cs50 course you need to use ide50 workspace.
Just hit Ctrl+Shift+B After you save your file… btw you should learn C++ First.
i have the same proplem in here , please give me an advise bro to solve this proplem