• + 0 comments

    I loved the way you simplify this, but...

    cin>>n;
    int a[n];
    

    wtf? "a" is a static array, and you set it's size from a variable ¿?