Problem | waterbottles3 |
---|---|
User | dakingwawin |
Submission Time | 2024-12-09 11:30:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
waterbottles3.cpp: In function ‘int main()’:
waterbottles3.cpp:35:28: error: request for member ‘second’ in ‘arr[(arr2[i].std::pair<long long int, long long int>::first - 1)]’, which is of non-class type ‘long long int’
35 | if(arr[arr2[i].first-1].second<x){
| ^~~~~~