Problem waterbomb
User rasquait
Submission Time 2025-11-30 20:12:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbomb.cpp: In function ‘int main()’:
waterbomb.cpp:17:17: error: ‘i’ was not declared in this scope
17 | long T = array[i] - d;
| ^
waterbomb.cpp:35:23: error: expected ‘;’ before ‘continue’
35 | if (test < array[i] continue;
| ^~~~~~~~~
| ;
waterbomb.cpp:36:4: error: expected primary-expression before ‘else’
36 | else {bool_ = false; break;}
| ^~~~
waterbomb.cpp:35:33: error: expected ‘)’ before ‘else’
35 | if (test < array[i] continue;
| ~ ^
| )
36 | else {bool_ = false; break;}
| ~~~~
waterbomb.cpp:37:3: error: expected primary-expression before ‘}’ token
37 | }
| ^