Please help me with why the output is an error ? (I faced the question in an exam) :    Can't understand why curly braces are making the difference.

 

    #include<stdio.h>
        int main
        {
            
            {
            int a=3;. 
            }
            
            {
            printf("%d", a); 
            }
            
            return 0;
        }