DrMemory in "hack" mode

Правка en2, от Roman1, 2018-05-07 00:47:16

Hi,

In the http://codeforces.net/contest/977 contest, there is substantial amount of solutions with errors like out-of-array-bounds or uninitialized memory reads. Many of them are accepted, as the errors don't lead to failure: layout of variables is "lucky enough".

Many of the solutions are currently marked as accepted. So, it is possible to try "hacking" them, i.e. to build a test case, which would reveal solution incorrectness.

In "custom test" mode (http://codeforces.net/contest/977/customtest), if compiler is in Diagnostics (DrMemory) mode, the errors are detected.

Question — how to "hack" solution in DrMemory mode, so that memory errors are detected in "hack" mode as they are currently detected in "custom test" mode?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru5 Русский Roman1 2018-05-07 16:21:03 2 Мелкая правка: ' детектируется. \n\nВ' -> ' детектируются. \n\nВ'
ru4 Русский Roman1 2018-05-07 01:15:54 2 Мелкая правка: ' или чтение неинициал' -> ' или чтения неинициал'
en2 Английский Roman1 2018-05-07 00:47:16 1 Tiny change: 'Hi\n\nIn the' -> 'Hi,\n\nIn the'
ru3 Русский Roman1 2018-05-07 00:46:59 1 Мелкая правка: 'ся в режим DrMemory,' -> 'ся в режиме DrMemory,'
en1 Английский Roman1 2018-05-07 00:46:44 771 Initial revision for English translation
ru2 Русский Roman1 2018-05-07 00:42:37 2 Мелкая правка: 'ory) ошибка детектиру' -> 'ory) ошибки детектиру'
ru1 Русский Roman1 2018-05-07 00:41:59 904 Первая редакция (опубликовано)