Problem boxispull
User wangzichun
Submission Time 2026-11-29 20:50:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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