| Problem | adjmatrix |
|---|---|
| User | shaokai347 |
| Submission Time | 2026-02-05 18:02:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp:24:2: error: expected ‘;’ after class definition
24 | }
| ^
| ;
adjmatrix.cpp: In member function ‘void Graph::addVertex(long long int, long long int)’:
adjmatrix.cpp:11:39: error: expected primary-expression before ‘^’ token
11 | if (i>=0 && i<=numVertices && j>=0 &^& i<=numVertices){
| ^
adjmatrix.cpp:11:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (i>=0 && i<=numVertices && j>=0 &^& i<=numVertices){
| ^~~~~~~~~~~
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:29:11: error: ‘Graph::Graph(long long int)’ is private within this context
29 | Graph g(n);
| ^
adjmatrix.cpp:6:2: note: declared private here
6 | Graph(long long numVertices){
| ^~~~~
adjmatrix.cpp:32:3: error: ‘addVertex’ was not decl