/ Vijos /

记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2015-11-04 12:50:52
评测时间
2015-11-04 12:50:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes