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_30024240_18366.cpp:87:24: error: wrong number of template arguments (0, should be 1)
     multiset<Line, less<>> mset;
                        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_30024240_18366.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:367:12: error: provided for 'template<class _Tp> struct std::less'
     struct less : public binary_function<_Tp, _Tp, bool>
            ^
0_0_30024240_18366.cpp:87:25: error: template argument 2 is invalid
     multiset<Line, less<>> mset;
                         ^
0_0_30024240_18366.cpp:92:35: error: wrong number of template arguments (0, should be 1)
     bool isect(multiset<Line, less<>>::iterator x, multiset<Line, less<>>::iterator y) {
                                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_30024240_18366.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:367:12: error: provided for 'template<class _Tp> struct std::less'
     struct less : public binary_function<_Tp, _Tp, bool>
            ^
0_0_30024240_18366.cpp:92:36: error: template argument 2 is invalid
     bool isect(multiset<Line, less<>>::iterator x, multiset<Line, less<>>::iterator y) {
                                    ^
0_0_30024240_18366.cpp:92:49: error: expected ',' or '...' before 'x'
     bool isect(multiset<Line, less<>>::iterator x, multiset<Line, less<>>::iterator y) {
                                                 ^
0_0_30024240_18366.cpp: In member function 'bool LC::LineContainer2::isect(int)':
0_0_30024240_18366.cpp:93:13: error: 'y' was not declared in this scope
         if (y == mset.end()) { x->p = inf; return false; }
             ^
0_0_30024240_18366.cpp:93:23: error: request for member 'end' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
         if (y == mset.end()) { x->p = inf; return false; }
                       ^
0_0_30024240_18366.cpp:93:32: error: 'x' was not declared in this scope
         if (y == mset.end()) { x->p = inf; return false; }
                                ^
0_0_30024240_18366.cpp:94:13: error: 'x' was not declared in this scope
         if (x->k == y->k) x->p = x->m > y->m ? inf : -inf;
             ^
0_0_30024240_18366.cpp:94:21: error: 'y' was not declared in this scope
         if (x->k == y->k) x->p = x->m > y->m ? inf : -inf;
                     ^
0_0_30024240_18366.cpp:96:16: error: 'x' was not declared in this scope
         return x->p >= y->p;
                ^
0_0_30024240_18366.cpp:96:24: error: 'y' was not declared in this scope
         return x->p >= y->p;
                        ^
0_0_30024240_18366.cpp: In member function 'void LC::LineContainer2::add(long long int, long long int)':
0_0_30024240_18366.cpp:99:23: error: request for member 'insert' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
         auto z = mset.insert({k, m, 0}), y = z++, x = y;
                       ^
0_0_30024240_18366.cpp:100:22: error: 'y' was not declared in this scope
         while (isect(y, z)) z = mset.erase(z);
                      ^
0_0_30024240_18366.cpp:100:38: error: request for member 'erase' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
         while (isect(y, z)) z = mset.erase(z);
                                      ^
0_0_30024240_18366.cpp:101:13: error: 'x' was not declared in this scope
         if (x != mset.begin() && isect(--x, y)) isect(x, y = mset.erase(y));
             ^
0_0_30024240_18366.cpp:101:23: error: request for member 'begin' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
         if (x != mset.begin() && isect(--x, y)) isect(x, y = mset.erase(y));
                       ^
0_0_30024240_18366.cpp:101:45: error: 'y' was not declared in this scope
         if (x != mset.begin() && isect(--x, y)) isect(x, y = mset.erase(y));
                                             ^
0_0_30024240_18366.cpp:101:67: error: request for member 'erase' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
         if (x != mset.begin() && isect(--x, y)) isect(x, y = mset.erase(y));
                                                                   ^
0_0_30024240_18366.cpp:102:17: error: 'y' was not declared in this scope
         while ((y = x) != mset.begin() && (--x)->p >= y->p)
                 ^
0_0_30024240_18366.cpp:102:21: error: 'x' was not declared in this scope
         while ((y = x) != mset.begin() && (--x)->p >= y->p)
                     ^
0_0_30024240_18366.cpp:102:32: error: request for member 'begin' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
         while ((y = x) != mset.begin() && (--x)->p >= y->p)
                                ^
0_0_30024240_18366.cpp:103:27: error: request for member 'erase' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
             isect(x, mset.erase(y));
                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cassert:43:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:33,
                 from 0_0_30024240_18366.cpp:4:
0_0_30024240_18366.cpp: In member function 'long long int LC::LineContainer2::query(long long int)':
0_0_30024240_18366.cpp:106:22: error: request for member 'empty' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
         assert(!mset.empty());
                      ^
0_0_30024240_18366.cpp:107:24: error: request for member 'lower_bound' in '((LC::LineContainer2*)this)->LC::LineContainer2::mset', which is of non-class type 'int'
         auto l = *mset.lower_bound(x);
                        ^


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-25 20:40:18, Gzip enabled