Record Detail

Accepted

prepare (1/3): 
finished

make (2/3): 
g++ -g -Wall -O3 -o p4.o -c p4.cpp 
In file included from p4.cpp:16:0:
utility.h: In function 'bool find_match(equity*, order*, bool, bool, int*, int*, int*, int*, std::map<std::__cxx11::basic_string<char>, transfer>*)':
utility.h:128:12: warning: unused variable 'erase_it1' [-Wunused-variable]
       bool erase_it1=0;
            ^~~~~~~~~
utility.h:200:12: warning: unused variable 'erase_it1' [-Wunused-variable]
       bool erase_it1=0;
            ^~~~~~~~~
p4.cpp: In function 'int main(int, char**)':
p4.cpp:152:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=1;i<(it1->second.match_price.size()/2);i++){
                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
p4.cpp:161:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for(int i=1;i<((it1->second.match_price.size()+1)/2);i++){
                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
p4.cpp:229:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=1;i<(it1->second.match_price.size()/2);i++){
                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
p4.cpp:238:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for(int i=1;i<((it1->second.match_price.size()+1)/2);i++){
                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
p4.cpp:291:9: warning: variable 'max_sell_id' set but not used [-Wunused-but-set-variable]
     int max_sell_id=-1;
         ^~~~~~~~~~~
p4.cpp:294:9: warning: variable 'max_buy_id' set but not used [-Wunused-but-set-variable]
     int max_buy_id=-1;
         ^~~~~~~~~~
g++ -g -Wall -O3 -o main p4.o
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted 2ms 376.0 KiB
#2 Accepted 2ms 388.0 KiB
#3 Accepted 2ms 452.0 KiB
#4 Accepted 2ms 372.0 KiB
#5 Accepted 191ms 1.129 MiB

Information

Submit By
Type
Submission
Homework
Project Four: Electronic Trading
Language
GNU Make
Submit At
2018-11-30 19:45:17
Judged At
2018-11-30 19:45:17
Judged By
Score
25
Total Time
201ms
Peak Memory
1.129 MiB