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_4041170_27333.cpp: In function `int DP()':
0_0_4041170_27333.cpp:41: error: invalid initialization of non-const reference of type 'std::pair<int, int>&' from a temporary of type 'std::pair<int, int>'
0_0_4041170_27333.cpp:14: error: in passing argument 2 of `std::pair<int, int> pmax(std::pair<int, int>&, std::pair<int, int>&)'
0_0_4041170_27333.cpp:51: error: invalid initialization of non-const reference of type 'std::pair<int, int>&' from a temporary of type 'std::pair<int, int>'
0_0_4041170_27333.cpp:14: error: in passing argument 2 of `std::pair<int, int> pmax(std::pair<int, int>&, std::pair<int, int>&)'
0_0_4041170_27333.cpp:66: error: invalid initialization of non-const reference of type 'std::pair<int, int>&' from a temporary of type 'std::pair<int, int>'
0_0_4041170_27333.cpp:14: error: in passing argument 2 of `std::pair<int, int> pmax(std::pair<int, int>&, std::pair<int, int>&)'
0_0_4041170_27333.cpp:76: error: invalid initialization of non-const reference of type 'std::pair<int, int>&' from a temporary of type 'std::pair<int, int>'
0_0_4041170_27333.cpp:14: error: in passing argument 2 of `std::pair<int, int> pmax(std::pair<int, int>&, std::pair<int, int>&)'


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001001(s) query 1, Server time : 2025-02-18 17:42:11, Gzip enabled