Problem explosion
User limmingyao21
Submission Time 2023-07-01 20:47:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

explosion.cpp: In function ‘int main()’:
explosion.cpp:14:3: error: expected initializer before ‘cin’
14 | cin >> X >> Y;
| ^~~
explosion.cpp:16:30: error: ‘Y’ was not declared in this scope
16 | long dist = abs(X=A) + abs(Y-B);
| ^
explosion.cpp:26:2: error: expected ‘}’ at end of input
26 | }
| ^
explosion.cpp:5:1: note: to match this ‘{’
5 | {
| ^