C++ Course - Do I Need PRO Account to Complete Problems?
Hi, I am doing Module 1 : Transportation. My code compiles fine and passes test cases in VS Code. However, when running the program, I am not able to take in any user input. Even If I hard-code the values, it does not work either. What is going on here? My code: #include <iostream> #include <string> using namespace std; int main() { cout << "enter bus passengers at station: " << endl; int stationPassengers = 0; cin >> stationPassengers; cout << stationPassengers; int lastBus = 50-(stationPassengers % 50); cout << "Number of empty seats: " << lastBus << "\n"; return 0; } I know this does not work with the multiples of 50 cases. The point is that when I execute the program, I cannot input anything to be assigned and then tested. Thanks! (I am using Chrome!)