Main.cc:12:1: error: unterminated comment /* 笔记 ^ Main.cc: In function ‘int main()’: Main.cc:5:8: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a); ^ In file included from /usr/include/stdio.h:862:0, from /usr/include/c++/7/cstdio:42, from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:46, from Main.cc:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here gets (char *__str) ^~~~ Main.cc:6:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i