运行 ID: 46462

Main.cc: In function ‘int main()’:
Main.cc:7:38: error: ‘sum’ was not declared in this scope
     for(int i=0;i=10)sum+=ns[i];
                                      ^~~
Main.cc:8:11: error: ‘sum’ was not declared in this scope
     cout<