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_9134481_24241.cpp: In function `int maxProfit(std::vector<int, std::allocator<int> >&, int)':
0_0_9134481_24241.cpp:51: error: pointer to a function used in arithmetic
0_0_9134481_24241.cpp:51: error: assignment of read-only location
0_0_9134481_24241.cpp:51: error: cannot convert `int' to `std::ios_base&()(std::ios_base&)' in assignment
0_0_9134481_24241.cpp:52: error: `mid' undeclared (first use this function)
0_0_9134481_24241.cpp:52: error: (Each undeclared identifier is reported only once for each function it appears in.)
0_0_9134481_24241.cpp:53: error: pointer to a function used in arithmetic
0_0_9134481_24241.cpp:53: error: assignment of read-only location
0_0_9134481_24241.cpp:53: error: cannot convert `int' to `std::ios_base&()(std::ios_base&)' in assignment
0_0_9134481_24241.cpp:54: error: pointer to a function used in arithmetic
0_0_9134481_24241.cpp:54: error: assignment of read-only location
0_0_9134481_24241.cpp:54: error: cannot convert `int' to `std::ios_base&()(std::ios_base&)' in assignment
0_0_9134481_24241.cpp:56: error: pointer to a function used in arithmetic
0_0_9134481_24241.cpp:56: error: assignment of read-only location
0_0_9134481_24241.cpp:56: error: cannot convert `int' to `std::ios_base&()(std::ios_base&)' in assignment
0_0_9134481_24241.cpp:57: error: pointer to a function used in arithmetic
0_0_9134481_24241.cpp:57: error: assignment of read-only location
0_0_9134481_24241.cpp:57: error: cannot convert `int' to `std::ios_base&()(std::ios_base&)' in assignment
0_0_9134481_24241.cpp:59: error: pointer to a function used in arithmetic
0_0_9134481_24241.cpp:59: error: assignment of read-only location
0_0_9134481_24241.cpp:59: error: cannot convert `int' to `std::ios_base&()(std::ios_base&)' in assignment
0_0_9134481_24241.cpp:60: error: invalid initialization of non-const reference of type 'std::vector<int, std::allocator<int> >&' from a temporary of type 'std::ios_base&(*)(std::ios_base&)'
0_0_9134481_24241.cpp:8: error: in passing argument 2 of `int count_price(std::vector<int, std::allocator<int> >&, std::vector<int, std::allocator<int> >&)'
0_0_9134481_24241.cpp:62: error: invalid initialization of non-const reference of type 'std::vector<int, std::allocator<int> >&' from a temporary of type 'std::ios_base&(*)(std::ios_base&)'
0_0_9134481_24241.cpp:8: error: in passing argument 2 of `int count_price(std::vector<int, std::allocator<int> >&, std::vector<int, std::allocator<int> >&)'
0_0_9134481_24241.cpp:63: error: no matching function for call to `std::priority_queue<std::vector<int, std::allocator<int> >, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, std::less<std::vector<int, std::allocator<int> > > >::push(std::ios_base&(&)(std::ios_base&))'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h:428: note: candidates are: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const typename _Sequence::value_type&) [with _Tp = std::vector<int, std::allocator<int> >, _Sequence = std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, _Compare = std::less<std::vector<int, std::allocator<int> > >]
0_0_9134481_24241.cpp:65: error: no matching function for call to `std::priority_queue<std::vector<int, std::allocator<int> >, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, std::less<std::vector<int, std::allocator<int> > > >::push(std::ios_base&(&)(std::ios_base&))'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_queue.h:428: note: candidates are: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const typename _Sequence::value_type&) [with _Tp = std::vector<int, std::allocator<int> >, _Sequence = std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, _Compare = std::less<std::vector<int, std::allocator<int> > >]


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-22 22:11:09, Gzip enabled