#include <bits/stdc++.h>
int main(){
int a, b = 10, r;
printf("%d\n", a);
}
==13235== Memcheck, a memory error detector
==13235== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==13235== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==13235== Command: ./assign
==13235==
==13235== error calling PR_SET_PTRACER, vgdb might block
==13235== Conditional jump or move depends on uninitialised value(s)
==13235== at 0x4AAEAD8: __vfprintf_internal (vfprintf-internal.c:1687)
==13235== by 0x4A98EBE: printf (printf.c:33)
==13235== by 0x1091B1: main (assignment.cpp:5)
==13235==
==13235== Use of uninitialised value of size 8
==13235== at 0x4A9281B: _itoa_word (_itoa.c:179)
==13235== by 0x4AAE6F4: __vfprintf_internal (vfprintf-internal.c:1687)
==13235== by 0x4A98EBE: printf (printf.c:33)
==13235== by 0x1091B1: main (assignment.cpp:5)
==13235==
==13235== Conditional jump or move depends on uninitialised value(s)
==13235== at 0x4A9282D: _itoa_word (_itoa.c:179)
==13235== by 0x4AAE6F4: __vfprintf_internal (vfprintf-internal.c:1687)
==13235== by 0x4A98EBE: printf (printf.c:33)
==13235== by 0x1091B1: main (assignment.cpp:5)
==13235==
==13235== Conditional jump or move depends on uninitialised value(s)
==13235== at 0x4AAF3A8: __vfprintf_internal (vfprintf-internal.c:1687)
==13235== by 0x4A98EBE: printf (printf.c:33)
==13235== by 0x1091B1: main (assignment.cpp:5)
==13235==
==13235== Conditional jump or move depends on uninitialised value(s)
==13235== at 0x4AAE86E: __vfprintf_internal (vfprintf-internal.c:1687)
==13235== by 0x4A98EBE: printf (printf.c:33)
==13235== by 0x1091B1: main (assignment.cpp:5)
==13235== 0
==13235==
==13235== HEAP SUMMARY:
==13235== in use at exit: 0 bytes in 0 blocks
==13235== total heap usage: 2 allocs, 2 frees, 73,216 bytes allocated
==13235==
==13235== All heap blocks were freed -- no leaks are possible
==13235==
==13235== Use --track-origins=yes to see where uninitialised values come from
==13235== For lists of detected and suppressed errors, rerun with: -s
==13235== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
I am not able errors from this input, what is heap summary showing and, why size=8 for the uninitialized variable? Also, "total heap usage: 2 allocs, 2 frees, 73,216 bytes allocated" what is this representing?"ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)"?