Record Detail

Accepted

/in/lab7.cpp: In constructor 'TANK::TANK(int, int, Direction)':
/in/lab7.cpp:73:18: warning: 'TANK::location' will be initialized after [-Wreorder]
     Vector2<int> location;
                  ^~~~~~~~
/in/lab7.cpp:72:9: warning:   'int TANK::direction' [-Wreorder]
     int direction;
         ^~~~~~~~~
/in/lab7.cpp:18:5: warning:   when initialized here [-Wreorder]
     TANK(int b = 0, int c = 0, Direction d = D_Left) : location(Vector2<int>(b, c)), direction(d), life(5) {}
     ^~~~
/in/lab7.cpp:72:9: warning: 'TANK::direction' will be initialized after [-Wreorder]
     int direction;
         ^~~~~~~~~
/in/lab7.cpp:71:9: warning:   'int TANK::life' [-Wreorder]
     int life;
         ^~~~
/in/lab7.cpp:18:5: warning:   when initialized here [-Wreorder]
     TANK(int b = 0, int c = 0, Direction d = D_Left) : location(Vector2<int>(b, c)), direction(d), life(5) {}
     ^~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 388.0 KiB
#2 Accepted Detail 1ms 380.0 KiB
#3 Accepted Detail 1ms 384.0 KiB
#4 Accepted Detail 1ms 388.0 KiB
#5 Accepted Detail 1ms 340.0 KiB

Information

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