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_39489712_30814.cpp: In function 'void solve()':
0_0_39489712_30814.cpp:55:40: error: expected primary-expression before '}' token
   55 |                 e[b].emplace_back({edge}{c,b});
      |                                        ^
0_0_39489712_30814.cpp:55:41: error: expected ')' before '{' token
   55 |                 e[b].emplace_back({edge}{c,b});
      |                                  ~      ^
      |                                         )
0_0_39489712_30814.cpp:55:34: error: no matching function for call to 'std::vector<edge>::emplace_back(<brace-enclosed initializer list>)'
   55 |                 e[b].emplace_back({edge}{c,b});
      |                 ~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:72,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/queue:63,
                 from 0_0_39489712_30814.cpp:5:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/vector.tcc:111:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = edge; _Alloc = std::allocator<edge>; reference = edge&]'
  111 |       vector<_Tp, _Alloc>::
      |       ^~~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/vector.tcc:111:7: note:   candidate expects 0 arguments, 1 provided


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-12-02 15:20:07, Gzip enabled