Problem waterbottles
User yanwen
Submission Time 2025-03-03 17:56:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbottles.cpp:1:1: error: ‘include’ does not name a type
1 | include <iostream>
| ^~~~~~~
waterbottles.cpp: In function ‘int main()’:
waterbottles.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin >> h >> w >> k;
| ^~~
waterbottles.cpp:18:33: error: ‘di’ was not declared in this scope; did you mean ‘i’?
18 | int new_i = i + di[l];
| ^~
| i
waterbottles.cpp:19:33: error: ‘dj’ was not declared in this scope; did you mean ‘j’?
19 | int new_j = j + dj[l];
| ^~
| j
waterbottles.cpp:26:5: error: ‘cout’ was not declared in this scope
26 | cout << ans;
| ^~~~
waterbottles.cpp:26:16: error: expected ‘}’ at end of input
26 | cout << ans;
|