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_26073930_24016.cpp:3:1: error: expected initializer before 'using'
 using namespace std;
 ^
0_0_26073930_24016.cpp:10:1: error: 'll' does not name a type
 ll sz[maxn];
 ^
0_0_26073930_24016.cpp:11:1: error: 'll' does not name a type
 ll f[maxn];
 ^
0_0_26073930_24016.cpp:12:1: error: 'll' does not name a type
 ll ans;
 ^
0_0_26073930_24016.cpp: In function 'void dfs(int, int)':
0_0_26073930_24016.cpp:23:5: error: 'sz' was not declared in this scope
     sz[root]=1;
     ^
0_0_26073930_24016.cpp:30:9: error: 'ans' was not declared in this scope
         ans=(ans+(n-sz[to])%mod  * sz[to]%mod *value%mod);
         ^
0_0_26073930_24016.cpp: In function 'int main()':
0_0_26073930_24016.cpp:36:6: error: 'f' was not declared in this scope
      f[0]=1;
      ^
0_0_26073930_24016.cpp:42:17: error: 'sz' was not declared in this scope
          memset(sz,0,sizeof(sz));
                 ^
0_0_26073930_24016.cpp:44:10: error: 'ans' was not declared in this scope
          ans=0;
          ^
0_0_26073930_24016.cpp:51:26: error: 'll' was not declared in this scope
         printf("%lld\n",(ll)((2*f[n-1]%mod)*(ans%mod))%mod;
                          ^


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-30 06:14:38, Gzip enabled