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:15:6: error: 's' was not declared in this scope if(s