/ SeriousOJ /

Record Detail

Compile Error

foo.cc: In function 'int main()':
foo.cc:4:4: error: 'cin' was not declared in this scope
    4 |    cin >> a;
      |    ^~~
foo.cc:9:4: error: 'cout' was not declared in this scope
    9 |    cout <<e;
      |    ^~~~

Code

int main()
{
   long long int a,b,c,d,e,f;
   cin >> a;
   b=a/500;
   c=a%500;
   d=c/5;
   e=(b*1000)+(d*5);
   cout <<e;
   return 0;

}

Information

Submit By
Type
Submission
Problem
P1132 Festivity Frenzy!
Contest
Brain Booster #8
Language
C++17 (G++ 13.2.0)
Submit At
2025-02-17 14:57:44
Judged At
2025-02-17 14:57:44
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes