| Problem | adjlist |
|---|---|
| User | shaokai347 |
| Submission Time | 2026-02-07 23:07:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:57:33: error: cannot bind non-const lvalue reference of type ‘std::vector<std::vector<int> >&’ to an rvalue of type ‘std::vector<std::vector<int> >’
57 | matrixToList(g.getMatrix(), g.size());
| ~~~~~~~~~~~^~
adjlist.cpp:32:55: note: initializing argument 1 of ‘std::vector<std::vector<int> > matrixToList(std::vector<std::vector<int> >&, int)’
32 | vector<vector<int>> matrixToList(vector<vector<int>> &M, int n) {
| ~~~~~~~~~~~~~~~~~~~~~^