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_38038309_544.cpp:7:5: error: 'll' does not name a type
     ll cost;
     ^
0_0_38038309_544.cpp:10:1: error: 'll' does not name a type
 ll inv[maxn], f[maxn], ans;
 ^
0_0_38038309_544.cpp:12:31: error: 'll' has not been declared
 inline void add(int u, int v, ll cost) {
                               ^
0_0_38038309_544.cpp: In function 'void add(int, int, int)':
0_0_38038309_544.cpp:13:29: error: 'struct Edge' has no member named 'cost'
     e[++tot].to = v, e[tot].cost = cost, e[tot].nxt = head[u], head[u] = tot;
                             ^
0_0_38038309_544.cpp: In function 'void dfs(int, int)':
0_0_38038309_544.cpp:21:9: error: 'f' was not declared in this scope
         f[son] = e[i].cost;
         ^
0_0_38038309_544.cpp:21:23: error: 'struct Edge' has no member named 'cost'
         f[son] = e[i].cost;
                       ^
0_0_38038309_544.cpp:25:13: error: 'ans' was not declared in this scope
     if (fa) ans = (ans + (ll)(n - size[cur]) * size[cur] % mod * f[cur] % mod) % mod;
             ^
0_0_38038309_544.cpp:25:27: error: 'll' was not declared in this scope
     if (fa) ans = (ans + (ll)(n - size[cur]) * size[cur] % mod * f[cur] % mod) % mod;
                           ^
0_0_38038309_544.cpp:25:66: error: 'f' was not declared in this scope
     if (fa) ans = (ans + (ll)(n - size[cur]) * size[cur] % mod * f[cur] % mod) % mod;
                                                                  ^
0_0_38038309_544.cpp: In function 'int main()':
0_0_38038309_544.cpp:29:5: error: 'inv' was not declared in this scope
     inv[0] = 1;
     ^
0_0_38038309_544.cpp:30:9: error: 'i' was not declared in this scope
     rep(i, 1, maxn - 5)    inv[i] = inv[i - 1] * i % mod;
         ^
0_0_38038309_544.cpp:30:23: error: 'rep' was not declared in this scope
     rep(i, 1, maxn - 5)    inv[i] = inv[i - 1] * i % mod;
                       ^
0_0_38038309_544.cpp:32:27: error: 'scanf' was not declared in this scope
     while (~scanf("%d", &n)) {
                           ^
0_0_38038309_544.cpp:33:9: error: 'ans' was not declared in this scope
         ans = tot = 0;
         ^
0_0_38038309_544.cpp:44:49: error: 'writeln' was not declared in this scope
         writeln(ans * inv[n - 1] % mod * 2 % mod);
                                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 23:26:18, Gzip enabled