whenever you post code, copy from your editor and paste it here so that indentation is saved. and then select the whole code and press <> on the right side. This will give your code a good representation. If you post this way, no one will reply as the code is not readable.
sup s1[x],s2[x],s[10]; - type missing (is sup a type?). Also, you can only use constants to declare the arrays, so remove x and put some constants. x is also not declared. You can declare the x as const and can use it then.
for logical error's you have to tell what you are trying to do here?