Problem adjmatrix
User yixiin26
Submission Time 2023-11-10 13:53:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp:5:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
5 | cin >> V >> E;
| ^~~
| sin
adjmatrix.cpp:6:7: error: expected constructor, destructor, or type conversion before ‘(’ token
6 | memset(g, -1, sizeof(g));
| ^
adjmatrix.cpp:7:1: error: expected unqualified-id before ‘for’
7 | for (int i = 0; i < E; i++) {
| ^~~
adjmatrix.cpp:7:17: error: ‘i’ does not name a type
7 | for (int i = 0; i < E; i++) {
| ^
adjmatrix.cpp:7:24: error: ‘i’ does not name a type
7 | for (int i = 0; i < E; i++) {
| ^