0_0_38508619_6624.cpp: In function 'int main()':
0_0_38508619_6624.cpp:4:16: error: 'scanf' was not declared in this scope
scanf("%d", &t);
^
0_0_38508619_6624.cpp:13:4: error: 'a' was not declared in this scope
a[i] = a[i - 1] + x;
^
0_0_38508619_6624.cpp:15:3: error: 'll' was not declared in this scope
ll sum = 0;
^
0_0_38508619_6624.cpp:18:7: error: expected ';' before 'L'
ll L = 1LL << (k - 1), R = (1LL << k) - 1;
^
0_0_38508619_6624.cpp:19:16: error: 'L' was not declared in this scope
if (k == 1) L = 0;
^
0_0_38508619_6624.cpp:23:17: error: 'max' was not declared in this scope
l = max(l, i);
^
0_0_38508619_6624.cpp:24:22: error: 'a' was not declared in this scope
while (l <= n && a[l] - a[i - 1] < L)
^
0_0_38508619_6624.cpp:24:40: error: 'L' was not declared in this scope
while (l <= n && a[l] - a[i - 1] < L)
^
0_0_38508619_6624.cpp:27:22: error: 'a' was not declared in this scope
while (r <= n && a[r] - a[i - 1] <= R)
^
0_0_38508619_6624.cpp:27:41: error: 'R' was not declared in this scope
while (r <= n && a[r] - a[i - 1] <= R)
^
0_0_38508619_6624.cpp:30:6: error: 'sum' was not declared in this scope
sum += ((2LL * i + l + r - 1) * (r - l) / 2) * k;
^
0_0_38508619_6624.cpp:33:20: error: 'sum' was not declared in this scope
printf("%lld\n", sum);
^
0_0_38508619_6624.cpp:33:23: error: 'printf' was not declared in this scope
printf("%lld\n", sum);
^
|