Problem | waterbottles3 |
---|---|
User | dakingwawin |
Submission Time | 2024-12-09 14:20:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
waterbottles3.cpp: In function ‘int main()’:
waterbottles3.cpp:14:11: error: ‘k’ was not declared in this scope
14 | if( arr[k] < x){
| ^
waterbottles3.cpp:15:4: error: ‘total’ was not declared in this scope
15 | total += x - arr[k];
| ^~~~~
waterbottles3.cpp:22:27: error: ‘k’ was not declared in this scope
22 | if ( arr[p] < x) sum -= k-arr[p];
| ^
waterbottles3.cpp:24:27: error: ‘k’ was not declared in this scope
24 | if ( arr[p] < x) sum += k-arr[p];
| ^