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_38659392_32534.cpp: In function 'int main()':
0_0_38659392_32534.cpp:20:17: error: 'v' was not declared in this scope
     int sw = 0;[v])  // u和v都没有环,直接加
                 ^
0_0_38659392_32534.cpp: In lambda function:
0_0_38659392_32534.cpp:20:19: error: expected '{' before ')' token
     int sw = 0;[v])  // u和v都没有环,直接加
                   ^
0_0_38659392_32534.cpp: In function 'int main()':
0_0_38659392_32534.cpp:20:19: error: expected ';' before ')' token
     int sw = 0;[v])  // u和v都没有环,直接加
                   ^
                   ;
0_0_38659392_32534.cpp:25:26: error: no match for 'operator!' (operand type is 'std::vector<int>')
         if (!cycle[u] && !cycle
                          ^~~~~~
0_0_38659392_32534.cpp:25:26: note: candidate: 'operator!(bool)' <built-in>
0_0_38659392_32534.cpp:25:26: note:   no known conversion for argument 1 from 'std::vector<int>' to 'bool'
0_0_38659392_32534.cpp:28:7: error: expected primary-expression before '}' token
       } else {
       ^
0_0_38659392_32534.cpp:27:57: error: expected ')' before '}' token
           fa[u] = v, sw += e.w, cycle[u] = cycle[v] = 1;
                                                         ^
                                                         )
       } else {
       ~                                                  
0_0_38659392_32534.cpp:25:12: note: to match this '('
         if (!cycle[u] && !cycle
            ^
0_0_38659392_32534.cpp:28:7: error: expected primary-expression before '}' token
       } else {
       ^


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.000000(s) query 1, Server time : 2025-01-10 18:04:14, Gzip enabled