An error information appeared when debugging the native C example of platformio

Thank you.
There is another problem when using scanf():

#include <stdio.h>

int main()
{
    #ifdef __PLATFORMIO_BUILD_DEBUG__
    setbuf(stdout, NULL);
    #endif

    printf("Hello World from PlatformIO!\n");

    int i;
    printf("i = ");
    scanf(" %d", &i);
    printf("%d\n", i);

    return 0;
}

I feel it’s hard to describe the phenomenon in my poor English, then I upload the .gif to this:

It can be downloaded.
Best regards.