Problem adjmatrix
User carson
Submission Time 2025-03-12 21:01:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:7:40: error: ‘m’ was not declared in this scope
7 | vector<vector<int>> arr(n,vector<int>(m))
| ^
adjmatrix.cpp:8:2: error: expected ‘,’ or ‘;’ before ‘for’
8 | for(int i = 0;i < e; i++)
| ^~~
adjmatrix.cpp:8:16: error: ‘i’ was not declared in this scope
8 | for(int i = 0;i < e; i++)
| ^
adjmatrix.cpp:18:16: error: ‘x’ was not declared in this scope
18 | cout << arr[x][y];
| ^
adjmatrix.cpp:18:19: error: ‘y’ was not declared in this scope
18 | cout << arr[x][y];
| ^