Solution to the problem number 12403 of UVA - 12403.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int cases = 1,number,sum=0;
    cin>>cases;
    string a;
    while(cases--)
    {
       cin>>a;
       if(a=="report")
       cout<<sum<<endl;
       else
       {
       cin>>number;
       sum+=number;
       }
    }
return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!