Main.cc:6:8: error: array bound is not an integer constant before ‘]’ token
int s[n];
^
Main.cc: In function ‘int main()’:
Main.cc:13:14: error: ‘s’ was not declared in this scope
cin>>s[i];
^
Main.cc:15:14: error: ‘s’ was not declared in this scope
m=sizeof(s)/sizeof(s[0]);
^
Main.cc:17:15: error: unable to deduce ‘auto&&’ from ‘s’
for(int x:s) {
^
Main.cc:25:1: error: expected ‘}’ at end of input
}
^