0_0_33612043_6126.cpp:10:1: error: 'll' does not name a type
ll sum[600000] = {0, 1, 3, 5}, ans[600000];
^
0_0_33612043_6126.cpp:10:30: error: expected unqualified-id before ',' token
ll sum[600000] = {0, 1, 3, 5}, ans[600000];
^
0_0_33612043_6126.cpp:10:43: error: expected constructor, destructor, or type conversion before ';' token
ll sum[600000] = {0, 1, 3, 5}, ans[600000];
^
0_0_33612043_6126.cpp: In function 'void init()':
0_0_33612043_6126.cpp:17:13: error: 'sum' was not declared in this scope
sum[total] = sum[total - 1] + seq[total];
^
0_0_33612043_6126.cpp:19:13: error: 'sum' was not declared in this scope
if (sum[total] > maxn) break;
^
0_0_33612043_6126.cpp:19:26: error: 'maxn' was not declared in this scope
if (sum[total] > maxn) break;
^
0_0_33612043_6126.cpp:21:5: error: 'ans' was not declared in this scope
ans[1] = 1;
^
0_0_33612043_6126.cpp:23:33: error: 'sum' was not declared in this scope
ans[i] = (ans[i - 1] + (sum[i] + sum[i] - seq[i] + 1) * seq[i] / 2 % mod * i) % mod;
^
0_0_33612043_6126.cpp: In function 'int main()':
0_0_33612043_6126.cpp:37:29: error: 'sum' was not declared in this scope
int p = upper_bound(sum + 1, sum + total, n) - sum - 1;
^
0_0_33612043_6126.cpp:38:18: error: 'ans' was not declared in this scope
cout << (ans[p] + (sum[p] + 1 + n) * (n - sum[p]) / 2 % mod * (p + 1)) % mod << endl;
^
|