Need solution to solve a simple presentation error

I am facing an error, that is presentation error.Being a beginner to c++ , i am stucked on a question which listed below:

Two cars (X and Y) leave in the same direction. The car X leaves with a constant speed of 60 km/h and the car Y leaves with a constant speed of 90 km / h.

In one hour (60 minutes) the car Y can get a distance of 30 kilometers from the X car, in other words, it can get away one kilometer for each 2 minutes.

Read the distance (in km) and calculate how long it takes (in minutes) for the car Y to take this distance in relation to the other car.

:::Input:::

30

:::Output::::

60 minutos (minutes in portuguese)

Now, upon submitting the code it says presentation error. So give a solution ,thanx in advance.

:::::::::::::::Below my code::::::::::

#include
using namespace std;

int main(){

int Y;

cin >> Y ;
cout << 2*Y << " minutos " << endl;

return 2*Y;

}
Last edited on
Topic archived. No new replies allowed.