Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:76:5: error: 'unordered_map' does not name a type
     unordered_map<uint, vector<pair<uint, ll>>> graph;
     ^~~~~~~~~~~~~
/in/shortestP2P.hpp:78:38: error: 'unordered_map' has not been declared
     bool spfa_cycleChecker(uint src, unordered_map<uint, vector<pair<uint, ll>>>& graph){
                                      ^~~~~~~~~~~~~
/in/shortestP2P.hpp:78:51: error: expected ',' or '...' before '<' token
     bool spfa_cycleChecker(uint src, unordered_map<uint, vector<pair<uint, ll>>>& graph){
                                                   ^
/in/shortestP2P.hpp:108:47: error: 'unordered_map' has not been declared
     void spfa_distFinder(uint src, uint dest, unordered_map<uint, vector<pair<uint, ll>>>& graph){
                                               ^~~~~~~~~~~~~
/in/shortestP2P.hpp:108:60: error: expected ',' or '...' before '<' token
     void spfa_distFinder(uint src, uint dest, unordered_map<uint, vector<pair<uint, ll>>>& graph){
                                                            ^
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:49:11: error: 'graph' was not declared in this scope
           graph[A].push_back(make_pair(B, dist));
           ^~~~~
/in/shortestP2P.hpp:49:11: note: suggested alternative: 'isgraph'
           graph[A].push_back(make_pair(B, dist));
           ^~~~~
           isgraph
/in/shortestP2P.hpp:52:28: error: 'graph' was not declared in this scope
         for (auto vertex : graph){
                            ^~~~~
/in/shortestP2P.hpp:52:28: note: suggested alternative: 'isgraph'
         for (auto vertex : graph){
                            ^~~~~
                            isgraph
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:68:13: error: 'graph' was not declared in this scope
         if (graph.find(A) == graph.end() || graph.find(B) == graph.end()){
             ^~~~~
/in/shortestP2P.hpp:68:13: note: suggested alternative: 'isgraph'
         if (graph.find(A) == graph.end() || graph.find(B) == graph.end()){
             ^~~~~
             isgraph
/in/shortestP2P.hpp:72:31: error: 'graph' was not declared in this scope
         spfa_distFinder(A, B, graph);
                               ^~~~~
/in/shortestP2P.hpp:72:31: note: suggested alternative: 'isgraph'
         spfa_distFinder(A, B, graph);
                               ^~~~~
                               isgraph
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::spfa_cycleChecker(uint, int)':
/in/shortestP2P.hpp:79:23: error: 'graph' was not declared in this scope
       vector<ll> dist(graph.size(), INF);
                       ^~~~~
/in/shortestP2P.hpp:79:23: note: suggested alternative: 'isgraph'
       vector<ll> dist(graph.size(), INF);
                       ^~~~~
                       isgraph
/in/shortestP2P.hpp: In member function 'void ShortestP2P::spfa_distFinder(uint, uint, int)':
/in/shortestP2P.hpp:109:23: error: 'graph' was not declared in this scope
       vector<ll> dist(graph.size(), INF);
                       ^~~~~
/in/shortestP2P.hpp:109:23: note: suggested alternative: 'isgraph'
       vector<ll> dist(graph.size(), INF);
                       ^~~~~
                       isgraph

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-12-05 18:08:09
Judged At
2024-12-05 18:08:09
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes