/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void Proc1()':
foo.cpp:105:22: error: no matching function for call to 'Num::Num(Num)'
     Num num_p = Num(p);
                      ^
foo.cpp:105:22: note: candidates are:
foo.cpp:47:1: note: Num::Num(Num&)
 Num::Num(Num& num_cpy)
 ^
foo.cpp:47:1: note:   no known conversion for argument 1 from 'Num' to 'Num&'
foo.cpp:40:1: note: Num::Num(std::string&)
 Num::Num(string&str_p)
 ^
foo.cpp:40:1: note:   no known conversion for argument 1 from 'Num' to 'std::string& {aka std::basic_string<char>&}'
foo.cpp:31:1: note: Num::Num(short int)
 Num::Num(short digit_num)
 ^
foo.cpp:31:1: note:   no known conversion for argument 1 from 'Num' to 'short int'
foo.cpp:24:1: note: Num::Num()
 Num::Num()
 ^
foo.cpp:24:1: note:   candidate expects 0 arguments, 1 provided
foo.cpp:106:22: error: no matching function for call to 'Num::Num(Num)'
     Num num_q = Num(q);
                      ^
foo.cpp:106:22: note: candidates are:
foo.cpp:47:1: note: Num::Num(Num&)
 Num::Num(Num& num_cpy)
 ^
foo.cpp:47:1: note:   no known conversion for argument 1 from 'Num' to 'Num&'
foo.cpp:40:1: note: Num::Num(std::string&)
 Num::Num(string&str_p)
 ^
foo.cpp:40:1: note:   no known conversion for argument 1 from 'Num' to 'std::string& {aka std::basic_string<char>&}'
foo.cpp:31:1: note: Num::Num(short int)
 Num::Num(short digit_num)
 ^
foo.cpp:31:1: note:   no known conversion for argument 1 from 'Num' to 'short int'
foo.cpp:24:1: note: Num::Num()
 Num::Num()
 ^
foo.cpp:24:1: note:   candidate expects 0 arguments, 1 provided

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2016-05-13 07:47:04
评测时间
2016-05-13 07:47:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes