Problem | waterbottles3 |
---|---|
User | brat |
Submission Time | 2025-09-25 21:50:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
waterbottles3.cpp: In function ‘int main()’:
waterbottles3.cpp:19:23: error: overloaded function with no contextual type information
19 | prev = bottles[index]
| ^
waterbottles3.cpp:22:24: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<=’
22 | if (prev < x & value <= prev) {
| ~~~~~~^~~~~~~
waterbottles3.cpp:22:7: error: parse error in template argument list
22 | if (prev < x & value <= prev) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
waterbottles3.cpp:22:31: error: cannot resolve overloaded function ‘prev’ based on conversion to type ‘bool’
22 | if (prev < x & value <= prev) {
| ^
waterbottles3.cpp:23:16: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long long int’ to binary ‘operator-’
23 | ans += prev -