0_0_39064870_24678.cpp: In function 'int count_locks(int)':
0_0_39064870_24678.cpp:15:21: error: 'abs' was not declared in this scope
15 | if (abs(j - d) == 3 && d != j) {
| ^~~
0_0_39064870_24678.cpp:25:27: error: expected ';' at end of input
25 | for (int d = 1; d <= 4
| ^
| ;
0_0_39064870_24678.cpp:25:27: error: expected primary-expression at end of input
0_0_39064870_24678.cpp:25:27: error: expected ')' at end of input
25 | for (int d = 1; d <= 4
| ~ ^
| )
0_0_39064870_24678.cpp:25:27: error: expected statement at end of input
0_0_39064870_24678.cpp:25:27: error: expected '}' at end of input
0_0_39064870_24678.cpp:3:24: note: to match this '{'
3 | int count_locks(int N) {
| ^
|