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


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-29 19:37:47, Gzip enabled