Record Detail

Accepted

/in/lab7.cpp: In member function 'virtual Turn MyGame::turn()':
/in/lab7.cpp:112:69: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          (Tank2[Tank_A]+Vector2(-1,0))==Tank2[Tank_B]&&td[Tank_A]==2&&td[Tank_B]==0||
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/in/lab7.cpp:113:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          (Tank2[Tank_A]+Vector2(1,0))==Tank2[Tank_B]&&td[Tank_A]==0&&td[Tank_B]==2||
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/in/lab7.cpp:114:69: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          (Tank2[Tank_A]+Vector2(0,-1))==Tank2[Tank_B]&&td[Tank_A]==3&&td[Tank_B]==1||
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/in/lab7.cpp:115:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          (Tank2[Tank_A]+Vector2(0,1))==Tank2[Tank_B]&&td[Tank_A]==1&&td[Tank_B]==3
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/in/lab7.cpp:122:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for(i=0;i<bullet.size();i++){
                  ~^~~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 16ms 452.0 KiB
#2 Accepted Detail 9ms 460.0 KiB
#3 Accepted Detail 9ms 464.0 KiB
#4 Accepted Detail 3ms 384.0 KiB
#5 Accepted Detail 16ms 516.0 KiB

Information

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