Record Detail

Accepted

prepare (1/3): 
finished

make (2/3): 
clang++ -std=c++14 -g -Wall -O3 -o main.o -c main.cpp 
clang++ -std=c++14 -g -Wall -O3 -o client.o -c client.cpp 
clang++ -std=c++14 -g -Wall -O3 -o market.o -c market.cpp 
market.cpp:114:8: warning: unused variable 'result' [-Wunused-variable]
                auto result = expireOrders.emplace(duration, std::move(temp));
                     ^
1 warning generated.
clang++ -std=c++14 -g -Wall -O3 -o stock.o -c stock.cpp 
stock.cpp:63:42: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        market.trade(dealtPrice, dealtQuantity, std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
                                                ^
stock.cpp:63:42: note: remove std::move call here
        market.trade(dealtPrice, dealtQuantity, std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
                                                ^~~~~~~~~~                                        ~
stock.cpp:63:95: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        market.trade(dealtPrice, dealtQuantity, std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
                                                                                                     ^
stock.cpp:63:95: note: remove std::move call here
        market.trade(dealtPrice, dealtQuantity, std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
                                                                                                     ^~~~~~~~~~                                          ~
stock.cpp:85:42: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        market.trade(dealtPrice, dealtQuantity, std::move(dealingOrder->orderClient->getClientName()), std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
                                                ^
stock.cpp:85:42: note: remove std::move call here
        market.trade(dealtPrice, dealtQuantity, std::move(dealingOrder->orderClient->getClientName()), std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
                                                ^~~~~~~~~~                                          ~
stock.cpp:85:97: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        market.trade(dealtPrice, dealtQuantity, std::move(dealingOrder->orderClient->getClientName()), std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
                                                                                                       ^
stock.cpp:85:97: note: remove std::move call here
        market.trade(dealtPrice, dealtQuantity, std::move(dealingOrder->orderClient->getClientName()), std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
                                                                                                       ^~~~~~~~~~                                        ~
In file included from stock.cpp:8:
./stock.h:20:6: warning: private field 'timeStamp' is not used [-Wunused-private-field]
        int timeStamp;
            ^
5 warnings generated.
clang++ -std=c++14 -g -Wall -O3 -o main main.o client.o market.o stock.o
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted 2ms 392.0 KiB
#2 Accepted 3ms 400.0 KiB
#3 Accepted 3ms 388.0 KiB
#4 Accepted 2ms 404.0 KiB
#5 Accepted 56ms 556.0 KiB
#6 Accepted 2ms 432.0 KiB
#7 Accepted 2ms 380.0 KiB
#8 Accepted 2ms 376.0 KiB
#9 Accepted 3ms 396.0 KiB
#10 Accepted 2ms 380.0 KiB
#11 Accepted 5ms 404.0 KiB
#12 Accepted 2ms 480.0 KiB
#13 Accepted 3ms 376.0 KiB
#14 Accepted 2ms 380.0 KiB
#15 Accepted 2ms 480.0 KiB
#16 Accepted 4ms 472.0 KiB
#17 Accepted 6ms 492.0 KiB
#18 Accepted 5ms 488.0 KiB
#19 Accepted 5ms 508.0 KiB
#20 Accepted 2ms 380.0 KiB
#21 Accepted 7ms 504.0 KiB
#22 Accepted 9ms 504.0 KiB
#23 Accepted 8ms 580.0 KiB
#24 Accepted 4ms 512.0 KiB
#25 Accepted 4ms 508.0 KiB
#26 Accepted 16ms 696.0 KiB
#27 Accepted 67ms 760.0 KiB
#28 Accepted 66ms 748.0 KiB
#29 Accepted 12ms 684.0 KiB
#30 Accepted 13ms 628.0 KiB
#31 Accepted 29ms 908.0 KiB
#32 Accepted 241ms 904.0 KiB
#33 Accepted 23ms 904.0 KiB
#34 Accepted 22ms 896.0 KiB
#35 Accepted 61ms 1.305 MiB
#36 Accepted 47ms 1.324 MiB
#37 Accepted 49ms 1.324 MiB
#38 Accepted 44ms 4.121 MiB
#39 Accepted 48ms 4.164 MiB
#40 Accepted 47ms 4.453 MiB
#41 Accepted 1020ms 8.52 MiB
#42 Accepted 628ms 8.531 MiB
#43 Accepted 3134ms 20.609 MiB
#44 Accepted 1841ms 20.605 MiB
#45 Accepted 6006ms 39.074 MiB
#46 Accepted 4223ms 39.035 MiB
#47 Accepted 2397ms 19.594 MiB
#48 Accepted 2849ms 19.551 MiB
#49 Accepted 1499ms 19.5 MiB
#50 Accepted 2ms 380.0 KiB

Information

Submit By
Type
Submission
Homework
Project Four: Electronic Trading
Language
GNU Make
Submit At
2018-11-30 23:41:09
Judged At
2018-12-25 15:30:44
Judged By
Score
1000
Total Time
24551ms
Peak Memory
39.074 MiB