Record Detail

Wrong Answer

/in/lab7.cpp: In member function 'void MyGame::drawGridLine(std::stringstream&, char) const':
/in/lab7.cpp:239:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i == border - 1) ss << '+'; // extra '+' for double pipe
        ~~^~~~~~~~~~~~~
/in/lab7.cpp: In member function 'void MyGame::drawCharsWithFixedWidth(std::stringstream&, const char*) const':
/in/lab7.cpp:253:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (charLen > blockSize) {
       ~~~~~~~~^~~~~~~~~~~
/in/lab7.cpp:254:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int i = 0; i < blockSize; i++) {
                    ~~^~~~~~~~~~~
/in/lab7.cpp: In member function 'virtual std::__cxx11::string MyGame::draw() const':
/in/lab7.cpp:437:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (j == border - 1) ss << '|'; // extra
         ~~^~~~~~~~~~~~~
/in/lab7.cpp:440:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i == border - 1) drawGridLine(ss, '=');
        ~~^~~~~~~~~~~~~
/in/lab7.cpp: In member function 'Bullet* MyTank::generateBullet()':
/in/lab7.cpp:183:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
# Status Time Cost Memory Cost
#1 Wrong Answer Detail 8ms 520.0 KiB
#2 Wrong Answer Detail 4ms 468.0 KiB
#3 Wrong Answer Detail 6ms 512.0 KiB
#4 Wrong Answer Detail 3ms 520.0 KiB
#5 Wrong Answer Detail 4ms 520.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 7 Task 1 (initialize, move, turn)
Language
C++
Submit At
2021-12-07 10:06:48
Judged At
2021-12-07 10:06:48
Judged By
Score
0
Total Time
27ms
Peak Memory
520.0 KiB