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_36719540_30809.cpp:17:1: error: 'll' does not name a type
 ll n,a[maxn];
 ^
0_0_36719540_30809.cpp:18:1: error: 'll' does not name a type
 ll cal(ll x,ll y) {
 ^
0_0_36719540_30809.cpp: In function 'int main()':
0_0_36719540_30809.cpp:26:17: error: 'time' was not declared in this scope
  srand(time(NULL));
                 ^
0_0_36719540_30809.cpp:27:10: error: 'read' was not declared in this scope
  int _ = read;
          ^
0_0_36719540_30809.cpp:29:3: error: 'n' was not declared in this scope
   n = read;
   ^
0_0_36719540_30809.cpp:30:27: error: 'a' was not declared in this scope
   for(int i=1; i<=n; i++) a[i] = read;
                           ^
0_0_36719540_30809.cpp:31:3: error: 'll' was not declared in this scope
   ll ans = 1;
   ^
0_0_36719540_30809.cpp:36:7: error: expected ';' before 'diff'
    ll diff = abs(a[p1] - a[p2]);
       ^
0_0_36719540_30809.cpp:37:11: error: expected ';' before 'i'
    for(ll i=2; 1LL * i * i <= diff; i ++) {
           ^
0_0_36719540_30809.cpp:37:22: error: 'i' was not declared in this scope
    for(ll i=2; 1LL * i * i <= diff; i ++) {
                      ^
0_0_36719540_30809.cpp:37:31: error: 'diff' was not declared in this scope
    for(ll i=2; 1LL * i * i <= diff; i ++) {
                               ^
0_0_36719540_30809.cpp:40:6: error: 'ans' was not declared in this scope
      ans = max(ans,cal(i,a[p1]%i));
      ^
0_0_36719540_30809.cpp:40:26: error: 'a' was not declared in this scope
      ans = max(ans,cal(i,a[p1]%i));
                          ^
0_0_36719540_30809.cpp:40:33: error: 'cal' was not declared in this scope
      ans = max(ans,cal(i,a[p1]%i));
                                 ^
0_0_36719540_30809.cpp:43:7: error: 'diff' was not declared in this scope
    if(diff > 1) ans = max(ans,cal(diff,a[p1] % diff));
       ^
0_0_36719540_30809.cpp:43:17: error: 'ans' was not declared in this scope
    if(diff > 1) ans = max(ans,cal(diff,a[p1] % diff));
                 ^
0_0_36719540_30809.cpp:43:40: error: 'a' was not declared in this scope
    if(diff > 1) ans = max(ans,cal(diff,a[p1] % diff));
                                        ^
0_0_36719540_30809.cpp:43:52: error: 'cal' was not declared in this scope
    if(diff > 1) ans = max(ans,cal(diff,a[p1] % diff));
                                                    ^
0_0_36719540_30809.cpp:45:19: error: 'ans' was not declared in this scope
   printf("%lld\n",ans);
                   ^


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-06-17 04:35:36, Gzip enabled