Problem adjmatrix
User Anonymous35V
Submission Time 2023-11-10 15:04:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:16:13: error: initializer in range-based ‘for’ loop
16 | for (int j=1: j<=n;++j){ //iterate through vector g[i]
| ^
adjmatrix.cpp:16:21: error: expected ‘)’ before ‘;’ token
16 | for (int j=1: j<=n;++j){ //iterate through vector g[i]
| ~ ^
| )
adjmatrix.cpp:16:24: error: ‘j’ was not declared in this scope
16 | for (int j=1: j<=n;++j){ //iterate through vector g[i]
| ^