Problem | adjmatrix |
---|---|
User | GWC2724 |
Submission Time | 2023-11-17 10:00:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:4:26: error: redeclaration of ‘int g [50]’
4 | int n, e, a, b, g[50], g[50];
| ^
adjmatrix.cpp:4:19: note: ‘int g [50]’ previously declared here
4 | int n, e, a, b, g[50], g[50];
| ^
adjmatrix.cpp:9:13: error: invalid types ‘int[int]’ for array subscript
9 | g[i][j] = 0;
| ^
adjmatrix.cpp:13:17: error: invalid types ‘int[int]’ for array subscript
13 | g[a-1][b-1]=1;
| ^
adjmatrix.cpp:14:17: error: invalid types ‘int[int]’ for array subscript
14 | g[b-1][a-1]=1;
| ^
adjmatrix.cpp:18:21: error: invalid types ‘int[int]’ for array subscript
18 | cout<<g[i][j];
| ^