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_33692539_28510.cpp:23:15: error: expected ';' at end of member declaration
     long long ll val;
               ^
0_0_33692539_28510.cpp:23:18: error: 'val' does not name a type
     long long ll val;
                  ^
0_0_33692539_28510.cpp:26:14: error: expected initializer before 'ans'
 long long ll ans;
              ^
0_0_33692539_28510.cpp: In function 'void dfs(ll, ll)':
0_0_33692539_28510.cpp:39:13: error: 'ans' was not declared in this scope
             ans += vis[u][0] * (cnt1 - vis[v][1]) % mod * edge[i].val % mod;
             ^
0_0_33692539_28510.cpp:39:67: error: 'struct Edge' has no member named 'val'
             ans += vis[u][0] * (cnt1 - vis[v][1]) % mod * edge[i].val % mod;
                                                                   ^
0_0_33692539_28510.cpp:40:67: error: 'struct Edge' has no member named 'val'
             ans += vis[u][1] * (cnt0 - vis[v][0]) % mod * edge[i].val % mod;
                                                                   ^
0_0_33692539_28510.cpp: In function 'void add(ll, ll, ll)':
0_0_33692539_28510.cpp:49:15: error: 'struct Edge' has no member named 'val'
     edge[tot].val = val;
               ^
0_0_33692539_28510.cpp: At global scope:
0_0_33692539_28510.cpp:54:14: error: expected initializer before 'ksm'
 long long ll ksm(long long ll a, long long ll b)
              ^


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-07-03 09:06:46, Gzip enabled