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_39173040_7060.cpp: In function 'std::vector<int> fibonacci(int)':
0_0_39173040_7060.cpp:54:22: error: cannot bind non-const lvalue reference of type 'std::vector<int>&' to an rvalue of type 'std::vector<int>'
   54 |         fib = add(add(fib, temp), add(temp, temp));
      |                   ~~~^~~~~~~~~~~
0_0_39173040_7060.cpp:7:30: note:   initializing argument 1 of 'std::vector<int> add(std::vector<int>&, std::vector<int>&)'
    7 | vector<int> add(vector<int>& num1, vector<int>& num2) {
      |                 ~~~~~~~~~~~~~^~~~


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 21:50:49, Gzip enabled