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_35671513_19086.cpp: In function 'void dfs(long long int, long long int)':
0_0_35671513_19086.cpp:15:13: error: expected unqualified-id before '[' token
     for(auto[to,w]:g[u]){
             ^
0_0_35671513_19086.cpp:15:13: error: expected ';' before '[' token
0_0_35671513_19086.cpp:15:14: error: 'to' was not declared in this scope
     for(auto[to,w]:g[u]){
              ^
0_0_35671513_19086.cpp:15:17: error: 'w' was not declared in this scope
     for(auto[to,w]:g[u]){
                 ^
0_0_35671513_19086.cpp: In lambda function:
0_0_35671513_19086.cpp:15:19: error: expected '{' before ':' token
     for(auto[to,w]:g[u]){
                   ^
0_0_35671513_19086.cpp: In function 'void dfs(long long int, long long int)':
0_0_35671513_19086.cpp:15:19: error: expected ';' before ':' token
0_0_35671513_19086.cpp:15:19: error: expected primary-expression before ':' token
0_0_35671513_19086.cpp:15:19: error: expected ')' before ':' token
0_0_35671513_19086.cpp:15:19: error: expected primary-expression before ':' token
0_0_35671513_19086.cpp:27:13: error: expected unqualified-id before '[' token
         auto[to,w]=v[i];
             ^
0_0_35671513_19086.cpp:28:20: error: 'to' was not declared in this scope
         f[u][0]+=f[to][0]+w;
                    ^
0_0_35671513_19086.cpp:28:27: error: 'w' was not declared in this scope
         f[u][0]+=f[to][0]+w;
                           ^
0_0_35671513_19086.cpp:31:13: error: expected unqualified-id before '[' token
         auto[to,w]=v[i];
             ^
0_0_35671513_19086.cpp:32:39: error: 'to' was not declared in this scope
         f[u][1]=max(f[u][1],f[u][0]+f[to][1]-f[to][0]);
                                       ^
0_0_35671513_19086.cpp:35:13: error: expected unqualified-id before '[' token
         auto[to,w]=v[k-1];
             ^
0_0_35671513_19086.cpp:36:20: error: 'to' was not declared in this scope
         f[u][0]+=f[to][0]+w;
                    ^
0_0_35671513_19086.cpp:36:27: error: 'w' was not declared in this scope
         f[u][0]+=f[to][0]+w;
                           ^
0_0_35671513_19086.cpp:39:13: error: expected unqualified-id before '[' token
         auto[to,w]=v[i];
             ^
0_0_35671513_19086.cpp:40:39: error: 'to' was not declared in this scope
         f[u][2]=max(f[u][2],f[u][0]+f[to][1]-f[to][0]);
                                       ^
0_0_35671513_19086.cpp:43:13: error: expected unqualified-id before '[' token
         auto[to,w]=v[k-1];
             ^
0_0_35671513_19086.cpp:44:20: error: 'to' was not declared in this scope
         f[u][0]-=f[to][0]+w;
                    ^
0_0_35671513_19086.cpp:44:27: error: 'w' was not declared in this scope
         f[u][0]-=f[to][0]+w;
                           ^


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-26 04:11:02, Gzip enabled