Problem adjmatrix
User noob41
Submission Time 2023-11-10 13:35:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int32_t main()’:
adjmatrix.cpp:8:9: error: conflicting declaration ‘long long int g [n][n]’
8 | int g[n][n];
| ^
adjmatrix.cpp:6:13: note: previous declaration as ‘long long int g’
6 | int n,e,g,ea,eb;
| ^
adjmatrix.cpp:10:13: error: invalid types ‘long long int[long long int]’ for array subscript
10 | g[ea][eb]=1;
| ^
adjmatrix.cpp:11:13: error: invalid types ‘long long int[long long int]’ for array subscript
11 | g[eb][ea]=1;
| ^