Main.cc:22:9: error: unterminated comment /* ^ Main.cc:1:1: error: ‘include’ does not name a type; did you mean ‘__has_include’? include ^~~~~~~ __has_include Main.cc: In function ‘void print()’: Main.cc:9:5: error: ‘cout’ was not declared in this scope cout << a[i]; ^~~~ Main.cc:10:1: error: ‘cout’ was not declared in this scope cout << endl; ^~~~ Main.cc:10:9: error: ‘endl’ was not declared in this scope cout << endl; ^~~~ Main.cc:10:9: note: suggested alternative: ‘enum’ cout << endl; ^~~~ enum Main.cc: At global scope: Main.cc:14:1: error: expected initializer before ‘if’ if(m==sum)//如果已经取到上线 ^~ Main.cc:16:1: error: expected unqualified-id before ‘else’ else ^~~~