Problem | adjmatrix |
---|---|
User | Johnnie |
Submission Time | 2023-06-11 21:52:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:22:15: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
22 | matrix[i] = line;
| ^~~~
| |
| int*
adjmatrix.cpp:26:28: error: invalid types ‘int[int]’ for array subscript
26 | matrix[node1[i]][node2[i]] = 1;
| ^
adjmatrix.cpp:27:28: error: invalid types ‘int[int]’ for array subscript
27 | matrix[node2[i]][node1[i]] = 1;
| ^
adjmatrix.cpp:33:23: error: invalid types ‘int[int]’ for array subscript
33 | cout << matrix[i][j];
| ^