- Owner
- Petru Trîmbițaș
- Problem
- Battleship
- Contest
- MindCoding Final 1
- Source
- 2.83KB
- Result
- 99 points
Compiler output
prog.cpp: In constructor ‘Board::Board()’: prog.cpp:39:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] prog.cpp: In member function ‘bool Board::finished()’: prog.cpp:69:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] prog.cpp: In function ‘int main()’: prog.cpp:94:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ver.cpp: In constructor ‘Board::Board()’: ver.cpp:38:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ver.cpp: In member function ‘bool Board::finished()’: ver.cpp:68:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ver.cpp: In member function ‘bool Game::setHuman()’: ver.cpp:78:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ver.cpp: In member function ‘void Bot1::setShips()’: ver.cpp:114:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ver.cpp: In member function ‘void Test::testBot1()’: ver.cpp:182:9: warning: unused variable ‘b’ [-Wunused-variable]
Results
Test number Result Time 1 Wrong Answer 0.0273s 2 1 0.0225s 3 1 0.0238s 4 1 0.0227s 5 1 0.0255s 6 1 0.0229s 7 1 0.0229s 8 1 0.0257s 9 1 0.0240s 10 1 0.0238s 11 1 0.0234s 12 1 0.0251s 13 1 0.0250s 14 1 0.0319s 15 1 0.0252s 16 1 0.0233s 17 1 0.0239s 18 1 0.0240s 19 1 0.0229s 20 1 0.0238s 21 1 0.0228s 22 1 0.0335s 23 1 0.0257s 24 1 0.0237s 25 1 0.0251s 26 1 0.0234s 27 1 0.0239s 28 1 0.0233s 29 1 0.0225s 30 1 0.0239s 31 1 0.0237s 32 1 0.0230s 33 1 0.0245s 34 1 0.0230s 35 1 0.0230s 36 1 0.0232s 37 1 0.0280s 38 1 0.0223s 39 1 0.0239s 40 1 0.0239s 41 1 0.0225s 42 1 0.0253s 43 1 0.0229s 44 1 0.0253s 45 1 0.0245s 46 1 0.0241s 47 1 0.0232s 48 1 0.0228s 49 1 0.0227s 50 1 0.0241s 51 1 0.0233s 52 1 0.0224s 53 1 0.0238s 54 1 0.0231s 55 1 0.0222s 56 1 0.0232s 57 1 0.0275s 58 1 0.0228s 59 1 0.0230s 60 1 0.0239s 61 1 0.0326s 62 1 0.0294s 63 1 0.0274s 64 1 0.0241s 65 1 0.0294s 66 1 0.0248s 67 1 0.0248s 68 1 0.0254s 69 1 0.0264s 70 1 0.0267s 71 1 0.0260s 72 1 0.0279s 73 1 0.0231s 74 1 0.0311s 75 1 0.0292s 76 1 0.0238s 77 1 0.0242s 78 1 0.0233s 79 1 0.0230s 80 1 0.0225s 81 1 0.0242s 82 1 0.0242s 83 1 0.0227s 84 1 0.0252s 85 1 0.0228s 86 1 0.0230s 87 1 0.0244s 88 1 0.0222s 89 1 0.0253s 90 1 0.0235s 91 1 0.0232s 92 1 0.0228s 93 1 0.0331s 94 1 0.0237s 95 1 0.0226s 96 1 0.0227s 97 1 0.0267s 98 1 0.0228s 99 1 0.0231s 100 1 0.0225s