Problem boxispull
User friendlyfexr
Submission Time 2026-06-15 12:03:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxispull.cpp: In function ‘int main()’:
boxispull.cpp:11:12: error: ‘math’ was not declared in this scope
11 | int dx = math.abs(x2-x1);
| ^~~~
boxispull.cpp:15:13: error: expected ‘;’ before ‘}’ token
15 | time = dy
| ^
| ;
16 | } else if (dy == 0) {
| ~
boxispull.cpp:17:13: error: expected ‘;’ before ‘}’ token
17 | time = dx
| ^
| ;
18 | } else if (dx == 0 && dy == 0) {
| ~
boxispull.cpp:19:12: error: expected ‘;’ before ‘}’ token
19 | time = 0
| ^
| ;
20 | } else {
| ~
boxispull.cpp:21:22: error: expected ‘;’ before ‘}’ token
21 | time = dx + dy + 2 // 2 from turning to the y-axis
| ^
| ;
22 | }
| ~