记录详情

Compile Error

/in/foo.cc: In function 'std::__cxx11::string Mul(const string&, int)':
/in/foo.cc:18:39: error: too many arguments to function 'int to_string()'
         result += to_string(total % 10);
                                       ^
/in/foo.cc:10:6: note: declared here
  int to_string(); 
      ^~~~~~~~~
/in/foo.cc:22:39: error: too many arguments to function 'int to_string()'
         result += to_string(carry % 10);
                                       ^
/in/foo.cc:10:6: note: declared here
  int to_string(); 
      ^~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:49:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (space_pos == string::npos) 
         ~~~~~~~~~~^~~~~~~~~

信息

递交者
类型
递交
比赛
泰院2401程序设计基础作业赛第七场
语言
C++
递交时间
2024-12-02 14:29:45
评测时间
2024-12-02 14:29:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes