I have Submitted the Code But I got only 30 Marks.

I am not able to understand what does it mean by sub tasks given in the Problem.

Please Help!

Problem:- https://www.codechef.com/LRNDSA01/problems/ZCO14003

included libraries: string, iostream, vector

using namespace std;

int main(){

long long temp_sum{0}, tot_rev{0}, price{0}, t;

cin>>t;

vector prices(t);

```
for(auto &price : prices)
cin>>price;
for(auto price : prices){
for(auto a : prices){
if(a >= price){
temp_sum += price;
}
}
if(temp_sum > tot_rev){ tot_rev = temp_sum; }
temp_sum = 0;
}
cout<<tot_rev;
return 0;
```

}