Main.cc:18:2: 错误:程序中有游离的‘#’ }#include ^ Main.cc:2:1: 错误:‘sing’不是一个类型名 sing namespace std; ^ Main.cc: 在函数‘int main()’中: Main.cc:6:2: 错误:‘cin’在此作用域中尚未声明 cin>>n; ^ Main.cc:6:2: 附注:建议的替代: In file included from Main.cc:1:0: /usr/include/c++/4.8.2/iostream:60:18: 附注: ‘std::cin’ extern istream cin; /// Linked to standard input ^ Main.cc:14:2: 错误:expected primary-expression before ‘}’ token } ^ Main.cc:14:2: 错误:expected ‘;’ before ‘}’ token Main.cc:16:2: 错误:‘cout’在此作用域中尚未声明 cout< ^ Main.cc: 在函数‘int main()’中: Main.cc:20:5: 错误:‘int main()’ 重定义 int main() ^ Main.cc:3:5: 错误:‘int main()’已在此定义过 int main() ^ Main.cc:23:2: 错误:‘cin’在此作用域中尚未声明 cin>>n; ^ Main.cc:23:2: 附注:建议的替代: In file included from Main.cc:1:0: /usr/include/c++/4.8.2/iostream:60:18: 附注: ‘std::cin’ extern istream cin; /// Linked to standard input ^ Main.cc:31:2: 错误:expected primary-expression before ‘}’ token } ^ Main.cc:31:2: 错误:expected ‘;’ before ‘}’ token Main.cc:33:2: 错误:‘cout’在此作用域中尚未声明 cout<