Record Detail

Compile Error

/in/shortestP2P.cc: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.cc:13:5: error: 'total_num' was not declared in this scope
     total_num = num_nodes * num_nodes + num_nodes;
     ^~~~~~~~~
/in/shortestP2P.cc:13:5: note: suggested alternative: '_ISalnum'
     total_num = num_nodes * num_nodes + num_nodes;
     ^~~~~~~~~
     _ISalnum
/in/shortestP2P.cc: In member function 'void ShortestP2P::calculate()':
/in/shortestP2P.cc:28:41: error: 'total_num' was not declared in this scope
             if (dist[ik] != INF && dist[total_num - 1 - i] == 1) {
                                         ^~~~~~~~~
/in/shortestP2P.cc:28:41: note: suggested alternative: '_ISalnum'
             if (dist[ik] != INF && dist[total_num - 1 - i] == 1) {
                                         ^~~~~~~~~
                                         _ISalnum

Information

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