Salut,eu asa am facut sa aflu pasageri si combustibilul
#include
#include
using namespace std;
ifstream fin("cabina.in");
ofstream fout("cabina.out");
int main()
{
int a, b, c=0, p, s=0, n, i=2;
fin>>n;
fin>>a>>p;
s=s+p;
fin>>b>>p;
for(i=2; ia)
{
c=c+(b-a)*3;
}
if(b>b>>p;
}
fout