GCC giving different results in Windows and WSL

Правка en2, от Robin, 2020-04-07 20:16:09

So I was debugging this code and managed input/outputs in separate files. I ran the same code with same flags in codeblocks and WSL ubuntu 18.04, they gave me two different outputs.
https://paste.ubuntu.com/p/xGtTvzYMyT/
I included sample input-output in the code. I would appreciate it if someone gives me a proper explanation of this. Thanks.
Flags:
-DROBIN
-std=c++14
-O2

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en9 Английский Robin 2020-04-07 20:32:52 73
en8 Английский Robin 2020-04-07 20:31:57 44
en7 Английский Robin 2020-04-07 20:30:58 64
en6 Английский Robin 2020-04-07 20:27:39 769
en5 Английский Robin 2020-04-07 20:24:31 93
en4 Английский Robin 2020-04-07 20:23:02 81
en3 Английский Robin 2020-04-07 20:21:33 1748 Tiny change: 'ts. <br>\n~~~~~\n#' -> 'ts. <br>\n\n~~~~~\n#'
en2 Английский Robin 2020-04-07 20:16:09 29
en1 Английский Robin 2020-04-07 20:15:40 429 Initial revision (published)