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_18476272_14778.cpp: In function 'void solve()':
0_0_18476272_14778.cpp:62:27: error: no matching function for call to 'std::unordered_set<std::pair<long long int, long long int>, Hash>::emplace(<brace-enclosed initializer list>)'
    ustpll.emplace({ x, y });
                           ^
0_0_18476272_14778.cpp:62:27: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_set:48:0,
                 from 0_0_18476272_14778.cpp:19:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:329:2: note: std::pair<typename std::_Hashtable<_Value, _Value, _Alloc, std::__detail::_Identity, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Tp, _Hash> > >::value, true, true> >::iterator, bool> std::unordered_set<_Value, _Hash, _Pred, _Alloc>::emplace(_Args&& ...) [with _Args = {}; _Value = std::pair<long long int, long long int>; _Hash = Hash; _Pred = std::equal_to<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<long long int, long long int> >; typename std::_Hashtable<_Value, _Value, _Alloc, std::__detail::_Identity, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__detail::__is_noexcept_hash<_Tp, _Hash> > >::value, true, true> >::iterator = std::__detail::_Node_iterator<std::pair<long long int, long long int>, true, true>]
  emplace(_Args&&... __args)
  ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:329:2: 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-11-29 00:05:12, Gzip enabled