0_0_36631728_4413.cpp: In function 'int main()':
0_0_36631728_4413.cpp:11:9: error: 'LL' was not declared in this scope
LL ans = 0;
^
0_0_36631728_4413.cpp:12:12: error: expected ';' before 't'
LL t = 0;
^
0_0_36631728_4413.cpp:13:50: 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_36631728_4413.cpp:13:82: 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_36631728_4413.cpp:15:13: error: 't' was not declared in this scope
if (t >= n - 1) {
^
0_0_36631728_4413.cpp:16:21: error: 'ans' was not declared in this scope
cout << ans + k << endl;
^
0_0_36631728_4413.cpp:19:41: error: 'ans' was not declared in this scope
for (int i = 1; i <= x; i++)ans += (k - b[i]);
^
0_0_36631728_4413.cpp:20:21: error: 'ans' was not declared in this scope
cout << ans + k << endl;
^
|