Main.cc: In function 'int main()':
Main.cc:13:12: error: 'i' was not declared in this scope
int max=x[i],s=1;
^
Main.cc:17:3: error: 's' was not declared in this scope
s=i;
^
Main.cc:20:1: error: expected '}' at end of input
}
^