记录详情

Compile Error

/in/foo.cc: In function 'std::__cxx11::string add(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:23:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<max(a.length(),b.length());i++){
              ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:33:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=mm;i<mm+res.length();i++){
               ~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:90:15: error: could not convert 'b' from 'int' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'
  cout<<add(a,b);
               ^

信息

递交者
类型
递交
题目
A11-1 高精度整数与常规整数的乘法
比赛
2024程序设计与竞赛作业赛第二场(数组与世界)
语言
C++
递交时间
2024-10-10 21:27:19
评测时间
2024-10-10 21:27:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes