скобки вроде расставил, с ними порядок
package com.javarush.task.task05.task0532;
import java.io.*;
/*
Задача по алгоритмам
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int maximum = 0;
//напишите тут ваш код
int n = Integer.parseInt(reader.readLine(System.in));
int[] s = new Sol[n];
int i = 0;
for (int c = 0;c < n;c++, i++) {
int a = Integer.parseInt(reader.readLine(System.in));
s[i] = a;
}
for (maximum = s[0], int b = 0;b < n;b++) {
if (s[i+1] > s[i]) {
maximum = s[i+1];
}
}
System.out.println(maximum);
}
}