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_38459598_22314.cpp: In function 'long long int linear_seq::get(std::vector<long long int>&, long long int)':
0_0_38459598_22314.cpp:127:72: error: invalid initialization of non-const reference of type 'std::vector<long long int>&' from an rvalue of type 'std::vector<long long int>'
         return solve(n, c, vector<int>(a.begin(), a.begin() + c.size()));
                                                                        ^
0_0_38459598_22314.cpp:48:9: note: in passing argument 3 of 'long long int linear_seq::solve(long long int, std::vector<long long int>&, std::vector<long long int>&)'
     int solve(int n, vector<int> &a, vector<int> &b) {
         ^


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:44:07, Gzip enabled