Problem stamps
User PlayVoltz
Submission Time 2023-08-29 22:05:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stamps.cpp:8:1: error: expected initializer before ‘vector’
8 | vector <vector<pair<ll, ll> > > dp;
| ^~~~~~
stamps.cpp: In function ‘std::pair<long long int, long long int> stamps(long long int, long long int, long long int)’:
stamps.cpp:16:10: error: ‘dp’ was not declared in this scope
16 | return dp[val][count];
| ^~
stamps.cpp:21:11: error: ‘vect’ was not declared in this scope
21 | if (val-vect[i]>=0){
| ^~~~
stamps.cpp:32:2: error: ‘dp’ was not declared in this scope; did you mean ‘p’?
32 | dp[val][count] = make_pair(minnum, sum);
| ^~
| p
stamps.cpp: In function ‘int main()’:
stamps.cpp:43:8: error: ‘vect’ was not declared in this scope
43 | cin>>vect[i];
| ^~~~
stamps.cpp:45:7: error: ‘vect’ was not declared in this scope
45 | sort(vect.begin(), vect.end(), greater<ll>());
| ^~~~