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_37773589_23809.cpp:63:6: error: expected unqualified-id before '>' token
 set<P>>edge2[N];
      ^
0_0_37773589_23809.cpp: In function 'void top_sort()':
0_0_37773589_23809.cpp:72:23: error: 'edge2' was not declared in this scope
         for (auto x : edge2[now]){
                       ^
0_0_37773589_23809.cpp:74:38: error: 'cost' was not declared in this scope
             dp[v]=max(dp[v], dp[now]+cost);
                                      ^
0_0_37773589_23809.cpp: In function 'void solve()':
0_0_37773589_23809.cpp:83:55: error: 'edge2' was not declared in this scope
     for (int i = 1; i <= n; ++i)tar[i]=du[i]=dp[i]=0, edge2[i].clear(), edge1[i].clear(), edge3[i].clear();
                                                       ^
0_0_37773589_23809.cpp:107:23: error: 'edge2' was not declared in this scope
             if (u==v||edge2[u].count({v, it.p}))continue;
                       ^
0_0_37773589_23809.cpp:109:13: error: 'edge2' was not declared in this scope
             edge2[u].insert({v, it.p});
             ^


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-10-06 02:50:26, Gzip enabled