运行 ID: 91439

Main.cc: In function ‘int main()’:
Main.cc:19:38: error: ‘n’ was not declared in this scope
     int maxn = *max_element(sum + 1, n);
                                      ^