Record Detail

Accepted

/in/lab7.cpp: In member function 'virtual Turn MyGame::turn()':
/in/lab7.cpp:224:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < blt.size(); i++) {
                         ~~^~~~~~~~~~~~
/in/lab7.cpp:235:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < blt.size(); i++) {
                         ~~^~~~~~~~~~~~
/in/lab7.cpp:241:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < blt.size(); i++) {
                         ~~^~~~~~~~~~~~
/in/lab7.cpp:252:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < blt.size(); i++) {
                         ~~^~~~~~~~~~~~
/in/lab7.cpp:258:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < blt.size(); i++) {
                         ~~^~~~~~~~~~~~
/in/lab7.cpp: In member function 'virtual void MyGame::move(Tank, Move)':
/in/lab7.cpp:158:13: warning: 'shoot' may be used uninitialized in this function [-Wmaybe-uninitialized]
             if (shoot == 0) {
             ^~
# Status Time Cost Memory Cost
#1 Accepted Detail 5ms 552.0 KiB
#2 Accepted Detail 34ms 404.0 KiB
#3 Accepted Detail 1ms 344.0 KiB
#4 Accepted Detail 2ms 392.0 KiB
#5 Accepted Detail 1ms 396.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 7 Task 1 (initialize, move, turn)
Language
C++
Submit At
2021-12-02 14:59:16
Judged At
2021-12-02 14:59:16
Judged By
Score
100
Total Time
45ms
Peak Memory
552.0 KiB