F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 22:38:03, Gzip enabled