Problem waterbottles3
User xragon
Submission Time 2024-12-09 11:25:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbottles3.cpp: In function ‘int main()’:
waterbottles3.cpp:21:4: error: ‘tot’ was not declared in this scope
21 | tot += (x - arr[k]);
| ^~~
waterbottles3.cpp:24:11: error: ‘tot’ was not declared in this scope
24 | cout << tot << "\n";
| ^~~