Record Detail

Accepted

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O2 -o main.o -c main.cpp 
In file included from main.cpp:2:0:
class.h: In member function 'void Prim_manager::update_weight(int)':
class.h:101:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<v->edgenum;i++){
                 ~^~~~~~~~~~~
class.h: In member function 'bool Prim_manager::all_connected()':
class.h:112:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<numvertex;i++){
                 ~^~~~~~~~~~
class.h: In member function 'int Prim_manager::next_to_connect()':
class.h:122:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<numvertex;i++){
                 ~^~~~~~~~~~
class.h: In member function 'int Prim_manager::find_connector(int)':
class.h:140:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<v->edgenum;i++){
                 ~^~~~~~~~~~~
class.h: In member function 'void Prim_manager::connect(int, int)':
class.h:156:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=1;i<v1->edgenum;i++){
                 ~^~~~~~~~~~~~
class.h:162:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=1;i<v2->edgenum;i++){
                 ~^~~~~~~~~~~~
class.h: In destructor 'Prim_manager::~Prim_manager()':
class.h:185:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<vertixlist.size();i++){
                 ~^~~~~~~~~~~~~~~~~~
class.h:186:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j=0;j<vertixlist[i]->edgelist.size();j++){
                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:10:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<numedge;i++){
                 ~^~~~~~~~
In file included from main.cpp:2:0:
class.h: In member function 'int Prim_manager::next_to_connect()':
class.h:130:12: warning: 'minvertix' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return minvertix;
            ^~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:22:20: warning: 'minvertix' may be used uninitialized in this function [-Wmaybe-uninitialized]
         pm->connect(a,b);
         ~~~~~~~~~~~^~~~~
g++ -g -Wall -O2 -o main main.o
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 448.0 KiB
#2 Accepted Detail 1ms 384.0 KiB
#3 Accepted Detail 1ms 380.0 KiB
#4 Accepted Detail 1ms 384.0 KiB
#5 Accepted Detail 1ms 376.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 2
Language
GNU Make
Submit At
2019-09-20 19:33:18
Judged At
2019-09-20 19:33:18
Judged By
Score
100
Total Time
8ms
Peak Memory
448.0 KiB