Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:53:31: error: expected identifier before numeric constant
     vector< vector<int> > adj(99999);
                               ^~~~~
/in/shortestP2P.hpp:53:31: error: expected ',' or '...' before numeric constant
In file included from /in/shortestP2P.cc:1:0:
/in/shortestP2P.hpp:53:31: error: expected identifier before numeric constant
     vector< vector<int> > adj(99999);
                               ^~~~~
/in/shortestP2P.hpp:53:31: error: expected ',' or '...' before numeric constant
/in/shortestP2P.cc: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.cc:44:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     if (adj[a][b] == INF) {cout << "INF" << endl;}
              ^
/in/shortestP2P.cc:45:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     else {cout << adj[a][b] << endl;}
                        ^

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2021-12-14 11:34:25
Judged At
2021-12-14 11:34:25
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes