Problem | lightningrod |
---|---|
User | samvar0907 |
Submission Time | 2023-12-31 18:34:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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]));
| ^
lightningrod.cpp:51:1: error: expected ‘}’ at end of input
51 | }
| ^
lightningrod.cpp:18:11: note: to match this ‘{’
18 | int main(){
| ^