dimanche 4 juillet 2021

How to compile long array on VSCode?

I want to create an array of 10^6 elements and vscode shows done straight away without showing any output. It's working fine on every online compiler.

    int mn=INT_MAX;
    int N=1e6+2;
    int idx[N];
    
    
    for(int i=0;i<N;i++){
        idx[i]=-1;
    }

    

Aucun commentaire:

Enregistrer un commentaire