Problem lightningrod
User samvar0907
Submission Time 2023-12-31 18:34:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp:17:5: error: redefinition of ‘int X [21]’
17 | int X[21], Y[21];
| ^
lightningrod.cpp:15:5: note: ‘int X [21]’ previously declared here
15 | int X[21], Y[21];
| ^
lightningrod.cpp:17:12: error: redefinition of ‘int Y [21]’
17 | int X[21], Y[21];
| ^
lightningrod.cpp:15:12: note: ‘int Y [21]’ previously declared here
15 | int X[21], Y[21];
| ^
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:42:80: error: ‘y’ was not declared in this scope
42 | safe |= (bm & (1 << j)) && (abs(X[j] - X[i]) <= abs(Y[j] - y[i]));
| ^