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_38201790_4372.cpp: In function 'void dfs(long long int, long long int, long long int)':
0_0_38201790_4372.cpp:15:22: error: expected unqualified-id before '[' token
     for (const auto &[w, u] : e[x])
                      ^
0_0_38201790_4372.cpp:15:22: error: expected ';' before '[' token
0_0_38201790_4372.cpp:15:26: error: 'u' was not declared in this scope
     for (const auto &[w, u] : e[x])
                          ^
0_0_38201790_4372.cpp: In lambda function:
0_0_38201790_4372.cpp:15:29: error: expected '{' before ':' token
     for (const auto &[w, u] : e[x])
                             ^
0_0_38201790_4372.cpp: In function 'void dfs(long long int, long long int, long long int)':
0_0_38201790_4372.cpp:15:29: error: could not convert '<lambda closure object>dfs(long long int, long long int, long long int)::<lambda()>{w}' from 'dfs(long long int, long long int, long long int)::<lambda()>' to 'bool'
0_0_38201790_4372.cpp:15:29: error: expected ';' before ':' token
0_0_38201790_4372.cpp:15:29: error: expected primary-expression before ':' token
0_0_38201790_4372.cpp:15:29: error: expected ')' before ':' token
0_0_38201790_4372.cpp:15:29: error: expected primary-expression before ':' token
0_0_38201790_4372.cpp:32:22: error: expected unqualified-id before '[' token
     for (const auto &[w, u] : e[x])
                      ^
0_0_38201790_4372.cpp:32:22: error: expected ';' before '[' token
0_0_38201790_4372.cpp:32:26: error: 'u' was not declared in this scope
     for (const auto &[w, u] : e[x])
                          ^
0_0_38201790_4372.cpp: In lambda function:
0_0_38201790_4372.cpp:32:29: error: expected '{' before ':' token
     for (const auto &[w, u] : e[x])
                             ^
0_0_38201790_4372.cpp: In function 'void dfs(long long int, long long int, long long int)':
0_0_38201790_4372.cpp:32:29: error: could not convert '<lambda closure object>dfs(long long int, long long int, long long int)::<lambda()>{w}' from 'dfs(long long int, long long int, long long int)::<lambda()>' to 'bool'
0_0_38201790_4372.cpp:32:29: error: expected ';' before ':' token
0_0_38201790_4372.cpp:32:29: error: expected primary-expression before ':' token
0_0_38201790_4372.cpp:32:29: error: expected ')' before ':' token
0_0_38201790_4372.cpp:32:29: error: expected primary-expression before ':' token
0_0_38201790_4372.cpp:34:48: error: expected primary-expression before ')' token
             a.push_back({w, dp[u][0], dp[u][1]});
                                                ^


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-17 02:38:26, Gzip enabled