Record Detail

Compile Error

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -o main.o -c main.cpp 
g++ -g -Wall -o event.o -c event.cpp 
event.cpp: In member function 'virtual void detect::processEvent()':
event.cpp:11:2: warning: value computed is not used [-Wunused-value]
  *undetected--;
  ^~~~~~~~~~~~~
event.cpp:12:2: warning: value computed is not used [-Wunused-value]
  *detected++;
  ^~~~~~~~~~~
g++ -g -Wall -o simulation.o -c simulation.cpp 
simulation.cpp:172:1: warning: "/*" within comment [-Wcomment]
 /*
  
simulation.cpp: In member function 'void virusSimulation::run_helper_verb()':
simulation.cpp:78:14: error: invalid use of non-static member function 'virtual void event::processEvent()'
     eveImpl->processEvent;
     ~~~~~~~~~^~~~~~~~~~~~
In file included from simulation.h:3:0,
                 from simulation.cpp:1:
event.h:16:18: note: declared here
     virtual void processEvent () = 0;
                  ^~~~~~~~~~~~
simulation.cpp: In member function 'void virusSimulation::run_helper_inverb()':
simulation.cpp:102:14: error: invalid use of non-static member function 'virtual void event::processEvent()'
     eveImpl->processEvent;
     ~~~~~~~~~^~~~~~~~~~~~
In file included from simulation.h:3:0,
                 from simulation.cpp:1:
event.h:16:18: note: declared here
     virtual void processEvent () = 0;
                  ^~~~~~~~~~~~
In file included from simulation.h:6:0,
                 from simulation.cpp:1:
unsorted_heap.h: In instantiation of 'const TYPE& unsorted_heap<TYPE, COMP>::get_min() const [with TYPE = event*; COMP = std::less<event*>]':
simulation.cpp:115:1:   required from here
unsorted_heap.h:90:7: warning: reference to local variable 'res' returned [-Wreturn-local-addr]
  TYPE res = compare(min, max) ? min : max;
       ^~~
Makefile:16: recipe for target 'simulation.o' failed
make: *** [simulation.o] Error 1

build failed

Information

Submit By
Type
Submission
Homework
Project 3: Priority Queue
Language
GNU Make
Submit At
2020-07-14 23:46:24
Judged At
2020-08-11 07:55:30
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes