0_0_34824613_16701.cpp:4:1: error: 'LL' does not name a type
LL gcd(LL a, LL b) {return b ? gcd(b, a % b) : a;}
^
0_0_34824613_16701.cpp:5:1: error: 'LL' does not name a type
LL lcm(LL a, LL b) {return a / gcd(a, b) * b;}
^
0_0_34824613_16701.cpp:6:1: error: 'LL' does not name a type
LL powmod(LL a, LL b, LL MOD) {LL ans = 1; while (b) {if (b % 2)ans = ans * a % MOD; a = a * a % MOD; b /= 2;} return ans;}
^
0_0_34824613_16701.cpp: In function 'int main()':
0_0_34824613_16701.cpp:13:1: error: 'LL' was not declared in this scope
LL ans = 0;
^
0_0_34824613_16701.cpp:14:4: error: expected ';' before 't'
LL t = 0;
^
0_0_34824613_16701.cpp:15:42: error: 't' was not declared in this scope
for (int i = 1; i <= n; i++)cin >> a[i], t += a[i] / k, b[i] = a[i] % k, ans += a[i];
^
0_0_34824613_16701.cpp:15:74: error: 'ans' was not declared in this scope
for (int i = 1; i <= n; i++)cin >> a[i], t += a[i] / k, b[i] = a[i] % k, ans += a[i];
^
0_0_34824613_16701.cpp:17:5: error: 't' was not declared in this scope
if (t >= n - 1) {
^
0_0_34824613_16701.cpp:18:9: error: 'ans' was not declared in this scope
cout << ans + k << endl;
^
0_0_34824613_16701.cpp:21:29: error: 'ans' was not declared in this scope
for (int i = 1; i <= x; i++)ans += (k - b[i]);
^
0_0_34824613_16701.cpp:22:9: error: 'ans' was not declared in this scope
cout << ans + k << endl;
^
|