boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:22:4: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
boxes.cpp:24:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
return cost;
^~~~~~
boxes.cpp:32:16: warning: use of an operand of type 'bool' in 'operator++' is deprecated [-Wdeprecated]
visited[p[i]]++;
^~
boxes.cpp:34:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
if(i==N-1)
^
boxes.cpp:9:16: warning: unused variable 'remain' [-Wunused-variable]
long long int remain=0;
^~~~~~
boxes.cpp:10:12: warning: unused variable 'visitor' [-Wunused-variable]
long long visitor=0;;
^~~~~~~
boxes.cpp:11:7: warning: unused variable 'x' [-Wunused-variable]
bool x=false;
^
boxes.cpp:5:31: warning: unused parameter 'K' [-Wunused-parameter]
long long delivery(int N, int K, int L, int p[]) {
^