Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:52:34: error: unused parameter 'A' [-Werror=unused-parameter]
       void distance(unsigned int A, unsigned int B) {}
                                  ^
/in/shortestP2P.hpp:52:50: error: unused parameter 'B' [-Werror=unused-parameter]
       void distance(unsigned int A, unsigned int B) {}
                                                  ^
cc1plus: all warnings being treated as errors
In file included from /in/shortestP2P.cc:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:52:34: error: unused parameter 'A' [-Werror=unused-parameter]
       void distance(unsigned int A, unsigned int B) {}
                                  ^
/in/shortestP2P.hpp:52:50: error: unused parameter 'B' [-Werror=unused-parameter]
       void distance(unsigned int A, unsigned int B) {}
                                                  ^
/in/shortestP2P.cc: At global scope:
/in/shortestP2P.cc:3:1: error: redefinition of 'ShortestP2P::~ShortestP2P()'
 ShortestP2P::~ShortestP2P() {
 ^~~~~~~~~~~
In file included from /in/shortestP2P.cc:1:0:
/in/shortestP2P.hpp:17:7: note: 'ShortestP2P::~ShortestP2P()' previously defined here
       ~ShortestP2P() {}
       ^
/in/shortestP2P.cc:10:6: error: redefinition of 'void ShortestP2P::readGraph()'
 void ShortestP2P::readGraph() {
      ^~~~~~~~~~~
In file included from /in/shortestP2P.cc:1:0:
/in/shortestP2P.hpp:43:12: note: 'void ShortestP2P::readGraph()' previously defined here
       void readGraph() {}
            ^~~~~~~~~
/in/shortestP2P.cc:58:6: error: redefinition of 'void ShortestP2P::distance(unsigned int, unsigned int)'
 void ShortestP2P::distance(unsigned int A, unsigned int B) {
      ^~~~~~~~~~~
In file included from /in/shortestP2P.cc:1:0:
/in/shortestP2P.hpp:52:12: note: 'void ShortestP2P::distance(unsigned int, unsigned int)' previously defined here
       void distance(unsigned int A, unsigned int B) {}
            ^~~~~~~~
cc1plus: all warnings being treated as errors

Information

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