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_39512722_1340.cpp: In function 'std::string karatsubaMultiply(const std::string&, const std::string&)':
0_0_39512722_1340.cpp:61:172: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   61 |     vector<int> c1 = addVectors(stringToVector(karatsubaMultiply(vectorToString(addVectors(a1, a0)), vectorToString(addVectors(b1, b0)))), vectorToString(karatsubaMultiply(vectorToString(a1), vectorToString(b1))));
      |                                                                                                                                                           ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_39512722_1340.cpp:39:42: note: in passing argument 1 of 'std::string vectorToString(const std::vector<int>&)'
   39 | string vectorToString(const vector<int> &v) {
      |                       ~~~~~~~~~~~~~~~~~~~^


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-28 09:56:31, Gzip enabled