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_37924433_27075.cpp: In function 'Convex convexhull(std::vector<point<long long int> >)':
0_0_37924433_27075.cpp:318:15: error: could not convert '{st}' from '<brace-enclosed initializer list>' to 'Convex {aka convex<long long int>}'
     return {st};
               ^
0_0_37924433_27075.cpp: In function 'void solve()':
0_0_37924433_27075.cpp:328:14: error: no match for 'operator=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<point<long long int> > >::value_type {aka point<long long int>}' and '<brace-enclosed initializer list>')
         p[i] = {x, y};
              ^
0_0_37924433_27075.cpp:328:14: note: candidates are:
0_0_37924433_27075.cpp:13:29: note: point<long long int>& point<long long int>::operator=(const point<long long int>&)
 template<typename T> struct point {
                             ^
0_0_37924433_27075.cpp:13:29: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const point<long long int>&'
0_0_37924433_27075.cpp:13:29: note: point<long long int>& point<long long int>::operator=(point<long long int>&&)
0_0_37924433_27075.cpp:13:29: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'point<long long int>&&'
0_0_37924433_27075.cpp:349:31: error: no matching function for call to 'std::vector<point<long long int> >::push_back(<brace-enclosed initializer list>)'
             p.push_back({x, y});
                               ^
0_0_37924433_27075.cpp:349:31: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_37924433_27075.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = point<long long int>; _Alloc = std::allocator<point<long long int> >; std::vector<_Tp, _Alloc>::value_type = point<long long int>]
       push_back(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const point<long long int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = point<long long int>; _Alloc = std::allocator<point<long long int> >; std::vector<_Tp, _Alloc>::value_type = point<long long int>]
       push_back(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<point<long long int> >::value_type&& {aka point<long long int>&&}'
0_0_37924433_27075.cpp:350:18: error: expected unqualified-id before '[' token
             auto [u, v] = ch.tangent(p.back());
                  ^
0_0_37924433_27075.cpp:351:29: error: 'u' was not declared in this scope
             Point pu = ch.p[u], pv = ch.p[v];
                             ^
0_0_37924433_27075.cpp:352:24: error: 'pv' was not declared in this scope
             pu.id = u, pv.id = v;
                        ^
0_0_37924433_27075.cpp:352:32: error: 'v' was not declared in this scope
             pu.id = u, pv.id = v;
                                ^
0_0_37924433_27075.cpp: In instantiation of 'point<T> point<T>::operator-(const point<T>&) const [with T = long long int]':
0_0_37924433_27075.cpp:303:23:   required from here
0_0_37924433_27075.cpp:21:63: error: could not convert '{(((long long int)((const point<long long int>*)this)->point<long long int>::x) - ((long long int)a.point<long long int>::x)), (((long long int)((const point<long long int>*)this)->point<long long int>::y) - ((long long int)a.point<long long int>::y))}' from '<brace-enclosed initializer list>' to 'point<long long int>'
     point operator-(const point &a) const {return {x-a.x,y-a.y};}
                                                               ^


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-26 10:52:16, Gzip enabled