I am making a simple program, please take a look
#include<iostream>
using namespace std;
int main(int argc,char* argv[])
{
    int op=0;
    int v[20]=[1, 0];   
    float Ma=0;
    if (argv[1]==1)
    {
        float S=0;
        for(int i=0;i<=20;i++)
        {
            S=S+v[i];
        }
        Ma=(double)(S/20);
    }
    cout<<"Media aritmetica pentru elementele din vector este "<<Ma<<endl;
    return 0;
}
I get this error Program.cpp:10:13: error: expected identifier before numeric constant
int v[20]=[1, 0];
         ^
I am using the gcc from ubuntu for compiling and I'm not really sure if there's anything to it that may cause this. I am a bit new into this.
 
     
     
    