Problem | moneychanger |
---|---|
User | NgMinSong123 |
Submission Time | 2024-04-10 19:00:20 |
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:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
6 | if (find(arr, arr + n, p.first) == n - 1) {
| ^
moneychanger.cpp:37:52: error: invalid conversion from ‘long long int*’ to ‘long long int’ [-fpermissive]
37 | for (long long i = find(arr, arr + n, p.first) + 1; i < n; i++) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
| |
| long long int*