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_39532324_16398.cpp:4:10: error: structured binding declaration cannot have type 'std::vector<uu>'
    4 | #define e[x][i].v uo
      |          ^~~
0_0_39532324_16398.cpp:17:11: note: in expansion of macro 'e'
   17 | vector<uu>e[N];
      |           ^
0_0_39532324_16398.cpp:4:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
    4 | #define e[x][i].v uo
      |          ^~~
0_0_39532324_16398.cpp:17:11: note: in expansion of macro 'e'
   17 | vector<uu>e[N];
      |           ^
0_0_39532324_16398.cpp:4:13: error: expected initializer before '[' token
    4 | #define e[x][i].v uo
      |             ^
0_0_39532324_16398.cpp:17:11: note: in expansion of macro 'e'
   17 | vector<uu>e[N];
      |           ^
0_0_39532324_16398.cpp:4:13: error: expected ';' before '[' token
    4 | #define e[x][i].v uo
      |             ^
0_0_39532324_16398.cpp:17:11: note: in expansion of macro 'e'
   17 | vector<uu>e[N];
      |           ^
0_0_39532324_16398.cpp: In lambda function:
0_0_39532324_16398.cpp:4:13: error: expected '{' before '[' token
    4 | #define e[x][i].v uo
      |             ^
0_0_39532324_16398.cpp:19:23: note: in expansion of macro 'e'
   19 |         for(int i=0;i<e[x].size();i++){
      |                       ^
0_0_39532324_16398.cpp: In function 'void dfs(int)':
0_0_39532324_16398.cpp:4:13: error: no match for 'operator[]' (operand types are 'dfs(int)::<lambda()>' and 'int')
    4 | #define e[x][i].v uo
      |             ^
0_0_39532324_16398.cpp:19:23: note: in expansion of macro 'e'
   19 |         for(int i=0;i<e[x].size();i++){
      |                       ^
0_0_39532324_16398.cpp:4:19: error: expected ';' before 'uo'
    4 | #define e[x][i].v uo
      |                   ^~
0_0_39532324_16398.cpp:19:23: note: in expansion of macro 'e'
   19 |         for(int i=0;i<e[x].size();i++){
      |                       ^
0_0_39532324_16398.cpp:4:19: error: 'uo' was not declared in this scope; did you mean 'uu'?
    4 | #define e[x][i].v uo
      |                   ^~
0_0_39532324_16398.cpp:19:23: note: in expansion of macro 'e'
   19 |         for(int i=0;i<e[x].size();i++){
      |                       ^
0_0_39532324_16398.cpp:19:34: error: expected ')' before ';' token
   19 |         for(int i=0;i<e[x].size();i++){
      |            ~                     ^
      |                                  )
0_0_39532324_16398.cpp:19:35: error: 'i' was not declared in this scope
   19 |         for(int i=0;i<e[x].size();i++){
      |                                   ^
0_0_39532324_16398.cpp: In lambda function:
0_0_39532324_16398.cpp:4:13: error: expected '{' before '[' token
    4 | #define e[x][i].v uo
      |             ^
0_0_39532324_16398.cpp:36:25: note: in expansion of macro 'e'
   36 |                         e[u].push_back({v,w});
      |                         ^
0_0_39532324_16398.cpp: In function 'int main()':
0_0_39532324_16398.cpp:4:13: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
    4 | #define e[x][i].v uo
      |             ^
0_0_39532324_16398.cpp:36:25: note: in expansion of macro 'e'
   36 |                         e[u].push_back({v,w});
      |                         ^
0_0_39532324_16398.cpp:36:45: error: expected primary-expression before ')' token
   36 |                         e[u].push_back({v,w});
      |                                             ^
0_0_39532324_16398.cpp: In lambda function:
0_0_39532324_16398.cpp:4:13: error: expected '{' before '[' token
    4 | #define e[x][i].v uo
      |             ^
0_0_39532324_16398.cpp:37:25: note: in expansion of macro 'e'
   37 |                         e[v].push_back({u,w});
      |                         ^
0_0_39532324_16398.cpp: In function 'int main()':
0_0_39532324_16398.cpp:4:13: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
    4 | #define e[x][i].v uo
      |             ^
0_0_39532324_16398.cpp:37:25: note: in expansion of macro 'e'
   37 |                         e[v].push_back({u,w});
      |                         ^
0_0_39532324_16398.cpp:37:45: error: expected primary-expression before ')' token
   37 |                         e[v].push_back({u,w});
      |                                             ^
0_0_39532324_16398.cpp:49:49: error: 'ans' was not declared in this scope; did you mean 'abs'?
   49 |                                                 ans+=cal(v);
      |                                                 ^~~
      |                                                 abs
0_0_39532324_16398.cpp:54:17: error: expected primary-expression before '}' token
   54 |                 }
      |                 ^


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.001000(s) query 1, Server time : 2025-02-17 13:39:37, Gzip enabled