boxes.cpp: In function 'int dist1(int, int)':
boxes.cpp:10:21: error: 'L' was not declared in this scope
10 | return (b - a + L) % L;
| ^
boxes.cpp: In function 'int dist2(int, int)':
boxes.cpp:14:21: error: 'L' was not declared in this scope
14 | return (a - b + L) % L;
| ^
boxes.cpp: At global scope:
boxes.cpp:17:5: error: ambiguating new declaration of 'int delivery(int, int, int, int*)'
17 | int delivery(int N, int K, int L, int pos[]){
| ^~~~~~~~
In file included from boxes.cpp:1:
boxes.h:4:11: note: old declaration 'long long int delivery(int, int, int, int*)'
4 | long long delivery(int N, int K, int L, int p[]);
| ^~~~~~~~
boxes.cpp: In function 'int delivery(int, int, int, int*)':
boxes.cpp:20:14: error: request for member 'begin' in 'pos', which is of non-class type 'int*'
20 | sort(pos.begin(), pos.end(), [&](int a, int b) {
| ^~~~~
boxes.cpp:20:27: error: request for member 'end' in 'pos', which is of non-class type 'int*'
20 | sort(pos.begin(), pos.end(), [&](int a, int b) {
| ^~~