记录详情

Compile Error

foo.cc: In function 'std::vector<std::vector<long long unsigned int> > mul(std::vector<std::vector<long long unsigned int> >&, std::vector<std::vector<long long unsigned int> >&)':
foo.cc:20:13: warning: unused variable 'm_b' [-Wunused-variable]
   20 |         int m_b = b.size(), n_b = b[0].size();
      |             ^~~
foo.cc: In function 'std::vector<std::vector<long long unsigned int> > solve(ull, ull, ull, ull, ull)':
foo.cc:68:23: error: cannot bind non-const lvalue reference of type 'std::vector<std::vector<long long unsigned int> >&' to an rvalue of type 'std::vector<std::vector<long long unsigned int> >'
   68 |         return mul(pow(m, T), x);
      |                    ~~~^~~~~~
foo.cc:14:46: note:   initializing argument 1 of 'std::vector<std::vector<long long unsigned int> > mul(std::vector<std::vector<long long unsigned int> >&, std::vector<std::vector<long long unsigned int> >&)'
   14 | vector<vector<ull>> mul(vector<vector<ull>>& a, vector<vector<ull>>& b) {
      |                         ~~~~~~~~~~~~~~~~~~~~~^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1512 Problem 2E. 演算资本积累模型
语言
C++
递交时间
2023-10-27 12:26:33
评测时间
2023-10-27 12:26:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes