I just started learning the basics of c++ and currently ive got a task from my learning app. The Code should be really simple I don't know what could be wrong. If I start the app, I can't enter data and the app shows some completely random numbers, it should calculate the numbers. Pls help.
#include <iostream>
using namespace std;
int main() {
int a,b,c ;
int sum;
cout << "enter first number \n";
cin >> a;
cout << "enter second number \n";
cin >> b;
cout << "enter third number \n";
cin >> c;
sum = a-b-c;
cout << "there are " << sum << "seats";
return 0;
}
Edit: the Compiler says "Split multiple Inputs into separate lines" and nothing else