/ SeriousOJ /

Record Detail

Compile Error

foo.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.

Code

#include <iostream>

using namespace std;


int main()
{
    long int t,n,d,a,b;
    cin>>t;
    for(int i=0;i<t;i++){
        cin>>n>>d>>a>>b;
        long int k= n-d;
        long int cost = (d*a) + (k*b);
        cout<<cost<<endl;
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1090 Summer trip
Contest
Brain Booster #5
Language
C99 (GCC 13.2.0)
Submit At
2024-09-05 16:30:08
Judged At
2024-11-11 03:00:30
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes