Problem boxispull
User Joashhh
Submission Time 2024-01-01 17:59:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxispull.cpp: In function ‘int main()’:
boxispull.cpp:10:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
10 | ans = abs(x1-x2) + abs(y1-y2);
| ^~~
| abs
boxispull.cpp:12:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
12 | ans = abs(x1-x2) + abs(y1-y2) + 2;
| ^~~
| abs