记录详情

Compile Error

/in/foo.cc: In function 'std::vector<int> power(const std::vector<int>&, int, int)':
/in/foo.cc:27:37: error: cannot convert 'std::vector<int>' to 'int' for argument '2' to 'std::vector<int> Mul(const std::vector<int>&, int, int)'
         return Mul(Mul(temp, temp, K), base, K);
                                     ^
/in/foo.cc: In function 'std::__cxx11::string to_string(const std::vector<int>&, int)':
/in/foo.cc:43:41: error: 'reverse' was not declared in this scope
     reverse(result.begin(), result.end());
                                         ^
/in/foo.cc: In function 'std::__cxx11::string convertToBaseK(const std::vector<int>&, int)':
/in/foo.cc:65:41: error: 'reverse' was not declared in this scope
     reverse(result.begin(), result.end());
                                         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:80:31: error: 'reverse' was not declared in this scope
     reverse(A.begin(), A.end()); // 使A的高位在数组的后部
                               ^

信息

递交者
类型
自测
题目
A11-2 K进制的高精度整数
语言
C++
递交时间
2024-10-12 18:31:06
评测时间
2024-10-12 18:31:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes