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_33600606_20328.cpp:6:1: error: 'll' does not name a type
 ll f[N],a[N],s1[N],s2[N];
 ^
0_0_33600606_20328.cpp: In function 'int ff(int)':
0_0_33600606_20328.cpp:8:9: error: 'f' was not declared in this scope
     if (f[x]==x)return x;
         ^
0_0_33600606_20328.cpp:9:12: error: 'f' was not declared in this scope
     return f[x]=ff(f[x]);
            ^
0_0_33600606_20328.cpp: In function 'int main()':
0_0_33600606_20328.cpp:16:9: error: 'll' was not declared in this scope
         ll t1=0,t2=0;
         ^
0_0_33600606_20328.cpp:18:25: error: 'a' was not declared in this scope
             scanf("%d",&a[i]);
                         ^
0_0_33600606_20328.cpp:19:25: error: 't1' was not declared in this scope
             if (a[i]==1)t1++,s1[i]=1,s2[i]=0;
                         ^
0_0_33600606_20328.cpp:19:30: error: 's1' was not declared in this scope
             if (a[i]==1)t1++,s1[i]=1,s2[i]=0;
                              ^
0_0_33600606_20328.cpp:19:38: error: 's2' was not declared in this scope
             if (a[i]==1)t1++,s1[i]=1,s2[i]=0;
                                      ^
0_0_33600606_20328.cpp:20:18: error: 't2' was not declared in this scope
             else t2++,s2[i]=1,s1[i]=0;
                  ^
0_0_33600606_20328.cpp:20:23: error: 's2' was not declared in this scope
             else t2++,s2[i]=1,s1[i]=0;
                       ^
0_0_33600606_20328.cpp:20:31: error: 's1' was not declared in this scope
             else t2++,s2[i]=1,s1[i]=0;
                               ^
0_0_33600606_20328.cpp:21:13: error: 'f' was not declared in this scope
             f[i]=i;
             ^
0_0_33600606_20328.cpp:23:12: error: expected ';' before 'ans'
         ll ans;
            ^
0_0_33600606_20328.cpp:24:13: error: 't2' was not declared in this scope
         if (t2<2)ans=0;
             ^
0_0_33600606_20328.cpp:24:18: error: 'ans' was not declared in this scope
         if (t2<2)ans=0;
                  ^
0_0_33600606_20328.cpp:25:24: error: 'ans' was not declared in this scope
         else if (t2==2)ans=t1;
                        ^
0_0_33600606_20328.cpp:25:28: error: 't1' was not declared in this scope
         else if (t2==2)ans=t1;
                            ^
0_0_33600606_20328.cpp:26:14: error: 'ans' was not declared in this scope
         else ans=t1*t2*(t2-1)/2+t2*(t2-1)*(t2-2)/6;
              ^
0_0_33600606_20328.cpp:26:18: error: 't1' was not declared in this scope
         else ans=t1*t2*(t2-1)/2+t2*(t2-1)*(t2-2)/6;
                  ^
0_0_33600606_20328.cpp:27:25: error: 'ans' was not declared in this scope
         printf("%lld\n",ans%mod);
                         ^
0_0_33600606_20328.cpp:33:22: error: 's1' was not declared in this scope
                 ans-=s1[yy]*s2[xx]*(t2-s2[xx]-s2[yy]);
                      ^
0_0_33600606_20328.cpp:33:29: error: 's2' was not declared in this scope
                 ans-=s1[yy]*s2[xx]*(t2-s2[xx]-s2[yy]);
                             ^
0_0_33600606_20328.cpp:33:37: error: 't2' was not declared in this scope
                 ans-=s1[yy]*s2[xx]*(t2-s2[xx]-s2[yy]);
                                     ^
0_0_33600606_20328.cpp:36:37: error: 't1' was not declared in this scope
                 ans-=s2[xx]*s2[yy]*(t1-s1[xx]-s1[yy]);
                                     ^
0_0_33600606_20328.cpp:37:17: error: 'f' was not declared in this scope
                 f[xx]=yy;
                 ^


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-09-29 10:26:54, Gzip enabled