construction.cpp: In function 'll get_max(ll, ll)':
construction.cpp:43:8: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
l = l+1 >> 1;
~^~
construction.cpp:44:8: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
r = r-1 >> 1;
~^~
construction.cpp: In function 'int main()':
construction.cpp:105:11: error: expected ']' before '{' token
c = C[B{k]], d = D[p] - D[K[k]];
^
construction.cpp:105:11: error: invalid types 'll [101010] {aka long long int [101010]}[ll [101010] {aka long long int [101010]}]' for array subscript
construction.cpp:71:20: warning: unused variable 'd' [-Wunused-variable]
ll i, p, k, s, c, d;
^
construction.cpp:122:1: error: expected '}' at end of input
}
^
construction.cpp:73:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
~~~~~^~~~~~~~~~~~
construction.cpp:78:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", C+i);
~~~~~^~~~~~~~~~~~~
construction.cpp:91:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld", A+i, B+i);
~~~~~^~~~~~~~~~~~~~~~~~~~~~