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_24568233_25973.cpp: In function 'll linear_seq::gao(VI&, ll)':
0_0_24568233_25973.cpp:91:55: error: invalid initialization of non-const reference of type 'VI& {aka std::vector<int>&}' from an rvalue of type 'VI {aka std::vector<int>}'
         return solve(n,c,VI(a.begin(),a.begin()+SZ(c)));
                                                       ^
0_0_24568233_25973.cpp:42:8: note: in passing argument 3 of 'll linear_seq::solve(ll, VI&, VI&)'
     ll solve(ll n,VI&a,VI&b) {
        ^
0_0_24568233_25973.cpp: In function 'int main()':
0_0_24568233_25973.cpp:100:121: error: invalid initialization of non-const reference of type 'VI& {aka std::vector<int>&}' from an rvalue of type 'VI {aka std::vector<int>}'
         printf("%lld\n",linear_seq::gao(VI{0,1,5,11,36,95,281,781,2245,6336,18061,51205,145601,413351,1174500,3335651},n));
                                                                                                                         ^
0_0_24568233_25973.cpp:87:8: note: in passing argument 1 of 'll linear_seq::gao(VI&, ll)'
     ll gao(VI&a,ll n) {
        ^


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-17 14:34:18, Gzip enabled