Problem | moneychanger |
---|---|
User | NgMinSong123 |
Submission Time | 2024-04-10 18:57:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘long long int dp(long long int, long long int, long long int*, std::pair<long long int, long long int>)’:
moneychanger.cpp:6:11: error: request for member ‘find’ in ‘arr’, which is of non-class type ‘long long int*’
6 | if (arr.find(p.first) == n - 1) {
| ^~~~
moneychanger.cpp:37:28: error: request for member ‘find’ in ‘arr’, which is of non-class type ‘long long int*’
37 | for (long long i = arr.find(p.first) + 1; i < n; i++) {
| ^~~~