prog.cpp:4:12: error: size of array ‘a’ is too large
int a[max-6];
^
prog.cpp: In function ‘void schemes()’:
prog.cpp:7:2: error: ‘a’ was not declared in this scope
a[1]=0;a[2]=12;
^
prog.cpp: In function ‘int main()’:
prog.cpp:13:2: error: ‘sync_with_stdin’ is not a member of ‘std::ios {aka std::basic_ios<char>}’
ios::sync_with_stdin(false);
^
prog.cpp:18:9: error: ‘a’ was not declared in this scope
cout<<a[n]<<endl;
^