Record Detail

Accepted

/in/lab7.cpp: In member function 'virtual Turn MyGame::turn()':
/in/lab7.cpp:162:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (me.x == opposite.x && me.y == opposite.y || (me.x == preOpposite.x && me.y == preOpposite.y) && (opposite.x == preMe.x && opposite.y == preOpposite.y)) {
       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/in/lab7.cpp: In member function 'virtual Map MyGame::getMap() const':
/in/lab7.cpp:242:7: warning: unused variable 'id' [-Wunused-variable]
   int id = 0;
       ^~
/in/lab7.cpp: In member function 'int MyGame::transDirection(Direction)':
/in/lab7.cpp:51:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
/in/lab7.cpp: In member function 'virtual Move MyBrain::judge()':
/in/lab7.cpp:338:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
# Status Time Cost Memory Cost
#1 Accepted Detail 3ms 704.0 KiB
#2 Accepted Detail 18ms 600.0 KiB
#3 Accepted Detail 2ms 384.0 KiB
#4 Accepted Detail 1ms 372.0 KiB
#5 Accepted Detail 2ms 380.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 7 Task 1 (initialize, move, turn)
Language
C++
Submit At
2021-12-05 17:54:53
Judged At
2021-12-05 17:54:53
Judged By
Score
100
Total Time
28ms
Peak Memory
704.0 KiB