The console is serving a dual purpose for you and confusing you all at the same time.
en.wikipedia.org/wiki/Standard_streams
Your compiled executable reads input from a stream that is called "Standard Input" or "stdin". It writes it's output to "Standard Output" or "stdout".
Since you are using the console it is reading the input you type and writing it to the stdin stream for your application to then read it. Your program is then writing it's output to stdout and the console is reading that and displaying it on the screen for you to read.
I don't use Dev-C++ but I assume that you are clicking a button that is compiling and launching this console window.
If we take the text that you posted in your image and assign it to the different streams:
Input: (stdout)
1 (stdin)
2 (stdin)
88 (stdin)
42 (stdin)
99 (stdin)
Output: (stdout)
1 (stdout)
2 (stdout)
88 (stdout)
If this were broken into two seperate files:
stdin:
1
2
88
42
99
stdout:
Input:
Output:
1
2
88
When your code is executed on the judge it reads everything that is written to stdout. Since "Input:" and "Output:" are written to stdout, your code would return a wrong answer if it were not getting SIGSEGV.
Here is a link on how to redirect stdin and stdout to a file within the code:
stackoverflow.com/questions/5848 ... out-from-c
If you have more questions, please post back.